From 78090e1b8e6d3a4f86f158697e996f39738d9bfc Mon Sep 17 00:00:00 2001
From: fattureincloud-bot
<91328460+fattureincloud-bot@users.noreply.github.com>
Date: Fri, 13 Mar 2026 09:56:55 +0000
Subject: [PATCH] chore: bumping version to 2.1.4
---
.openapi-generator/FILES | 52 +-
.openapi-generator/VERSION | 2 +-
.travis.yml | 4 +-
README.md | 33 +-
docs/ArchiveApi.md | 80 +-
docs/Attachment.md | 30 +
docs/CashbookApi.md | 67 +-
docs/CashbookEntryKind.md | 2 +
docs/ClientsApi.md | 77 +-
docs/CompaniesApi.md | 24 +-
docs/CompanyInfoPlanInfoFunctions.md | 1 -
docs/DocumentTemplate.md | 7 +-
docs/EmailsApi.md | 11 +-
docs/GetPendingReceivedDocumentResponse.md | 30 +
docs/GetTemplatesResponse.md | 29 +
docs/InfoApi.md | 351 +-
docs/IssuedDocumentExtraData.md | 2 +
docs/IssuedDocumentsApi.md | 237 +-
docs/IssuedEInvoicesApi.md | 53 +-
docs/ListPendingReceivedDocumentsResponse.md | 41 +
...istPendingReceivedDocumentsResponsePage.md | 29 +
docs/PendingReceivedDocument.md | 47 +
docs/PendingReceivedDocumentExtractedData.md | 29 +
...dingReceivedDocumentExtractedDataMining.md | 29 +
...PendingReceivedDocumentPaymentsListItem.md | 35 +
...vedDocumentPaymentsListItemPaymentTerms.md | 30 +
docs/PendingReceivedDocumentType.md | 15 +
docs/PriceListsApi.md | 30 +-
docs/ProductsApi.md | 64 +-
docs/ReceiptsApi.md | 91 +-
docs/ReceivedDocument.md | 2 +
docs/ReceivedDocumentItemsListItem.md | 1 +
docs/ReceivedDocumentsApi.md | 382 ++-
docs/SettingsApi.md | 329 +-
docs/SuppliersApi.md | 64 +-
docs/TaxesApi.md | 92 +-
docs/TemplateType.md | 15 +
docs/UserApi.md | 24 +-
docs/WebhooksApi.md | 70 +-
fattureincloud_python_sdk/__init__.py | 1181 ++++---
fattureincloud_python_sdk/api/__init__.py | 1 +
fattureincloud_python_sdk/api/archive_api.py | 1029 +++---
fattureincloud_python_sdk/api/cashbook_api.py | 802 +++--
fattureincloud_python_sdk/api/clients_api.py | 951 ++++--
.../api/companies_api.py | 263 +-
fattureincloud_python_sdk/api/emails_api.py | 248 +-
fattureincloud_python_sdk/api/info_api.py | 2632 ++++++++++-----
.../api/issued_documents_api.py | 2736 ++++++++++-----
.../api/issued_e_invoices_api.py | 553 ++-
.../api/price_lists_api.py | 277 +-
fattureincloud_python_sdk/api/products_api.py | 822 +++--
fattureincloud_python_sdk/api/receipts_api.py | 1102 +++---
.../api/received_documents_api.py | 2975 ++++++++++++-----
fattureincloud_python_sdk/api/settings_api.py | 2589 ++++++++++----
.../api/suppliers_api.py | 846 +++--
fattureincloud_python_sdk/api/taxes_api.py | 1113 +++---
fattureincloud_python_sdk/api/user_api.py | 249 +-
fattureincloud_python_sdk/api/webhooks_api.py | 862 +++--
fattureincloud_python_sdk/api_client.py | 290 +-
fattureincloud_python_sdk/api_response.py | 5 +-
fattureincloud_python_sdk/configuration.py | 147 +-
fattureincloud_python_sdk/exceptions.py | 60 +-
fattureincloud_python_sdk/models/__init__.py | 646 +---
.../models/archive_document.py | 76 +-
.../models/attachment.py | 90 +
.../models/attachment_data.py | 30 +-
.../models/cashbook_entry.py | 108 +-
.../models/cashbook_entry_document.py | 42 +-
.../models/cashbook_entry_kind.py | 25 +-
.../models/cashbook_entry_type.py | 18 +-
fattureincloud_python_sdk/models/city.py | 38 +-
fattureincloud_python_sdk/models/client.py | 270 +-
.../models/client_type.py | 22 +-
fattureincloud_python_sdk/models/company.py | 92 +-
.../models/company_info.py | 89 +-
.../models/company_info_access_info.py | 44 +-
.../models/company_info_plan_info.py | 66 +-
.../company_info_plan_info_functions.py | 85 +-
...company_info_plan_info_functions_status.py | 44 +-
.../models/company_info_plan_info_limits.py | 59 +-
.../models/company_plan_usage.py | 37 +-
.../models/company_type.py | 18 +-
.../models/controlled_company.py | 72 +-
.../models/create_archive_document_request.py | 38 +-
.../create_archive_document_response.py | 38 +-
.../models/create_cashbook_entry_request.py | 38 +-
.../models/create_cashbook_entry_response.py | 38 +-
.../models/create_client_request.py | 36 +-
.../models/create_client_response.py | 36 +-
.../models/create_f24_request.py | 36 +-
.../models/create_f24_response.py | 36 +-
.../models/create_issued_document_request.py | 48 +-
.../models/create_issued_document_response.py | 36 +-
.../models/create_payment_account_request.py | 36 +-
.../models/create_payment_account_response.py | 36 +-
.../models/create_payment_method_request.py | 36 +-
.../models/create_payment_method_response.py | 36 +-
.../models/create_product_request.py | 36 +-
.../models/create_product_response.py | 36 +-
.../models/create_receipt_request.py | 44 +-
.../models/create_receipt_response.py | 38 +-
.../create_received_document_request.py | 45 +-
.../create_received_document_response.py | 38 +-
.../models/create_supplier_request.py | 36 +-
.../models/create_supplier_response.py | 36 +-
.../models/create_vat_type_request.py | 36 +-
.../models/create_vat_type_response.py | 36 +-
.../create_webhooks_subscription_request.py | 36 +-
.../create_webhooks_subscription_response.py | 42 +-
fattureincloud_python_sdk/models/currency.py | 44 +-
.../models/detailed_country.py | 54 +-
.../models/document_template.py | 46 +-
.../models/e_invoice_rejection_reason.py | 58 +-
fattureincloud_python_sdk/models/email.py | 113 +-
.../models/email_attachment.py | 33 +-
.../models/email_data.py | 116 +-
.../models/email_data_default_sender_email.py | 31 +-
.../models/email_recipient_status.py | 20 +-
.../models/email_schedule.py | 88 +-
.../models/email_schedule_include.py | 59 +-
.../models/email_status.py | 20 +-
fattureincloud_python_sdk/models/entity.py | 249 +-
.../models/entity_client_pre_create_info.py | 110 +-
.../models/entity_type.py | 22 +-
.../models/event_type.py | 310 +-
fattureincloud_python_sdk/models/f24.py | 83 +-
.../models/f24_status.py | 20 +-
.../models/fatture_in_cloud_plan_type.py | 24 +-
.../models/function_status.py | 26 +-
.../models/get_archive_document_response.py | 38 +-
.../get_bin_issued_document_response.py | 36 +-
.../get_bin_received_document_response.py | 36 +-
.../models/get_cashbook_entry_response.py | 38 +-
.../models/get_client_response.py | 36 +-
.../models/get_company_info_response.py | 38 +-
.../models/get_company_plan_usage_response.py | 38 +-
...get_e_invoice_rejection_reason_response.py | 40 +-
.../models/get_email_data_response.py | 36 +-
..._entity_client_pre_create_info_response.py | 40 +-
...existing_issued_document_totals_request.py | 36 +-
...xisting_issued_document_totals_response.py | 38 +-
...isting_received_document_totals_request.py | 38 +-
...sting_received_document_totals_response.py | 42 +-
.../models/get_f24_response.py | 34 +-
...ssued_document_pre_create_info_response.py | 40 +-
.../models/get_issued_document_response.py | 36 +-
.../get_new_issued_document_totals_request.py | 36 +-
...get_new_issued_document_totals_response.py | 38 +-
...et_new_received_document_totals_request.py | 38 +-
...t_new_received_document_totals_response.py | 42 +-
.../models/get_payment_account_response.py | 36 +-
.../models/get_payment_method_response.py | 36 +-
.../get_pending_received_document_response.py | 92 +
.../models/get_price_list_items_response.py | 47 +-
.../models/get_product_response.py | 36 +-
.../get_receipt_pre_create_info_response.py | 42 +-
.../models/get_receipt_response.py | 38 +-
.../get_receipts_monthly_totals_response.py | 38 +-
...eived_document_pre_create_info_response.py | 38 +-
.../models/get_received_document_response.py | 38 +-
.../models/get_supplier_response.py | 36 +-
.../models/get_tax_profile_response.py | 36 +-
.../models/get_templates_response.py | 92 +
.../models/get_user_info_response.py | 62 +-
..._info_response_email_confirmation_state.py | 26 +-
.../models/get_user_info_response_info.py | 44 +-
.../models/get_vat_type_response.py | 36 +-
.../get_webhooks_subscription_response.py | 36 +-
.../models/issued_document.py | 762 ++---
.../models/issued_document_ei_data.py | 100 +-
.../models/issued_document_extra_data.py | 120 +-
.../models/issued_document_items_list_item.py | 167 +-
.../models/issued_document_options.py | 67 +-
.../issued_document_payments_list_item.py | 99 +-
...cument_payments_list_item_payment_terms.py | 41 +-
.../models/issued_document_pre_create_info.py | 227 +-
...document_pre_create_info_default_values.py | 122 +-
...e_create_info_extra_data_default_values.py | 43 +-
...nt_pre_create_info_items_default_values.py | 36 +-
.../models/issued_document_status.py | 20 +-
.../models/issued_document_totals.py | 172 +-
.../models/issued_document_type.py | 36 +-
.../models/join_issued_documents_response.py | 48 +-
fattureincloud_python_sdk/models/language.py | 31 +-
.../list_archive_categories_response.py | 26 +-
.../models/list_archive_documents_response.py | 115 +-
.../list_archive_documents_response_page.py | 36 +-
.../models/list_bin_issued_documents.py | 36 +-
.../models/list_bin_received_documents.py | 36 +-
.../models/list_cashbook_entries_response.py | 38 +-
.../models/list_cities_response.py | 38 +-
.../models/list_clients_response.py | 113 +-
.../models/list_clients_response_page.py | 36 +-
.../models/list_cost_centers_response.py | 26 +-
.../models/list_countries_response.py | 28 +-
.../models/list_currencies_response.py | 38 +-
...delivery_notes_default_causals_response.py | 28 +-
.../list_detailed_countries_response.py | 36 +-
.../models/list_emails_response.py | 113 +-
.../models/list_emails_response_page.py | 36 +-
.../models/list_f24_response.py | 128 +-
.../list_f24_response_aggregated_data.py | 30 +-
.../models/list_f24_response_aggregation.py | 40 +-
.../models/list_f24_response_page.py | 36 +-
.../models/list_issued_documents_response.py | 113 +-
.../list_issued_documents_response_page.py | 36 +-
.../models/list_languages_response.py | 38 +-
.../models/list_payment_accounts_response.py | 38 +-
.../models/list_payment_methods_response.py | 38 +-
...ist_pending_received_documents_response.py | 118 +
...ending_received_documents_response_page.py | 96 +
.../models/list_price_lists_response.py | 36 +-
.../list_product_categories_response.py | 28 +-
.../models/list_products_response.py | 113 +-
.../models/list_products_response_page.py | 36 +-
.../models/list_receipts_response.py | 115 +-
.../models/list_receipts_response_page.py | 36 +-
...t_received_document_categories_response.py | 28 +-
.../list_received_documents_response.py | 115 +-
.../list_received_documents_response_page.py | 36 +-
.../models/list_revenue_centers_response.py | 28 +-
.../models/list_suppliers_response.py | 113 +-
.../models/list_suppliers_response_page.py | 36 +-
.../models/list_templates_response.py | 38 +-
.../models/list_units_of_measure_response.py | 28 +-
.../models/list_user_companies_response.py | 42 +-
.../list_user_companies_response_data.py | 36 +-
.../models/list_vat_types_response.py | 38 +-
.../list_webhooks_subscriptions_response.py | 36 +-
.../models/modify_archive_document_request.py | 38 +-
.../modify_archive_document_response.py | 38 +-
.../models/modify_cashbook_entry_request.py | 38 +-
.../models/modify_cashbook_entry_response.py | 38 +-
.../models/modify_client_request.py | 38 +-
.../models/modify_client_response.py | 36 +-
.../models/modify_f24_request.py | 36 +-
.../models/modify_f24_response.py | 36 +-
.../models/modify_issued_document_request.py | 50 +-
.../models/modify_issued_document_response.py | 36 +-
.../models/modify_payment_account_request.py | 36 +-
.../models/modify_payment_account_response.py | 36 +-
.../models/modify_payment_method_request.py | 36 +-
.../models/modify_payment_method_response.py | 36 +-
.../models/modify_product_request.py | 36 +-
.../models/modify_product_response.py | 36 +-
.../models/modify_receipt_request.py | 38 +-
.../models/modify_receipt_response.py | 38 +-
.../modify_received_document_request.py | 38 +-
.../modify_received_document_response.py | 38 +-
.../models/modify_supplier_request.py | 36 +-
.../models/modify_supplier_response.py | 36 +-
.../models/modify_vat_type_request.py | 36 +-
.../models/modify_vat_type_response.py | 36 +-
.../modify_webhooks_subscription_request.py | 36 +-
.../modify_webhooks_subscription_response.py | 42 +-
.../models/monthly_total.py | 46 +-
.../models/original_document_type.py | 20 +-
.../models/pagination.py | 106 +-
.../models/payment_account.py | 60 +-
.../models/payment_account_type.py | 18 +-
.../models/payment_method.py | 103 +-
.../models/payment_method_details.py | 37 +-
.../models/payment_method_type.py | 18 +-
.../models/payment_terms_type.py | 18 +-
.../models/pending_received_document.py | 155 +
...ending_received_document_extracted_data.py | 92 +
...received_document_extracted_data_mining.py | 88 +
...ng_received_document_payments_list_item.py | 109 +
...cument_payments_list_item_payment_terms.py | 91 +
.../models/pending_received_document_type.py | 39 +
.../models/permission_level.py | 22 +-
.../models/permissions.py | 126 +-
...rmissions_fic_issued_documents_detailed.py | 61 +-
.../models/price_list.py | 64 +-
.../models/price_list_item.py | 26 +-
.../models/price_list_prices_type.py | 18 +-
.../models/price_list_type.py | 18 +-
fattureincloud_python_sdk/models/product.py | 157 +-
fattureincloud_python_sdk/models/receipt.py | 149 +-
.../models/receipt_items_list_item.py | 64 +-
.../models/receipt_pre_create_info.py | 84 +-
.../models/receipt_type.py | 18 +-
.../models/received_document.py | 295 +-
.../models/received_document_info.py | 115 +-
.../received_document_info_default_values.py | 26 +-
...ived_document_info_items_default_values.py | 30 +-
.../received_document_items_list_item.py | 106 +-
.../received_document_payments_list_item.py | 86 +-
...cument_payments_list_item_payment_terms.py | 41 +-
.../models/received_document_totals.py | 80 +-
.../models/received_document_type.py | 22 +-
.../models/schedule_email_request.py | 38 +-
.../models/send_e_invoice_request.py | 52 +-
.../models/send_e_invoice_request_data.py | 42 +-
.../models/send_e_invoice_request_options.py | 31 +-
.../models/send_e_invoice_response.py | 40 +-
.../models/send_e_invoice_response_data.py | 31 +-
.../models/sender_email.py | 27 +-
.../models/show_totals_mode.py | 20 +-
fattureincloud_python_sdk/models/supplier.py | 155 +-
.../models/supplier_type.py | 22 +-
.../models/tax_profile.py | 186 +-
.../models/template_type.py | 39 +
.../transform_issued_document_response.py | 48 +-
.../upload_archive_attachment_response.py | 36 +-
.../models/upload_f24_attachment_response.py | 36 +-
...oad_issued_document_attachment_response.py | 36 +-
...d_received_document_attachment_response.py | 36 +-
fattureincloud_python_sdk/models/user.py | 52 +-
.../models/user_company_role.py | 20 +-
fattureincloud_python_sdk/models/vat_item.py | 37 +-
fattureincloud_python_sdk/models/vat_kind.py | 20 +-
fattureincloud_python_sdk/models/vat_type.py | 112 +-
.../verify_e_invoice_xml_error_response.py | 52 +-
...rify_e_invoice_xml_error_response_error.py | 48 +-
..._error_response_error_validation_result.py | 26 +-
...rify_e_invoice_xml_error_response_extra.py | 26 +-
.../models/verify_e_invoice_xml_response.py | 40 +-
.../verify_e_invoice_xml_response_data.py | 30 +-
.../models/verify_webhooks_subscription.py | 37 +-
.../verify_webhooks_subscription_request.py | 40 +-
.../models/webhooks_subscription.py | 80 +-
.../models/webhooks_subscription_config.py | 30 +-
.../models/webhooks_subscription_mapping.py | 18 +-
...bhooks_subscription_verification_method.py | 18 +-
fattureincloud_python_sdk/oauth2/scopes.py | 89 +-
fattureincloud_python_sdk/rest.py | 92 +-
pyproject.toml | 32 +-
requirements.txt | 2 +-
sdk-version.yaml | 2 +-
setup.py | 34 +-
test/test_attachment.py | 53 +
..._get_pending_received_document_response.py | 97 +
test/test_get_templates_response.py | 60 +
...ist_pending_received_documents_response.py | 110 +
...ending_received_documents_response_page.py | 99 +
test/test_pending_received_document.py | 97 +
...ending_received_document_extracted_data.py | 53 +
...received_document_extracted_data_mining.py | 52 +
...ng_received_document_payments_list_item.py | 67 +
...cument_payments_list_item_payment_terms.py | 53 +
test/test_pending_received_document_type.py | 34 +
test/test_template_type.py | 34 +
343 files changed, 24331 insertions(+), 16718 deletions(-)
create mode 100644 docs/Attachment.md
create mode 100644 docs/GetPendingReceivedDocumentResponse.md
create mode 100644 docs/GetTemplatesResponse.md
create mode 100644 docs/ListPendingReceivedDocumentsResponse.md
create mode 100644 docs/ListPendingReceivedDocumentsResponsePage.md
create mode 100644 docs/PendingReceivedDocument.md
create mode 100644 docs/PendingReceivedDocumentExtractedData.md
create mode 100644 docs/PendingReceivedDocumentExtractedDataMining.md
create mode 100644 docs/PendingReceivedDocumentPaymentsListItem.md
create mode 100644 docs/PendingReceivedDocumentPaymentsListItemPaymentTerms.md
create mode 100644 docs/PendingReceivedDocumentType.md
create mode 100644 docs/TemplateType.md
create mode 100644 fattureincloud_python_sdk/models/attachment.py
create mode 100644 fattureincloud_python_sdk/models/get_pending_received_document_response.py
create mode 100644 fattureincloud_python_sdk/models/get_templates_response.py
create mode 100644 fattureincloud_python_sdk/models/list_pending_received_documents_response.py
create mode 100644 fattureincloud_python_sdk/models/list_pending_received_documents_response_page.py
create mode 100644 fattureincloud_python_sdk/models/pending_received_document.py
create mode 100644 fattureincloud_python_sdk/models/pending_received_document_extracted_data.py
create mode 100644 fattureincloud_python_sdk/models/pending_received_document_extracted_data_mining.py
create mode 100644 fattureincloud_python_sdk/models/pending_received_document_payments_list_item.py
create mode 100644 fattureincloud_python_sdk/models/pending_received_document_payments_list_item_payment_terms.py
create mode 100644 fattureincloud_python_sdk/models/pending_received_document_type.py
create mode 100644 fattureincloud_python_sdk/models/template_type.py
create mode 100644 test/test_attachment.py
create mode 100644 test/test_get_pending_received_document_response.py
create mode 100644 test/test_get_templates_response.py
create mode 100644 test/test_list_pending_received_documents_response.py
create mode 100644 test/test_list_pending_received_documents_response_page.py
create mode 100644 test/test_pending_received_document.py
create mode 100644 test/test_pending_received_document_extracted_data.py
create mode 100644 test/test_pending_received_document_extracted_data_mining.py
create mode 100644 test/test_pending_received_document_payments_list_item.py
create mode 100644 test/test_pending_received_document_payments_list_item_payment_terms.py
create mode 100644 test/test_pending_received_document_type.py
create mode 100644 test/test_template_type.py
diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES
index f7426e78..068f7d07 100644
--- a/.openapi-generator/FILES
+++ b/.openapi-generator/FILES
@@ -2,6 +2,7 @@
README.md
docs/ArchiveApi.md
docs/ArchiveDocument.md
+docs/Attachment.md
docs/AttachmentData.md
docs/CashbookApi.md
docs/CashbookEntry.md
@@ -93,6 +94,7 @@ docs/GetNewReceivedDocumentTotalsRequest.md
docs/GetNewReceivedDocumentTotalsResponse.md
docs/GetPaymentAccountResponse.md
docs/GetPaymentMethodResponse.md
+docs/GetPendingReceivedDocumentResponse.md
docs/GetPriceListItemsResponse.md
docs/GetProductResponse.md
docs/GetReceiptPreCreateInfoResponse.md
@@ -102,6 +104,7 @@ docs/GetReceivedDocumentPreCreateInfoResponse.md
docs/GetReceivedDocumentResponse.md
docs/GetSupplierResponse.md
docs/GetTaxProfileResponse.md
+docs/GetTemplatesResponse.md
docs/GetUserInfoResponse.md
docs/GetUserInfoResponseEmailConfirmationState.md
docs/GetUserInfoResponseInfo.md
@@ -151,6 +154,8 @@ docs/ListIssuedDocumentsResponsePage.md
docs/ListLanguagesResponse.md
docs/ListPaymentAccountsResponse.md
docs/ListPaymentMethodsResponse.md
+docs/ListPendingReceivedDocumentsResponse.md
+docs/ListPendingReceivedDocumentsResponsePage.md
docs/ListPriceListsResponse.md
docs/ListProductCategoriesResponse.md
docs/ListProductsResponse.md
@@ -204,6 +209,12 @@ docs/PaymentMethod.md
docs/PaymentMethodDetails.md
docs/PaymentMethodType.md
docs/PaymentTermsType.md
+docs/PendingReceivedDocument.md
+docs/PendingReceivedDocumentExtractedData.md
+docs/PendingReceivedDocumentExtractedDataMining.md
+docs/PendingReceivedDocumentPaymentsListItem.md
+docs/PendingReceivedDocumentPaymentsListItemPaymentTerms.md
+docs/PendingReceivedDocumentType.md
docs/PermissionLevel.md
docs/Permissions.md
docs/PermissionsFicIssuedDocumentsDetailed.md
@@ -243,6 +254,7 @@ docs/SupplierType.md
docs/SuppliersApi.md
docs/TaxProfile.md
docs/TaxesApi.md
+docs/TemplateType.md
docs/TransformIssuedDocumentResponse.md
docs/UploadArchiveAttachmentResponse.md
docs/UploadF24AttachmentResponse.md
@@ -292,6 +304,7 @@ fattureincloud_python_sdk/configuration.py
fattureincloud_python_sdk/exceptions.py
fattureincloud_python_sdk/models/__init__.py
fattureincloud_python_sdk/models/archive_document.py
+fattureincloud_python_sdk/models/attachment.py
fattureincloud_python_sdk/models/attachment_data.py
fattureincloud_python_sdk/models/cashbook_entry.py
fattureincloud_python_sdk/models/cashbook_entry_document.py
@@ -379,6 +392,7 @@ fattureincloud_python_sdk/models/get_new_received_document_totals_request.py
fattureincloud_python_sdk/models/get_new_received_document_totals_response.py
fattureincloud_python_sdk/models/get_payment_account_response.py
fattureincloud_python_sdk/models/get_payment_method_response.py
+fattureincloud_python_sdk/models/get_pending_received_document_response.py
fattureincloud_python_sdk/models/get_price_list_items_response.py
fattureincloud_python_sdk/models/get_product_response.py
fattureincloud_python_sdk/models/get_receipt_pre_create_info_response.py
@@ -388,6 +402,7 @@ fattureincloud_python_sdk/models/get_received_document_pre_create_info_response.
fattureincloud_python_sdk/models/get_received_document_response.py
fattureincloud_python_sdk/models/get_supplier_response.py
fattureincloud_python_sdk/models/get_tax_profile_response.py
+fattureincloud_python_sdk/models/get_templates_response.py
fattureincloud_python_sdk/models/get_user_info_response.py
fattureincloud_python_sdk/models/get_user_info_response_email_confirmation_state.py
fattureincloud_python_sdk/models/get_user_info_response_info.py
@@ -434,6 +449,8 @@ fattureincloud_python_sdk/models/list_issued_documents_response_page.py
fattureincloud_python_sdk/models/list_languages_response.py
fattureincloud_python_sdk/models/list_payment_accounts_response.py
fattureincloud_python_sdk/models/list_payment_methods_response.py
+fattureincloud_python_sdk/models/list_pending_received_documents_response.py
+fattureincloud_python_sdk/models/list_pending_received_documents_response_page.py
fattureincloud_python_sdk/models/list_price_lists_response.py
fattureincloud_python_sdk/models/list_product_categories_response.py
fattureincloud_python_sdk/models/list_products_response.py
@@ -487,6 +504,12 @@ fattureincloud_python_sdk/models/payment_method.py
fattureincloud_python_sdk/models/payment_method_details.py
fattureincloud_python_sdk/models/payment_method_type.py
fattureincloud_python_sdk/models/payment_terms_type.py
+fattureincloud_python_sdk/models/pending_received_document.py
+fattureincloud_python_sdk/models/pending_received_document_extracted_data.py
+fattureincloud_python_sdk/models/pending_received_document_extracted_data_mining.py
+fattureincloud_python_sdk/models/pending_received_document_payments_list_item.py
+fattureincloud_python_sdk/models/pending_received_document_payments_list_item_payment_terms.py
+fattureincloud_python_sdk/models/pending_received_document_type.py
fattureincloud_python_sdk/models/permission_level.py
fattureincloud_python_sdk/models/permissions.py
fattureincloud_python_sdk/models/permissions_fic_issued_documents_detailed.py
@@ -519,6 +542,7 @@ fattureincloud_python_sdk/models/show_totals_mode.py
fattureincloud_python_sdk/models/supplier.py
fattureincloud_python_sdk/models/supplier_type.py
fattureincloud_python_sdk/models/tax_profile.py
+fattureincloud_python_sdk/models/template_type.py
fattureincloud_python_sdk/models/transform_issued_document_response.py
fattureincloud_python_sdk/models/upload_archive_attachment_response.py
fattureincloud_python_sdk/models/upload_f24_attachment_response.py
@@ -549,19 +573,15 @@ 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
+test/test_attachment.py
+test/test_get_pending_received_document_response.py
+test/test_get_templates_response.py
+test/test_list_pending_received_documents_response.py
+test/test_list_pending_received_documents_response_page.py
+test/test_pending_received_document.py
+test/test_pending_received_document_extracted_data.py
+test/test_pending_received_document_extracted_data_mining.py
+test/test_pending_received_document_payments_list_item.py
+test/test_pending_received_document_payments_list_item_payment_terms.py
+test/test_pending_received_document_type.py
+test/test_template_type.py
diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION
index 5f84a81d..2540a3a5 100644
--- a/.openapi-generator/VERSION
+++ b/.openapi-generator/VERSION
@@ -1 +1 @@
-7.12.0
+7.20.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..92edcf20 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
@@ -109,6 +109,7 @@ Class | Method | HTTP request | Description
*InfoApi* | [**list_cost_centers**](docs/InfoApi.md#list_cost_centers) | **GET** /c/{company_id}/info/cost_centers | List Cost Centers
*InfoApi* | [**list_countries**](docs/InfoApi.md#list_countries) | **GET** /info/countries | List Countries
*InfoApi* | [**list_currencies**](docs/InfoApi.md#list_currencies) | **GET** /info/currencies | List Currencies
+*InfoApi* | [**list_default_templates**](docs/InfoApi.md#list_default_templates) | **GET** /info/templates | List Default Templates
*InfoApi* | [**list_delivery_notes_default_causals**](docs/InfoApi.md#list_delivery_notes_default_causals) | **GET** /info/dn_causals | List Delivery Notes Default Causals
*InfoApi* | [**list_detailed_countries**](docs/InfoApi.md#list_detailed_countries) | **GET** /info/detailed_countries | List Detailed Countries
*InfoApi* | [**list_languages**](docs/InfoApi.md#list_languages) | **GET** /info/languages | List Languages
@@ -117,11 +118,10 @@ Class | Method | HTTP request | Description
*InfoApi* | [**list_product_categories**](docs/InfoApi.md#list_product_categories) | **GET** /c/{company_id}/info/product_categories | List Product Categories
*InfoApi* | [**list_received_document_categories**](docs/InfoApi.md#list_received_document_categories) | **GET** /c/{company_id}/info/received_document_categories | List Received Document Categories
*InfoApi* | [**list_revenue_centers**](docs/InfoApi.md#list_revenue_centers) | **GET** /c/{company_id}/info/revenue_centers | List Revenue Centers
-*InfoApi* | [**list_templates**](docs/InfoApi.md#list_templates) | **GET** /info/templates | List Templates
*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,18 +157,20 @@ 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
*ReceivedDocumentsApi* | [**get_existing_received_document_totals**](docs/ReceivedDocumentsApi.md#get_existing_received_document_totals) | **POST** /c/{company_id}/received_documents/{document_id}/totals | Get Existing Received Document Totals
*ReceivedDocumentsApi* | [**get_new_received_document_totals**](docs/ReceivedDocumentsApi.md#get_new_received_document_totals) | **POST** /c/{company_id}/received_documents/totals | Get New Received Document Totals
+*ReceivedDocumentsApi* | [**get_pending_received_document**](docs/ReceivedDocumentsApi.md#get_pending_received_document) | **GET** /c/{company_id}/received_documents/pending/{document_id} | Get Pending Received Document
*ReceivedDocumentsApi* | [**get_received_document**](docs/ReceivedDocumentsApi.md#get_received_document) | **GET** /c/{company_id}/received_documents/{document_id} | Get Received Document
*ReceivedDocumentsApi* | [**get_received_document_pre_create_info**](docs/ReceivedDocumentsApi.md#get_received_document_pre_create_info) | **GET** /c/{company_id}/received_documents/info | Get Received Document Pre-Create Info
*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_pending_received_documents**](docs/ReceivedDocumentsApi.md#list_pending_received_documents) | **GET** /c/{company_id}/received_documents/pending | List Pending Received Documents
*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
@@ -179,7 +181,9 @@ Class | Method | HTTP request | Description
*SettingsApi* | [**get_payment_account**](docs/SettingsApi.md#get_payment_account) | **GET** /c/{company_id}/settings/payment_accounts/{payment_account_id} | Get Payment Account
*SettingsApi* | [**get_payment_method**](docs/SettingsApi.md#get_payment_method) | **GET** /c/{company_id}/settings/payment_methods/{payment_method_id} | Get Payment Method
*SettingsApi* | [**get_tax_profile**](docs/SettingsApi.md#get_tax_profile) | **GET** /c/{company_id}/settings/tax_profile | Get Tax Profile
+*SettingsApi* | [**get_template**](docs/SettingsApi.md#get_template) | **GET** /c/{company_id}/settings/templates/{template_id} | Get Template
*SettingsApi* | [**get_vat_type**](docs/SettingsApi.md#get_vat_type) | **GET** /c/{company_id}/settings/vat_types/{vat_type_id} | Get Vat Type
+*SettingsApi* | [**list_templates**](docs/SettingsApi.md#list_templates) | **GET** /c/{company_id}/settings/templates | List Templates
*SettingsApi* | [**modify_payment_account**](docs/SettingsApi.md#modify_payment_account) | **PUT** /c/{company_id}/settings/payment_accounts/{payment_account_id} | Modify Payment Account
*SettingsApi* | [**modify_payment_method**](docs/SettingsApi.md#modify_payment_method) | **PUT** /c/{company_id}/settings/payment_methods/{payment_method_id} | Modify Payment Method
*SettingsApi* | [**modify_vat_type**](docs/SettingsApi.md#modify_vat_type) | **PUT** /c/{company_id}/settings/vat_types/{vat_type_id} | Modify Vat Type
@@ -208,6 +212,7 @@ Class | Method | HTTP request | Description
## Documentation For Models
- [ArchiveDocument](docs/ArchiveDocument.md)
+ - [Attachment](docs/Attachment.md)
- [AttachmentData](docs/AttachmentData.md)
- [CashbookEntry](docs/CashbookEntry.md)
- [CashbookEntryDocument](docs/CashbookEntryDocument.md)
@@ -295,6 +300,7 @@ Class | Method | HTTP request | Description
- [GetNewReceivedDocumentTotalsResponse](docs/GetNewReceivedDocumentTotalsResponse.md)
- [GetPaymentAccountResponse](docs/GetPaymentAccountResponse.md)
- [GetPaymentMethodResponse](docs/GetPaymentMethodResponse.md)
+ - [GetPendingReceivedDocumentResponse](docs/GetPendingReceivedDocumentResponse.md)
- [GetPriceListItemsResponse](docs/GetPriceListItemsResponse.md)
- [GetProductResponse](docs/GetProductResponse.md)
- [GetReceiptPreCreateInfoResponse](docs/GetReceiptPreCreateInfoResponse.md)
@@ -304,6 +310,7 @@ Class | Method | HTTP request | Description
- [GetReceivedDocumentResponse](docs/GetReceivedDocumentResponse.md)
- [GetSupplierResponse](docs/GetSupplierResponse.md)
- [GetTaxProfileResponse](docs/GetTaxProfileResponse.md)
+ - [GetTemplatesResponse](docs/GetTemplatesResponse.md)
- [GetUserInfoResponse](docs/GetUserInfoResponse.md)
- [GetUserInfoResponseEmailConfirmationState](docs/GetUserInfoResponseEmailConfirmationState.md)
- [GetUserInfoResponseInfo](docs/GetUserInfoResponseInfo.md)
@@ -350,6 +357,8 @@ Class | Method | HTTP request | Description
- [ListLanguagesResponse](docs/ListLanguagesResponse.md)
- [ListPaymentAccountsResponse](docs/ListPaymentAccountsResponse.md)
- [ListPaymentMethodsResponse](docs/ListPaymentMethodsResponse.md)
+ - [ListPendingReceivedDocumentsResponse](docs/ListPendingReceivedDocumentsResponse.md)
+ - [ListPendingReceivedDocumentsResponsePage](docs/ListPendingReceivedDocumentsResponsePage.md)
- [ListPriceListsResponse](docs/ListPriceListsResponse.md)
- [ListProductCategoriesResponse](docs/ListProductCategoriesResponse.md)
- [ListProductsResponse](docs/ListProductsResponse.md)
@@ -403,6 +412,12 @@ Class | Method | HTTP request | Description
- [PaymentMethodDetails](docs/PaymentMethodDetails.md)
- [PaymentMethodType](docs/PaymentMethodType.md)
- [PaymentTermsType](docs/PaymentTermsType.md)
+ - [PendingReceivedDocument](docs/PendingReceivedDocument.md)
+ - [PendingReceivedDocumentExtractedData](docs/PendingReceivedDocumentExtractedData.md)
+ - [PendingReceivedDocumentExtractedDataMining](docs/PendingReceivedDocumentExtractedDataMining.md)
+ - [PendingReceivedDocumentPaymentsListItem](docs/PendingReceivedDocumentPaymentsListItem.md)
+ - [PendingReceivedDocumentPaymentsListItemPaymentTerms](docs/PendingReceivedDocumentPaymentsListItemPaymentTerms.md)
+ - [PendingReceivedDocumentType](docs/PendingReceivedDocumentType.md)
- [PermissionLevel](docs/PermissionLevel.md)
- [Permissions](docs/Permissions.md)
- [PermissionsFicIssuedDocumentsDetailed](docs/PermissionsFicIssuedDocumentsDetailed.md)
@@ -435,6 +450,7 @@ Class | Method | HTTP request | Description
- [Supplier](docs/Supplier.md)
- [SupplierType](docs/SupplierType.md)
- [TaxProfile](docs/TaxProfile.md)
+ - [TemplateType](docs/TemplateType.md)
- [TransformIssuedDocumentResponse](docs/TransformIssuedDocumentResponse.md)
- [UploadArchiveAttachmentResponse](docs/UploadArchiveAttachmentResponse.md)
- [UploadF24AttachmentResponse](docs/UploadF24AttachmentResponse.md)
@@ -521,4 +537,3 @@ Authentication schemes defined for the API:
info@fattureincloud.it
-
diff --git a/docs/ArchiveApi.md b/docs/ArchiveApi.md
index 02ac204a..dd683600 100644
--- a/docs/ArchiveApi.md
+++ b/docs/ArchiveApi.md
@@ -86,9 +86,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | The Archive Document. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | The Archive Document. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -156,15 +163,22 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Document removed. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Document removed. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -245,9 +259,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Archive Document Details | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Archive Document Details | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -334,9 +355,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Results list. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Results list. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -416,9 +444,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | The modified Archived Document | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | The modified Archived Document | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -497,9 +532,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/docs/Attachment.md b/docs/Attachment.md
new file mode 100644
index 00000000..b965061b
--- /dev/null
+++ b/docs/Attachment.md
@@ -0,0 +1,30 @@
+# Attachment
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**filename** | **str** | Attachment file name | [optional]
+**attachment** | **bytearray** | Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx] | [optional]
+
+## Example
+
+```python
+from fattureincloud_python_sdk.models.attachment import Attachment
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of Attachment from a JSON string
+attachment_instance = Attachment.from_json(json)
+# print the JSON string representation of the object
+print(Attachment.to_json())
+
+# convert the object into a dict
+attachment_dict = attachment_instance.to_dict()
+# create an instance of Attachment from a dict
+attachment_from_dict = Attachment.from_dict(attachment_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CashbookApi.md b/docs/CashbookApi.md
index d3927a0f..f8995f47 100644
--- a/docs/CashbookApi.md
+++ b/docs/CashbookApi.md
@@ -85,9 +85,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | The created Cashbook Entry. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | The created Cashbook Entry. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -155,15 +162,22 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Document removed. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Document removed. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -244,9 +258,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Cashbook Entry. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Cashbook Entry. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -331,9 +352,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Results list. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Results list. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -413,9 +441,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | The modified Cashbook Entry | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | The modified Cashbook Entry | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/docs/CashbookEntryKind.md b/docs/CashbookEntryKind.md
index 08e14646..4599fe13 100644
--- a/docs/CashbookEntryKind.md
+++ b/docs/CashbookEntryKind.md
@@ -14,6 +14,8 @@ Cashbook kind
* `RECEIPT` (value: `'receipt'`)
+* `TS_PAY` (value: `'ts_pay'`)
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/ClientsApi.md b/docs/ClientsApi.md
index f2ecf057..493697a1 100644
--- a/docs/ClientsApi.md
+++ b/docs/ClientsApi.md
@@ -86,7 +86,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -154,15 +163,22 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Entity Removed | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Entity Removed | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -243,9 +259,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Client Details. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Client Details. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -320,9 +343,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -409,8 +439,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
-**401** | Unauthorized | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -490,9 +528,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Client modified. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Client modified. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/docs/CompaniesApi.md b/docs/CompaniesApi.md
index 11bfba01..e35ada40 100644
--- a/docs/CompaniesApi.md
+++ b/docs/CompaniesApi.md
@@ -79,8 +79,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Company info. | - |
-**401** | Unauthorized. | - |
+**200** | Company info. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -157,8 +165,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
-**401** | Unauthorized. | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/docs/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/DocumentTemplate.md b/docs/DocumentTemplate.md
index bb6bfc66..e49eda86 100644
--- a/docs/DocumentTemplate.md
+++ b/docs/DocumentTemplate.md
@@ -6,8 +6,13 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | Template id | [optional]
+**privacy** | **str** | Template privacy | [optional]
+**type** | [**TemplateType**](TemplateType.md) | | [optional]
**name** | **str** | Template name | [optional]
-**type** | **str** | Template type | [optional]
+**can_disable_watermark** | **bool** | Can disable watermark | [optional]
+**author** | **str** | Template author | [optional]
+**content** | **str** | Template definition content | [optional]
+**supports_custom_taxable** | **bool** | Supports custom taxable | [optional]
## Example
diff --git a/docs/EmailsApi.md b/docs/EmailsApi.md
index 0647f395..b501c46d 100644
--- a/docs/EmailsApi.md
+++ b/docs/EmailsApi.md
@@ -90,7 +90,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/docs/GetPendingReceivedDocumentResponse.md b/docs/GetPendingReceivedDocumentResponse.md
new file mode 100644
index 00000000..bff6e3f8
--- /dev/null
+++ b/docs/GetPendingReceivedDocumentResponse.md
@@ -0,0 +1,30 @@
+# GetPendingReceivedDocumentResponse
+
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**PendingReceivedDocument**](PendingReceivedDocument.md) | | [optional]
+
+## Example
+
+```python
+from fattureincloud_python_sdk.models.get_pending_received_document_response import GetPendingReceivedDocumentResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetPendingReceivedDocumentResponse from a JSON string
+get_pending_received_document_response_instance = GetPendingReceivedDocumentResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetPendingReceivedDocumentResponse.to_json())
+
+# convert the object into a dict
+get_pending_received_document_response_dict = get_pending_received_document_response_instance.to_dict()
+# create an instance of GetPendingReceivedDocumentResponse from a dict
+get_pending_received_document_response_from_dict = GetPendingReceivedDocumentResponse.from_dict(get_pending_received_document_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetTemplatesResponse.md b/docs/GetTemplatesResponse.md
new file mode 100644
index 00000000..7204d1ed
--- /dev/null
+++ b/docs/GetTemplatesResponse.md
@@ -0,0 +1,29 @@
+# GetTemplatesResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**DocumentTemplate**](DocumentTemplate.md) | | [optional]
+
+## Example
+
+```python
+from fattureincloud_python_sdk.models.get_templates_response import GetTemplatesResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetTemplatesResponse from a JSON string
+get_templates_response_instance = GetTemplatesResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetTemplatesResponse.to_json())
+
+# convert the object into a dict
+get_templates_response_dict = get_templates_response_instance.to_dict()
+# create an instance of GetTemplatesResponse from a dict
+get_templates_response_from_dict = GetTemplatesResponse.from_dict(get_templates_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/InfoApi.md b/docs/InfoApi.md
index 693af696..51079d6e 100644
--- a/docs/InfoApi.md
+++ b/docs/InfoApi.md
@@ -9,6 +9,7 @@ Method | HTTP request | Description
[**list_cost_centers**](InfoApi.md#list_cost_centers) | **GET** /c/{company_id}/info/cost_centers | List Cost Centers
[**list_countries**](InfoApi.md#list_countries) | **GET** /info/countries | List Countries
[**list_currencies**](InfoApi.md#list_currencies) | **GET** /info/currencies | List Currencies
+[**list_default_templates**](InfoApi.md#list_default_templates) | **GET** /info/templates | List Default Templates
[**list_delivery_notes_default_causals**](InfoApi.md#list_delivery_notes_default_causals) | **GET** /info/dn_causals | List Delivery Notes Default Causals
[**list_detailed_countries**](InfoApi.md#list_detailed_countries) | **GET** /info/detailed_countries | List Detailed Countries
[**list_languages**](InfoApi.md#list_languages) | **GET** /info/languages | List Languages
@@ -17,7 +18,6 @@ Method | HTTP request | Description
[**list_product_categories**](InfoApi.md#list_product_categories) | **GET** /c/{company_id}/info/product_categories | List Product Categories
[**list_received_document_categories**](InfoApi.md#list_received_document_categories) | **GET** /c/{company_id}/info/received_document_categories | List Received Document Categories
[**list_revenue_centers**](InfoApi.md#list_revenue_centers) | **GET** /c/{company_id}/info/revenue_centers | List Revenue Centers
-[**list_templates**](InfoApi.md#list_templates) | **GET** /info/templates | List Templates
[**list_units_of_measure**](InfoApi.md#list_units_of_measure) | **GET** /info/measures | List Units of Measure
[**list_vat_types**](InfoApi.md#list_vat_types) | **GET** /c/{company_id}/info/vat_types | List Vat Types
@@ -93,9 +93,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Archive Categories list. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Archive Categories list. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -172,7 +179,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Cities List. | - |
+**200** | Cities List. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -247,9 +263,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | List of Cost Centers | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | List of Cost Centers | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -320,8 +343,16 @@ This endpoint does not need any parameter.
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | List of countries | - |
-**401** | Unauthorized | - |
+**200** | List of countries | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -392,8 +423,102 @@ This endpoint does not need any parameter.
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Currencies List. | - |
-**401** | Unauthorized | - |
+**200** | Currencies List. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **list_default_templates**
+> ListTemplatesResponse list_default_templates(type=type, by_type=by_type)
+
+List Default Templates
+
+Lists the default available templates.
+
+### Example
+
+* OAuth Authentication (OAuth2AuthenticationCodeFlow):
+
+```python
+import fattureincloud_python_sdk
+from fattureincloud_python_sdk.models.list_templates_response import ListTemplatesResponse
+from fattureincloud_python_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://api-v2.fattureincloud.it
+# See configuration.py for a list of all supported configuration parameters.
+configuration = fattureincloud_python_sdk.Configuration(
+ host = "https://api-v2.fattureincloud.it"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
+# Enter a context with an instance of the API client
+with fattureincloud_python_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = fattureincloud_python_sdk.InfoApi(api_client)
+ type = all # str | Type of the templates. (optional) (default to all)
+ by_type = False # bool | [Only if type=all] If true, splits the list in objects, grouping templates by type. (optional) (default to False)
+
+ try:
+ # List Default Templates
+ api_response = api_instance.list_default_templates(type=type, by_type=by_type)
+ print("The response of InfoApi->list_default_templates:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling InfoApi->list_default_templates: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **type** | **str**| Type of the templates. | [optional] [default to all]
+ **by_type** | **bool**| [Only if type=all] If true, splits the list in objects, grouping templates by type. | [optional] [default to False]
+
+### Return type
+
+[**ListTemplatesResponse**](ListTemplatesResponse.md)
+
+### Authorization
+
+[OAuth2AuthenticationCodeFlow](../README.md#OAuth2AuthenticationCodeFlow)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Templates list. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -464,8 +589,16 @@ This endpoint does not need any parameter.
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | List of Delivery Notes Default Causals | - |
-**401** | Unauthorized | - |
+**200** | List of Delivery Notes Default Causals | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -536,8 +669,16 @@ This endpoint does not need any parameter.
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | List of detailed countries | - |
-**401** | Unauthorized | - |
+**200** | List of detailed countries | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -608,8 +749,16 @@ This endpoint does not need any parameter.
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | LanguagesList | - |
-**401** | Unauthorized | - |
+**200** | LanguagesList | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -690,9 +839,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Payment accounts list. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Payment accounts list. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -773,9 +929,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Payment methods list. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Payment methods list. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -852,9 +1015,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Product Categories List | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Product Categories List | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -929,7 +1099,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Received Document Categories List | - |
+**200** | Received Document Categories List | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -1004,87 +1183,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | List of Revenue Centers | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **list_templates**
-> ListTemplatesResponse list_templates(type=type, by_type=by_type)
-
-List Templates
-
-Lists the available templates.
-
-### Example
-
-* OAuth Authentication (OAuth2AuthenticationCodeFlow):
-
-```python
-import fattureincloud_python_sdk
-from fattureincloud_python_sdk.models.list_templates_response import ListTemplatesResponse
-from fattureincloud_python_sdk.rest import ApiException
-from pprint import pprint
-
-# Defining the host is optional and defaults to https://api-v2.fattureincloud.it
-# See configuration.py for a list of all supported configuration parameters.
-configuration = fattureincloud_python_sdk.Configuration(
- host = "https://api-v2.fattureincloud.it"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-configuration.access_token = os.environ["ACCESS_TOKEN"]
-
-# Enter a context with an instance of the API client
-with fattureincloud_python_sdk.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = fattureincloud_python_sdk.InfoApi(api_client)
- type = all # str | Type of the templates. (optional) (default to all)
- by_type = False # bool | [Only if type=all] If true, splits the list in objects, grouping templates by type. (optional) (default to False)
-
- try:
- # List Templates
- api_response = api_instance.list_templates(type=type, by_type=by_type)
- print("The response of InfoApi->list_templates:\n")
- pprint(api_response)
- except Exception as e:
- print("Exception when calling InfoApi->list_templates: %s\n" % e)
-```
-
-
-
-### Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **type** | **str**| Type of the templates. | [optional] [default to all]
- **by_type** | **bool**| [Only if type=all] If true, splits the list in objects, grouping templates by type. | [optional] [default to False]
-
-### Return type
-
-[**ListTemplatesResponse**](ListTemplatesResponse.md)
-
-### Authorization
-
-[OAuth2AuthenticationCodeFlow](../README.md#OAuth2AuthenticationCodeFlow)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-### HTTP response details
-
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | Templates list. | - |
-**401** | Unauthorized | - |
+**200** | List of Revenue Centers | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -1155,8 +1263,16 @@ This endpoint does not need any parameter.
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Units of measure. | - |
-**401** | Unauthorized | - |
+**200** | Units of measure. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -1233,9 +1349,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | List of Vat Types. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | List of Vat Types. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/docs/IssuedDocumentExtraData.md b/docs/IssuedDocumentExtraData.md
index 90387476..b7619735 100644
--- a/docs/IssuedDocumentExtraData.md
+++ b/docs/IssuedDocumentExtraData.md
@@ -17,6 +17,8 @@ Name | Type | Description | Notes
**ts_sent_date** | **date** | Issued document ts sent date | [optional]
**ts_full_amount** | **bool** | Issued document ts total amount | [optional]
**imported_by** | **str** | Issued document imported by software | [optional]
+**debt_vat_detect** | **bool** | Issued document debt VAT detect | [optional]
+**revenue_detect** | **bool** | Issued document revenue detect | [optional]
## Example
diff --git a/docs/IssuedDocumentsApi.md b/docs/IssuedDocumentsApi.md
index 9821b93d..99884cb3 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
@@ -98,15 +98,23 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Document created. | - |
-**401** | Unauthorized | - |
+**200** | Document created. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **delete_bin_issued_document**
> delete_bin_issued_document(company_id, document_id)
-
+Delete Bin Issued Document
Delete Bin Issued Document
@@ -140,7 +148,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)
@@ -167,13 +175,22 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+**200** | OK | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -241,15 +258,22 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Document removed | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Document removed | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -317,15 +341,22 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | File removed. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | File removed. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -402,7 +433,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Bin issued document details | - |
+**200** | Bin issued document details | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -479,7 +519,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | EmailData | - |
+**200** | EmailData | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -559,9 +608,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Totals. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Totals. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -643,9 +699,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Document Details. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Document Details. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -722,7 +785,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Pre-create info. | - |
+**200** | Pre-create info. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -800,8 +872,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Totals. | - |
-**401** | Unauthorized | - |
+**200** | Totals. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -882,7 +962,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -957,7 +1046,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Bin Issued Documents List | - |
+**200** | Bin Issued Documents List | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -1048,9 +1146,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Results list. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Results list. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -1130,16 +1235,23 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Document edited | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Document edited | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **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 +1285,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)
@@ -1200,13 +1312,22 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+**200** | OK | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -1277,15 +1398,22 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: application/json
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | OK | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -1370,7 +1498,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -1449,8 +1586,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Attachment Token. | - |
-**401** | Unauthorized | - |
+**200** | Attachment Token. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/docs/IssuedEInvoicesApi.md b/docs/IssuedEInvoicesApi.md
index 5aa99e2f..f0338b80 100644
--- a/docs/IssuedEInvoicesApi.md
+++ b/docs/IssuedEInvoicesApi.md
@@ -83,7 +83,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -155,15 +164,22 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: text/xml
+ - **Accept**: text/xml, application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -243,9 +259,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -322,10 +345,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
-**422** | Example response | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/docs/ListPendingReceivedDocumentsResponse.md b/docs/ListPendingReceivedDocumentsResponse.md
new file mode 100644
index 00000000..36cc87b8
--- /dev/null
+++ b/docs/ListPendingReceivedDocumentsResponse.md
@@ -0,0 +1,41 @@
+# ListPendingReceivedDocumentsResponse
+
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**current_page** | **int** | Current page number. | [optional]
+**first_page_url** | **str** | First page url. | [optional]
+**var_from** | **int** | First result of the page. | [optional]
+**last_page** | **int** | Last page number. | [optional]
+**last_page_url** | **str** | Last page url. | [optional]
+**next_page_url** | **str** | Next page url | [optional]
+**path** | **str** | Request path. | [optional]
+**per_page** | **int** | Number of result per page. | [optional]
+**prev_page_url** | **str** | Previous page url. | [optional]
+**to** | **int** | Last result of the page. | [optional]
+**total** | **int** | Total number of results | [optional]
+**data** | [**List[PendingReceivedDocument]**](PendingReceivedDocument.md) | | [optional]
+
+## Example
+
+```python
+from fattureincloud_python_sdk.models.list_pending_received_documents_response import ListPendingReceivedDocumentsResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ListPendingReceivedDocumentsResponse from a JSON string
+list_pending_received_documents_response_instance = ListPendingReceivedDocumentsResponse.from_json(json)
+# print the JSON string representation of the object
+print(ListPendingReceivedDocumentsResponse.to_json())
+
+# convert the object into a dict
+list_pending_received_documents_response_dict = list_pending_received_documents_response_instance.to_dict()
+# create an instance of ListPendingReceivedDocumentsResponse from a dict
+list_pending_received_documents_response_from_dict = ListPendingReceivedDocumentsResponse.from_dict(list_pending_received_documents_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ListPendingReceivedDocumentsResponsePage.md b/docs/ListPendingReceivedDocumentsResponsePage.md
new file mode 100644
index 00000000..3af4d291
--- /dev/null
+++ b/docs/ListPendingReceivedDocumentsResponsePage.md
@@ -0,0 +1,29 @@
+# ListPendingReceivedDocumentsResponsePage
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**List[PendingReceivedDocument]**](PendingReceivedDocument.md) | | [optional]
+
+## Example
+
+```python
+from fattureincloud_python_sdk.models.list_pending_received_documents_response_page import ListPendingReceivedDocumentsResponsePage
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ListPendingReceivedDocumentsResponsePage from a JSON string
+list_pending_received_documents_response_page_instance = ListPendingReceivedDocumentsResponsePage.from_json(json)
+# print the JSON string representation of the object
+print(ListPendingReceivedDocumentsResponsePage.to_json())
+
+# convert the object into a dict
+list_pending_received_documents_response_page_dict = list_pending_received_documents_response_page_instance.to_dict()
+# create an instance of ListPendingReceivedDocumentsResponsePage from a dict
+list_pending_received_documents_response_page_from_dict = ListPendingReceivedDocumentsResponsePage.from_dict(list_pending_received_documents_response_page_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PendingReceivedDocument.md b/docs/PendingReceivedDocument.md
new file mode 100644
index 00000000..620c13d2
--- /dev/null
+++ b/docs/PendingReceivedDocument.md
@@ -0,0 +1,47 @@
+# PendingReceivedDocument
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **int** | Pending received document id | [optional]
+**var_date** | **date** | Pending received document date | [optional]
+**subject** | **str** | Pending received document subject | [optional]
+**filename** | **str** | Pending received document filename | [optional]
+**type** | [**PendingReceivedDocumentType**](PendingReceivedDocumentType.md) | | [optional] [default to PendingReceivedDocumentType.AGYO]
+**attachment_url** | **str** | [Temporary] [Read Only] Pending received document url of the attached file | [optional] [readonly]
+**amount_gross** | **float** | [Read Only] Pending received document total gross amount | [optional] [readonly]
+**currency** | [**Currency**](Currency.md) | | [optional]
+**document_type** | [**ReceivedDocumentType**](ReceivedDocumentType.md) | | [optional] [default to ReceivedDocumentType.EXPENSE]
+**supplier_name** | **str** | Pending received document supplier name | [optional]
+**cost_center** | **str** | Pending received document cost center | [optional]
+**category** | **str** | Pending received document category | [optional]
+**other_attachments** | [**List[Attachment]**](Attachment.md) | Pending received document other attachments | [optional]
+**emssion_date** | **date** | Pending received document emission date | [optional]
+**payments_list** | [**List[PendingReceivedDocumentPaymentsListItem]**](PendingReceivedDocumentPaymentsListItem.md) | | [optional]
+**amount_net** | **float** | Pending received document total net amount | [optional]
+**amount_vat** | **float** | Pending received document total vat amount | [optional]
+**import_error** | **str** | Pending received document import error | [optional]
+**extracted_data** | [**PendingReceivedDocumentExtractedData**](PendingReceivedDocumentExtractedData.md) | | [optional]
+
+## Example
+
+```python
+from fattureincloud_python_sdk.models.pending_received_document import PendingReceivedDocument
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of PendingReceivedDocument from a JSON string
+pending_received_document_instance = PendingReceivedDocument.from_json(json)
+# print the JSON string representation of the object
+print(PendingReceivedDocument.to_json())
+
+# convert the object into a dict
+pending_received_document_dict = pending_received_document_instance.to_dict()
+# create an instance of PendingReceivedDocument from a dict
+pending_received_document_from_dict = PendingReceivedDocument.from_dict(pending_received_document_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PendingReceivedDocumentExtractedData.md b/docs/PendingReceivedDocumentExtractedData.md
new file mode 100644
index 00000000..884724f3
--- /dev/null
+++ b/docs/PendingReceivedDocumentExtractedData.md
@@ -0,0 +1,29 @@
+# PendingReceivedDocumentExtractedData
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**mining** | [**PendingReceivedDocumentExtractedDataMining**](PendingReceivedDocumentExtractedDataMining.md) | | [optional]
+
+## Example
+
+```python
+from fattureincloud_python_sdk.models.pending_received_document_extracted_data import PendingReceivedDocumentExtractedData
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of PendingReceivedDocumentExtractedData from a JSON string
+pending_received_document_extracted_data_instance = PendingReceivedDocumentExtractedData.from_json(json)
+# print the JSON string representation of the object
+print(PendingReceivedDocumentExtractedData.to_json())
+
+# convert the object into a dict
+pending_received_document_extracted_data_dict = pending_received_document_extracted_data_instance.to_dict()
+# create an instance of PendingReceivedDocumentExtractedData from a dict
+pending_received_document_extracted_data_from_dict = PendingReceivedDocumentExtractedData.from_dict(pending_received_document_extracted_data_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PendingReceivedDocumentExtractedDataMining.md b/docs/PendingReceivedDocumentExtractedDataMining.md
new file mode 100644
index 00000000..1a312978
--- /dev/null
+++ b/docs/PendingReceivedDocumentExtractedDataMining.md
@@ -0,0 +1,29 @@
+# PendingReceivedDocumentExtractedDataMining
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**save_entity** | **bool** | | [optional]
+
+## Example
+
+```python
+from fattureincloud_python_sdk.models.pending_received_document_extracted_data_mining import PendingReceivedDocumentExtractedDataMining
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of PendingReceivedDocumentExtractedDataMining from a JSON string
+pending_received_document_extracted_data_mining_instance = PendingReceivedDocumentExtractedDataMining.from_json(json)
+# print the JSON string representation of the object
+print(PendingReceivedDocumentExtractedDataMining.to_json())
+
+# convert the object into a dict
+pending_received_document_extracted_data_mining_dict = pending_received_document_extracted_data_mining_instance.to_dict()
+# create an instance of PendingReceivedDocumentExtractedDataMining from a dict
+pending_received_document_extracted_data_mining_from_dict = PendingReceivedDocumentExtractedDataMining.from_dict(pending_received_document_extracted_data_mining_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PendingReceivedDocumentPaymentsListItem.md b/docs/PendingReceivedDocumentPaymentsListItem.md
new file mode 100644
index 00000000..41088d9c
--- /dev/null
+++ b/docs/PendingReceivedDocumentPaymentsListItem.md
@@ -0,0 +1,35 @@
+# PendingReceivedDocumentPaymentsListItem
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**amount** | **float** | Pending received document payment total amount | [optional]
+**due_date** | **date** | Due date | [optional]
+**paid_date** | **date** | Pending received document payment paid date | [optional]
+**payment_terms** | [**PendingReceivedDocumentPaymentsListItemPaymentTerms**](PendingReceivedDocumentPaymentsListItemPaymentTerms.md) | | [optional]
+**status** | **str** | Pending received document payment status | [optional]
+**paid_with_ts_pay** | **bool** | True if paid with TS Pay | [optional]
+**payment_account** | [**PaymentAccount**](PaymentAccount.md) | | [optional]
+
+## Example
+
+```python
+from fattureincloud_python_sdk.models.pending_received_document_payments_list_item import PendingReceivedDocumentPaymentsListItem
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of PendingReceivedDocumentPaymentsListItem from a JSON string
+pending_received_document_payments_list_item_instance = PendingReceivedDocumentPaymentsListItem.from_json(json)
+# print the JSON string representation of the object
+print(PendingReceivedDocumentPaymentsListItem.to_json())
+
+# convert the object into a dict
+pending_received_document_payments_list_item_dict = pending_received_document_payments_list_item_instance.to_dict()
+# create an instance of PendingReceivedDocumentPaymentsListItem from a dict
+pending_received_document_payments_list_item_from_dict = PendingReceivedDocumentPaymentsListItem.from_dict(pending_received_document_payments_list_item_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PendingReceivedDocumentPaymentsListItemPaymentTerms.md b/docs/PendingReceivedDocumentPaymentsListItemPaymentTerms.md
new file mode 100644
index 00000000..694e0fbd
--- /dev/null
+++ b/docs/PendingReceivedDocumentPaymentsListItemPaymentTerms.md
@@ -0,0 +1,30 @@
+# PendingReceivedDocumentPaymentsListItemPaymentTerms
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**days** | **int** | Pending received document payment number of days by which the payment must be made | [optional]
+**type** | [**PaymentTermsType**](PaymentTermsType.md) | | [optional] [default to PaymentTermsType.STANDARD]
+
+## Example
+
+```python
+from fattureincloud_python_sdk.models.pending_received_document_payments_list_item_payment_terms import PendingReceivedDocumentPaymentsListItemPaymentTerms
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of PendingReceivedDocumentPaymentsListItemPaymentTerms from a JSON string
+pending_received_document_payments_list_item_payment_terms_instance = PendingReceivedDocumentPaymentsListItemPaymentTerms.from_json(json)
+# print the JSON string representation of the object
+print(PendingReceivedDocumentPaymentsListItemPaymentTerms.to_json())
+
+# convert the object into a dict
+pending_received_document_payments_list_item_payment_terms_dict = pending_received_document_payments_list_item_payment_terms_instance.to_dict()
+# create an instance of PendingReceivedDocumentPaymentsListItemPaymentTerms from a dict
+pending_received_document_payments_list_item_payment_terms_from_dict = PendingReceivedDocumentPaymentsListItemPaymentTerms.from_dict(pending_received_document_payments_list_item_payment_terms_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PendingReceivedDocumentType.md b/docs/PendingReceivedDocumentType.md
new file mode 100644
index 00000000..6824b4b1
--- /dev/null
+++ b/docs/PendingReceivedDocumentType.md
@@ -0,0 +1,15 @@
+# PendingReceivedDocumentType
+
+Pending received document type
+
+## Enum
+
+* `AGYO` (value: `'agyo'`)
+
+* `MAIL` (value: `'mail'`)
+
+* `BROWSER` (value: `'browser'`)
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PriceListsApi.md b/docs/PriceListsApi.md
index 92657c2f..e12ba1f9 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
@@ -81,9 +81,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -158,9 +165,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/docs/ProductsApi.md b/docs/ProductsApi.md
index 6bf3c44b..d25d95bb 100644
--- a/docs/ProductsApi.md
+++ b/docs/ProductsApi.md
@@ -85,7 +85,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -153,15 +162,22 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Product removed. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Product removed. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -242,9 +258,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -331,8 +354,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Products List. | - |
-**401** | Unauthorized | - |
+**200** | Products List. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -412,9 +443,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/docs/ReceiptsApi.md b/docs/ReceiptsApi.md
index c0df7b1e..dbb312b2 100644
--- a/docs/ReceiptsApi.md
+++ b/docs/ReceiptsApi.md
@@ -87,8 +87,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Created Receipt. | - |
-**401** | Unauthorized | - |
+**200** | Created Receipt. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -156,15 +164,22 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Document removed. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Document removed. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -245,9 +260,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Receipt Details. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Receipt Details. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -322,9 +344,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Pre-create info. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Pre-create info. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -403,9 +432,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Monthly Totals. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Monthly Totals. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -492,8 +528,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Receipts list. | - |
-**401** | Unauthorized | - |
+**200** | Receipts list. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -573,9 +617,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Modified receipt. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Modified receipt. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/docs/ReceivedDocument.md b/docs/ReceivedDocument.md
index 12a16394..a7292eda 100644
--- a/docs/ReceivedDocument.md
+++ b/docs/ReceivedDocument.md
@@ -35,6 +35,8 @@ Name | Type | Description | Notes
**locked** | **bool** | Received Document can't be edited | [optional]
**created_at** | **str** | Received document creation date | [optional]
**updated_at** | **str** | Received document last update date | [optional]
+**ei_reception_date** | **str** | [Read Only] Received document e-invoice reception date, needs fic_view fieldset | [optional] [readonly]
+**is_from_pending_expenses** | **bool** | [Read Only] True if received document is generated from pending expenses, needs fic_view fieldset | [optional] [readonly]
## Example
diff --git a/docs/ReceivedDocumentItemsListItem.md b/docs/ReceivedDocumentItemsListItem.md
index 361fd367..ed855d0a 100644
--- a/docs/ReceivedDocumentItemsListItem.md
+++ b/docs/ReceivedDocumentItemsListItem.md
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
**qty** | **float** | Received document item quantity | [optional]
**vat** | [**VatType**](VatType.md) | | [optional]
**stock** | **float** | Received document item product number of items in stock | [optional]
+**deductibility_vat_percentage** | **float** | Received document item deductibility vat percentage | [optional]
## Example
diff --git a/docs/ReceivedDocumentsApi.md b/docs/ReceivedDocumentsApi.md
index e52a1c01..db9f1ab1 100644
--- a/docs/ReceivedDocumentsApi.md
+++ b/docs/ReceivedDocumentsApi.md
@@ -5,18 +5,20 @@ 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
[**get_existing_received_document_totals**](ReceivedDocumentsApi.md#get_existing_received_document_totals) | **POST** /c/{company_id}/received_documents/{document_id}/totals | Get Existing Received Document Totals
[**get_new_received_document_totals**](ReceivedDocumentsApi.md#get_new_received_document_totals) | **POST** /c/{company_id}/received_documents/totals | Get New Received Document Totals
+[**get_pending_received_document**](ReceivedDocumentsApi.md#get_pending_received_document) | **GET** /c/{company_id}/received_documents/pending/{document_id} | Get Pending Received Document
[**get_received_document**](ReceivedDocumentsApi.md#get_received_document) | **GET** /c/{company_id}/received_documents/{document_id} | Get Received Document
[**get_received_document_pre_create_info**](ReceivedDocumentsApi.md#get_received_document_pre_create_info) | **GET** /c/{company_id}/received_documents/info | Get Received Document Pre-Create Info
[**list_bin_received_documents**](ReceivedDocumentsApi.md#list_bin_received_documents) | **GET** /c/{company_id}/bin/received_documents | Get Bin Received Documents List
+[**list_pending_received_documents**](ReceivedDocumentsApi.md#list_pending_received_documents) | **GET** /c/{company_id}/received_documents/pending | List Pending Received Documents
[**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
@@ -94,14 +96,23 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Document created. | - |
+**200** | Document created. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **delete_bin_received_document**
> delete_bin_received_document(company_id, document_id)
-
+Delete Bin Received Document
Delete Bin Received Document
@@ -135,7 +146,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)
@@ -162,13 +173,22 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+**200** | OK | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -236,15 +256,22 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Document removed. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Document removed. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -312,20 +339,27 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | File removed | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | File removed | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **get_bin_received_document**
-> GetBinIssuedDocumentResponse get_bin_received_document(company_id, document_id)
+> GetBinReceivedDocumentResponse get_bin_received_document(company_id, document_id)
Get Bin Received Documents List
@@ -337,7 +371,7 @@ Get bin issued documents detail
```python
import fattureincloud_python_sdk
-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.rest import ApiException
from pprint import pprint
@@ -382,7 +416,7 @@ Name | Type | Description | Notes
### Return type
-[**GetBinIssuedDocumentResponse**](GetBinIssuedDocumentResponse.md)
+[**GetBinReceivedDocumentResponse**](GetBinReceivedDocumentResponse.md)
### Authorization
@@ -397,7 +431,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Bin issued document details | - |
+**200** | Bin received document details | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -477,7 +520,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Document Totals. | - |
+**200** | Document Totals. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -555,9 +607,106 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Document Totals. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Document Totals. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_pending_received_document**
+> GetPendingReceivedDocumentResponse get_pending_received_document(company_id, document_id, fields=fields, fieldset=fieldset)
+
+Get Pending Received Document
+
+Gets the specified pending received document.
+
+### Example
+
+* OAuth Authentication (OAuth2AuthenticationCodeFlow):
+
+```python
+import fattureincloud_python_sdk
+from fattureincloud_python_sdk.models.get_pending_received_document_response import GetPendingReceivedDocumentResponse
+from fattureincloud_python_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://api-v2.fattureincloud.it
+# See configuration.py for a list of all supported configuration parameters.
+configuration = fattureincloud_python_sdk.Configuration(
+ host = "https://api-v2.fattureincloud.it"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
+# Enter a context with an instance of the API client
+with fattureincloud_python_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = fattureincloud_python_sdk.ReceivedDocumentsApi(api_client)
+ company_id = 12345 # int | The ID of the company.
+ document_id = 56 # int | The ID of the document.
+ fields = 'fields_example' # str | List of comma-separated fields. (optional)
+ fieldset = 'fieldset_example' # str | Name of the fieldset. (optional)
+
+ try:
+ # Get Pending Received Document
+ api_response = api_instance.get_pending_received_document(company_id, document_id, fields=fields, fieldset=fieldset)
+ print("The response of ReceivedDocumentsApi->get_pending_received_document:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ReceivedDocumentsApi->get_pending_received_document: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **company_id** | **int**| The ID of the company. |
+ **document_id** | **int**| The ID of the document. |
+ **fields** | **str**| List of comma-separated fields. | [optional]
+ **fieldset** | **str**| Name of the fieldset. | [optional]
+
+### Return type
+
+[**GetPendingReceivedDocumentResponse**](GetPendingReceivedDocumentResponse.md)
+
+### Authorization
+
+[OAuth2AuthenticationCodeFlow](../README.md#OAuth2AuthenticationCodeFlow)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Document details. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -638,9 +787,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Document details. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Document details. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -717,7 +873,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Pre-create info | - |
+**200** | Pre-create info | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -792,7 +957,114 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **list_pending_received_documents**
+> ListPendingReceivedDocumentsResponse list_pending_received_documents(company_id, type, fields=fields, fieldset=fieldset, sort=sort, page=page, per_page=per_page, q=q)
+
+List Pending Received Documents
+
+Lists the pending received documents.
+
+### Example
+
+* OAuth Authentication (OAuth2AuthenticationCodeFlow):
+
+```python
+import fattureincloud_python_sdk
+from fattureincloud_python_sdk.models.list_pending_received_documents_response import ListPendingReceivedDocumentsResponse
+from fattureincloud_python_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://api-v2.fattureincloud.it
+# See configuration.py for a list of all supported configuration parameters.
+configuration = fattureincloud_python_sdk.Configuration(
+ host = "https://api-v2.fattureincloud.it"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
+# Enter a context with an instance of the API client
+with fattureincloud_python_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = fattureincloud_python_sdk.ReceivedDocumentsApi(api_client)
+ company_id = 12345 # int | The ID of the company.
+ type = 'type_example' # str | The type of the pending received document.
+ fields = 'fields_example' # str | List of comma-separated fields. (optional)
+ fieldset = 'fieldset_example' # str | Name of the fieldset. (optional)
+ sort = 'sort_example' # str | List of comma-separated fields for result sorting (minus for desc sorting). (optional)
+ page = 1 # int | The page to retrieve. (optional) (default to 1)
+ per_page = 5 # int | The size of the page. (optional) (default to 5)
+ q = 'q_example' # str | Query for filtering the results. (optional)
+
+ try:
+ # List Pending Received Documents
+ api_response = api_instance.list_pending_received_documents(company_id, type, fields=fields, fieldset=fieldset, sort=sort, page=page, per_page=per_page, q=q)
+ print("The response of ReceivedDocumentsApi->list_pending_received_documents:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ReceivedDocumentsApi->list_pending_received_documents: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **company_id** | **int**| The ID of the company. |
+ **type** | **str**| The type of the pending received document. |
+ **fields** | **str**| List of comma-separated fields. | [optional]
+ **fieldset** | **str**| Name of the fieldset. | [optional]
+ **sort** | **str**| List of comma-separated fields for result sorting (minus for desc sorting). | [optional]
+ **page** | **int**| The page to retrieve. | [optional] [default to 1]
+ **per_page** | **int**| The size of the page. | [optional] [default to 5]
+ **q** | **str**| Query for filtering the results. | [optional]
+
+### Return type
+
+[**ListPendingReceivedDocumentsResponse**](ListPendingReceivedDocumentsResponse.md)
+
+### Authorization
+
+[OAuth2AuthenticationCodeFlow](../README.md#OAuth2AuthenticationCodeFlow)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Results list. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -881,8 +1153,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Results list. | - |
-**401** | Unauthorized | - |
+**200** | Results list. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -962,16 +1242,23 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Modified document. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Modified document. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **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 +1292,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)
@@ -1032,13 +1319,22 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+**200** | OK | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -1117,8 +1413,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Attachment Token. | - |
-**401** | Unauthorized | - |
+**200** | Attachment Token. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/docs/SettingsApi.md b/docs/SettingsApi.md
index 526e9a7f..7659e1a1 100644
--- a/docs/SettingsApi.md
+++ b/docs/SettingsApi.md
@@ -13,7 +13,9 @@ Method | HTTP request | Description
[**get_payment_account**](SettingsApi.md#get_payment_account) | **GET** /c/{company_id}/settings/payment_accounts/{payment_account_id} | Get Payment Account
[**get_payment_method**](SettingsApi.md#get_payment_method) | **GET** /c/{company_id}/settings/payment_methods/{payment_method_id} | Get Payment Method
[**get_tax_profile**](SettingsApi.md#get_tax_profile) | **GET** /c/{company_id}/settings/tax_profile | Get Tax Profile
+[**get_template**](SettingsApi.md#get_template) | **GET** /c/{company_id}/settings/templates/{template_id} | Get Template
[**get_vat_type**](SettingsApi.md#get_vat_type) | **GET** /c/{company_id}/settings/vat_types/{vat_type_id} | Get Vat Type
+[**list_templates**](SettingsApi.md#list_templates) | **GET** /c/{company_id}/settings/templates | List Templates
[**modify_payment_account**](SettingsApi.md#modify_payment_account) | **PUT** /c/{company_id}/settings/payment_accounts/{payment_account_id} | Modify Payment Account
[**modify_payment_method**](SettingsApi.md#modify_payment_method) | **PUT** /c/{company_id}/settings/payment_methods/{payment_method_id} | Modify Payment Method
[**modify_vat_type**](SettingsApi.md#modify_vat_type) | **PUT** /c/{company_id}/settings/vat_types/{vat_type_id} | Modify Vat Type
@@ -93,7 +95,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -171,7 +182,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -249,7 +269,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -317,13 +346,22 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+**200** | OK | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -391,13 +429,22 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+**200** | OK | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -465,13 +512,22 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+**200** | OK | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -552,7 +608,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -633,7 +698,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -708,7 +782,106 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_template**
+> GetTemplatesResponse get_template(company_id, template_id, fields=fields, fieldset=fieldset)
+
+Get Template
+
+Gets a specified template.
+
+### Example
+
+* OAuth Authentication (OAuth2AuthenticationCodeFlow):
+
+```python
+import fattureincloud_python_sdk
+from fattureincloud_python_sdk.models.get_templates_response import GetTemplatesResponse
+from fattureincloud_python_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://api-v2.fattureincloud.it
+# See configuration.py for a list of all supported configuration parameters.
+configuration = fattureincloud_python_sdk.Configuration(
+ host = "https://api-v2.fattureincloud.it"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
+# Enter a context with an instance of the API client
+with fattureincloud_python_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = fattureincloud_python_sdk.SettingsApi(api_client)
+ company_id = 12345 # int | The ID of the company.
+ template_id = 56 # int | The Referred Template Id.
+ fields = 'fields_example' # str | List of comma-separated fields. (optional)
+ fieldset = 'fieldset_example' # str | Name of the fieldset. (optional)
+
+ try:
+ # Get Template
+ api_response = api_instance.get_template(company_id, template_id, fields=fields, fieldset=fieldset)
+ print("The response of SettingsApi->get_template:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling SettingsApi->get_template: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **company_id** | **int**| The ID of the company. |
+ **template_id** | **int**| The Referred Template Id. |
+ **fields** | **str**| List of comma-separated fields. | [optional]
+ **fieldset** | **str**| Name of the fieldset. | [optional]
+
+### Return type
+
+[**GetTemplatesResponse**](GetTemplatesResponse.md)
+
+### Authorization
+
+[OAuth2AuthenticationCodeFlow](../README.md#OAuth2AuthenticationCodeFlow)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -785,7 +958,104 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **list_templates**
+> ListTemplatesResponse list_templates(company_id, fields=fields, fieldset=fieldset)
+
+List Templates
+
+Gets all the standard and private templates.
+
+### Example
+
+* OAuth Authentication (OAuth2AuthenticationCodeFlow):
+
+```python
+import fattureincloud_python_sdk
+from fattureincloud_python_sdk.models.list_templates_response import ListTemplatesResponse
+from fattureincloud_python_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://api-v2.fattureincloud.it
+# See configuration.py for a list of all supported configuration parameters.
+configuration = fattureincloud_python_sdk.Configuration(
+ host = "https://api-v2.fattureincloud.it"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+configuration.access_token = os.environ["ACCESS_TOKEN"]
+
+# Enter a context with an instance of the API client
+with fattureincloud_python_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = fattureincloud_python_sdk.SettingsApi(api_client)
+ company_id = 12345 # int | The ID of the company.
+ fields = 'fields_example' # str | List of comma-separated fields. (optional)
+ fieldset = 'fieldset_example' # str | Name of the fieldset. (optional)
+
+ try:
+ # List Templates
+ api_response = api_instance.list_templates(company_id, fields=fields, fieldset=fieldset)
+ print("The response of SettingsApi->list_templates:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling SettingsApi->list_templates: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **company_id** | **int**| The ID of the company. |
+ **fields** | **str**| List of comma-separated fields. | [optional]
+ **fieldset** | **str**| Name of the fieldset. | [optional]
+
+### Return type
+
+[**ListTemplatesResponse**](ListTemplatesResponse.md)
+
+### Authorization
+
+[OAuth2AuthenticationCodeFlow](../README.md#OAuth2AuthenticationCodeFlow)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Templates list. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -865,7 +1135,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -945,7 +1224,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -1025,7 +1313,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/docs/SuppliersApi.md b/docs/SuppliersApi.md
index e8438c88..7d4f0bc8 100644
--- a/docs/SuppliersApi.md
+++ b/docs/SuppliersApi.md
@@ -85,7 +85,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -153,15 +162,22 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Entity Removed | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Entity Removed | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -242,9 +258,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -331,8 +354,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
-**401** | Unauthorized | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -412,9 +443,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/docs/TaxesApi.md b/docs/TaxesApi.md
index bd91e634..32d4cf26 100644
--- a/docs/TaxesApi.md
+++ b/docs/TaxesApi.md
@@ -87,9 +87,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | The created F24 | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | The created F24 | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -157,15 +164,22 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Document removed. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | Document removed. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -233,15 +247,22 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | File Removed. | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | File Removed. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -322,9 +343,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | The F24 | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | The F24 | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -411,8 +439,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Results list. | - |
-**401** | Unauthorized | - |
+**200** | Results list. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -492,9 +528,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | The modified F24 | - |
-**401** | Unauthorized | - |
-**404** | Not Found | - |
+**200** | The modified F24 | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -573,7 +616,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Attachment Token. | - |
+**200** | Attachment Token. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/docs/TemplateType.md b/docs/TemplateType.md
new file mode 100644
index 00000000..7e244c46
--- /dev/null
+++ b/docs/TemplateType.md
@@ -0,0 +1,15 @@
+# TemplateType
+
+Template type
+
+## Enum
+
+* `STANDARD` (value: `'standard'`)
+
+* `DELIVERY_NOTE` (value: `'delivery_note'`)
+
+* `ACCOMPANYING_INVOICE` (value: `'accompanying_invoice'`)
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UserApi.md b/docs/UserApi.md
index 67ee10c2..06df2828 100644
--- a/docs/UserApi.md
+++ b/docs/UserApi.md
@@ -75,8 +75,16 @@ This endpoint does not need any parameter.
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | | - |
-**401** | Unauthorized. | - |
+**200** | | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -147,8 +155,16 @@ This endpoint does not need any parameter.
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | User Companies. | - |
-**401** | Unauthorized | - |
+**200** | User Companies. | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/docs/WebhooksApi.md b/docs/WebhooksApi.md
index 6b216f93..bef21d1e 100644
--- a/docs/WebhooksApi.md
+++ b/docs/WebhooksApi.md
@@ -86,7 +86,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -154,13 +163,22 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+**200** | OK | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -237,7 +255,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -312,7 +339,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -392,7 +428,16 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Example response | - |
+**200** | Example response | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -463,13 +508,22 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: application/json
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+**200** | OK | * RateLimit-HourlyRemaining -
* RateLimit-HourlyLimit -
* RateLimit-MonthlyRemaining -
* RateLimit-MonthlyLimit -
|
+**400** | ErrorResponse | * Retry-After -
|
+**401** | ErrorResponse | * Retry-After -
|
+**403** | ErrorResponse | * Retry-After -
|
+**404** | ErrorResponse | * Retry-After -
|
+**405** | ErrorResponse | * Retry-After -
|
+**409** | ErrorResponse | * Retry-After -
|
+**422** | ErrorResponse | * Retry-After -
|
+**429** | ErrorResponse | * Retry-After -
|
+**500** | ErrorResponse | * Retry-After -
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/fattureincloud_python_sdk/__init__.py b/fattureincloud_python_sdk/__init__.py
index d00c05db..386dbea1 100644
--- a/fattureincloud_python_sdk/__init__.py
+++ b/fattureincloud_python_sdk/__init__.py
@@ -3,608 +3,603 @@
# 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",
+ "Attachment",
+ "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",
+ "GetPendingReceivedDocumentResponse",
+ "GetPriceListItemsResponse",
+ "GetProductResponse",
+ "GetReceiptPreCreateInfoResponse",
+ "GetReceiptResponse",
+ "GetReceiptsMonthlyTotalsResponse",
+ "GetReceivedDocumentPreCreateInfoResponse",
+ "GetReceivedDocumentResponse",
+ "GetSupplierResponse",
+ "GetTaxProfileResponse",
+ "GetTemplatesResponse",
+ "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",
+ "ListPendingReceivedDocumentsResponse",
+ "ListPendingReceivedDocumentsResponsePage",
+ "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",
+ "PendingReceivedDocument",
+ "PendingReceivedDocumentExtractedData",
+ "PendingReceivedDocumentExtractedDataMining",
+ "PendingReceivedDocumentPaymentsListItem",
+ "PendingReceivedDocumentPaymentsListItemPaymentTerms",
+ "PendingReceivedDocumentType",
+ "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",
+ "TemplateType",
+ "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 import Attachment as Attachment
+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_pending_received_document_response import GetPendingReceivedDocumentResponse as GetPendingReceivedDocumentResponse
+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_templates_response import GetTemplatesResponse as GetTemplatesResponse
+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_pending_received_documents_response import ListPendingReceivedDocumentsResponse as ListPendingReceivedDocumentsResponse
+from fattureincloud_python_sdk.models.list_pending_received_documents_response_page import ListPendingReceivedDocumentsResponsePage as ListPendingReceivedDocumentsResponsePage
+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.pending_received_document import PendingReceivedDocument as PendingReceivedDocument
+from fattureincloud_python_sdk.models.pending_received_document_extracted_data import PendingReceivedDocumentExtractedData as PendingReceivedDocumentExtractedData
+from fattureincloud_python_sdk.models.pending_received_document_extracted_data_mining import PendingReceivedDocumentExtractedDataMining as PendingReceivedDocumentExtractedDataMining
+from fattureincloud_python_sdk.models.pending_received_document_payments_list_item import PendingReceivedDocumentPaymentsListItem as PendingReceivedDocumentPaymentsListItem
+from fattureincloud_python_sdk.models.pending_received_document_payments_list_item_payment_terms import PendingReceivedDocumentPaymentsListItemPaymentTerms as PendingReceivedDocumentPaymentsListItemPaymentTerms
+from fattureincloud_python_sdk.models.pending_received_document_type import PendingReceivedDocumentType as PendingReceivedDocumentType
+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.template_type import TemplateType as TemplateType
+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..1c2d5e55 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,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +129,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 +176,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 +184,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +214,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 +261,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 +269,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +308,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 +322,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 +330,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 +370,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 +385,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 +422,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 +430,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +460,7 @@ def delete_archive_document(
response_types_map=_response_types_map,
).data
+
@validate_call
def delete_archive_document_with_http_info(
self,
@@ -420,8 +470,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 +507,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 +515,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +545,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 +555,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 +592,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 +600,33 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +639,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 +653,32 @@ 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
+
+ # set the HTTP header `Accept`
+ 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="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 +688,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 +746,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 +756,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -680,23 +786,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 +839,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 +849,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +879,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 +932,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 +942,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +983,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 +997,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 +1040,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 +1107,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 +1120,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -1013,38 +1150,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 +1212,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 +1225,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -1119,38 +1255,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 +1317,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 +1330,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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_documents_serialize(
self,
company_id,
@@ -1238,7 +1374,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 +1388,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 +1445,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 +1500,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 +1509,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +1539,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 +1589,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 +1598,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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,21 +1628,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 +1678,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 +1687,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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_archive_document_serialize(
self,
company_id,
@@ -1545,7 +1727,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 +1741,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 +1751,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 +1791,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 +1846,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 +1855,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -1683,25 +1885,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 +1935,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 +1944,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1974,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 +2024,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 +2033,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +2073,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 +2087,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 +2137,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..fbca3e77 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,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +128,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 +153,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 +175,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 +183,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +213,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 +238,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 +260,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 +268,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +307,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 +321,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 +329,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 +369,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 +384,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 +421,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 +429,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +459,7 @@ def delete_cashbook_entry(
response_types_map=_response_types_map,
).data
+
@validate_call
def delete_cashbook_entry_with_http_info(
self,
@@ -414,8 +469,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 +506,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 +514,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -475,6 +544,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 +554,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 +591,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 +599,33 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +638,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 +652,32 @@ 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
+
+ # set the HTTP header `Accept`
+ 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="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 +687,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 +745,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 +755,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +785,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 +838,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 +848,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -756,23 +878,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 +931,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 +941,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +982,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 +996,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 +1039,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 +1103,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 +1115,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1145,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 +1204,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 +1216,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1246,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 +1305,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 +1317,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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_cashbook_entries_serialize(
self,
company_id,
@@ -1189,7 +1360,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 +1374,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 +1427,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 +1482,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 +1491,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1521,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 +1571,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 +1580,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1610,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 +1660,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 +1669,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +1709,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 +1723,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 +1733,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 +1773,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..994de623 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,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +129,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 +176,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 +184,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +214,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 +261,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 +269,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +308,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 +322,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 +330,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 +370,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 +385,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 +422,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 +430,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +460,7 @@ def delete_client(
response_types_map=_response_types_map,
).data
+
@validate_call
def delete_client_with_http_info(
self,
@@ -399,8 +470,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 +507,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 +515,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +545,7 @@ def delete_client_with_http_info(
response_types_map=_response_types_map,
)
+
@validate_call
def delete_client_without_preload_content(
self,
@@ -469,8 +555,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 +592,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 +600,33 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +639,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 +653,32 @@ 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
+
+ # set the HTTP header `Accept`
+ 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="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 +688,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 +746,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 +756,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -659,23 +786,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 +839,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 +849,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -741,23 +879,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 +932,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 +942,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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_client_serialize(
self,
company_id,
@@ -833,7 +983,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 +997,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 +1040,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 +1054,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 +1089,36 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1126,7 @@ def get_client_info(
response_types_map=_response_types_map,
).data
+
@validate_call
def get_client_info_with_http_info(
self,
@@ -960,8 +1135,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 +1170,36 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -1018,6 +1207,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 +1216,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 +1251,40 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1296,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 +1310,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 +1343,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 +1410,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 +1423,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1453,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 +1515,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 +1528,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1558,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 +1620,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 +1633,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1677,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 +1691,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 +1748,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 +1803,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 +1812,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +1842,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 +1892,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 +1901,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +1931,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 +1981,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 +1990,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +2030,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 +2044,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 +2054,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 +2094,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..3ad8394c 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,36 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +119,7 @@ def get_company_info(
response_types_map=_response_types_map,
).data
+
@validate_call
def get_company_info_with_http_info(
self,
@@ -116,8 +128,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 +163,36 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +200,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 +209,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 +244,40 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +289,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 +303,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 +336,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 +351,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 +388,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 +396,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +426,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 +436,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 +473,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 +481,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +511,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 +521,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 +558,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 +566,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +605,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 +619,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 +656,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..e9c7f71f 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,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +143,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 +205,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 +218,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +248,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 +310,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 +323,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +367,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 +381,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 +438,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..f83b338e 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,36 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -150,6 +134,7 @@ def list_archive_categories(
response_types_map=_response_types_map,
).data
+
@validate_call
def list_archive_categories_with_http_info(
self,
@@ -158,8 +143,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 +178,36 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -216,6 +215,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 +224,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 +259,40 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +304,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 +318,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 +351,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 +403,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 +411,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +441,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 +488,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 +496,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +526,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 +573,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 +581,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +620,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 +635,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 +673,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 +687,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 +722,36 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +759,7 @@ def list_cost_centers(
response_types_map=_response_types_map,
).data
+
@validate_call
def list_cost_centers_with_http_info(
self,
@@ -682,8 +768,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 +803,36 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -740,6 +840,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 +849,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 +884,40 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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_cost_centers_serialize(
self,
company_id,
@@ -813,7 +929,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 +943,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 +976,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 +989,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 +1022,35 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1058,7 @@ def list_countries(
response_types_map=_response_types_map,
).data
+
@validate_call
def list_countries_with_http_info(
self,
@@ -924,8 +1066,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 +1099,35 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -978,6 +1135,7 @@ def list_countries_with_http_info(
response_types_map=_response_types_map,
)
+
@validate_call
def list_countries_without_preload_content(
self,
@@ -985,8 +1143,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 +1176,39 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1219,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 +1237,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 +1264,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 +1277,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 +1310,35 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1346,7 @@ def list_currencies(
response_types_map=_response_types_map,
).data
+
@validate_call
def list_currencies_with_http_info(
self,
@@ -1154,8 +1354,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 +1387,35 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -1208,6 +1423,7 @@ def list_currencies_with_http_info(
response_types_map=_response_types_map,
)
+
@validate_call
def list_currencies_without_preload_content(
self,
@@ -1215,8 +1431,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 +1464,39 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1507,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 +1525,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,28 +1552,38 @@ 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(
+ def list_default_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,
_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ListDeliveryNotesDefaultCausalsResponse:
- """List Delivery Notes Default Causals
+ ) -> ListTemplatesResponse:
+ """List Default Templates
- Lists the delivery note default causals.
+ Lists the default available templates.
+ :param type: Type of the templates.
+ :type type: str
+ :param by_type: [Only if type=all] If true, splits the list in objects, grouping templates by type.
+ :type by_type: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1355,21 +1604,37 @@ 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(
+ _param = self._list_default_templates_serialize(
+ type=type,
+ by_type=by_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": "ListDeliveryNotesDefaultCausalsResponse",
- "401": None,
+ '200': "ListTemplatesResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -1377,25 +1642,33 @@ def list_delivery_notes_default_causals(
response_types_map=_response_types_map,
).data
+
@validate_call
- def list_delivery_notes_default_causals_with_http_info(
+ def list_default_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,
_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ListDeliveryNotesDefaultCausalsResponse]:
- """List Delivery Notes Default Causals
+ ) -> ApiResponse[ListTemplatesResponse]:
+ """List Default Templates
- Lists the delivery note default causals.
+ Lists the default available templates.
+ :param type: Type of the templates.
+ :type type: str
+ :param by_type: [Only if type=all] If true, splits the list in objects, grouping templates by type.
+ :type by_type: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1416,21 +1689,37 @@ 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(
+ _param = self._list_default_templates_serialize(
+ type=type,
+ by_type=by_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": "ListDeliveryNotesDefaultCausalsResponse",
- "401": None,
+ '200': "ListTemplatesResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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,25 +1727,33 @@ 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(
+ def list_default_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,
_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """List Delivery Notes Default Causals
+ """List Default Templates
- Lists the delivery note default causals.
+ Lists the default available templates.
+ :param type: Type of the templates.
+ :type type: str
+ :param by_type: [Only if type=all] If true, splits the list in objects, grouping templates by type.
+ :type by_type: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1477,26 +1774,45 @@ 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(
+ _param = self._list_default_templates_serialize(
+ type=type,
+ by_type=by_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": "ListDeliveryNotesDefaultCausalsResponse",
- "401": None,
+ '200': "ListTemplatesResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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_delivery_notes_default_causals_serialize(
+
+ def _list_default_templates_serialize(
self,
+ type,
+ by_type,
_request_auth,
_content_type,
_headers,
@@ -1505,7 +1821,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]] = []
@@ -1518,22 +1835,36 @@ def _list_delivery_notes_default_causals_serialize(
# process the path parameters
# process the query parameters
+ if type is not None:
+
+ _query_params.append(('type', type))
+
+ if by_type is not None:
+
+ _query_params.append(('by_type', by_type))
+
# process the header parameters
# 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/templates',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -1543,27 +1874,31 @@ 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(
+ def list_delivery_notes_default_causals(
self,
_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ListDetailedCountriesResponse:
- """List Detailed Countries
+ ) -> ListDeliveryNotesDefaultCausalsResponse:
+ """List Delivery Notes Default Causals
- Lists the supported countries.
+ Lists the delivery note default causals.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -1585,21 +1920,35 @@ 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(
+ _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": "ListDetailedCountriesResponse",
- "401": None,
+ '200': "ListDeliveryNotesDefaultCausalsResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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,24 +1956,26 @@ def list_detailed_countries(
response_types_map=_response_types_map,
).data
+
@validate_call
- def list_detailed_countries_with_http_info(
+ def list_delivery_notes_default_causals_with_http_info(
self,
_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ListDetailedCountriesResponse]:
- """List Detailed Countries
+ ) -> ApiResponse[ListDeliveryNotesDefaultCausalsResponse]:
+ """List Delivery Notes Default Causals
- Lists the supported countries.
+ Lists the delivery note default causals.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -1646,21 +1997,35 @@ 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(
+ _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": "ListDetailedCountriesResponse",
- "401": None,
+ '200': "ListDeliveryNotesDefaultCausalsResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -1668,24 +2033,26 @@ def list_detailed_countries_with_http_info(
response_types_map=_response_types_map,
)
+
@validate_call
- def list_detailed_countries_without_preload_content(
+ def list_delivery_notes_default_causals_without_preload_content(
self,
_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """List Detailed Countries
+ """List Delivery Notes Default Causals
- Lists the supported countries.
+ Lists the delivery note default causals.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -1707,25 +2074,40 @@ 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(
+ _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": "ListDetailedCountriesResponse",
- "401": None,
+ '200': "ListDeliveryNotesDefaultCausalsResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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_detailed_countries_serialize(
+
+ def _list_delivery_notes_default_causals_serialize(
self,
_request_auth,
_content_type,
@@ -1735,7 +2117,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 +2135,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/dn_causals',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -1773,27 +2162,31 @@ 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(
+ def list_detailed_countries(
self,
_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ListLanguagesResponse:
- """List Languages
+ ) -> ListDetailedCountriesResponse:
+ """List Detailed Countries
- Lists the supported languages.
+ Lists the supported countries.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -1815,21 +2208,35 @@ 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(
+ _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": "ListLanguagesResponse",
- "401": None,
+ '200': "ListDetailedCountriesResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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,24 +2244,26 @@ def list_languages(
response_types_map=_response_types_map,
).data
+
@validate_call
- def list_languages_with_http_info(
+ def list_detailed_countries_with_http_info(
self,
_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ListLanguagesResponse]:
- """List Languages
+ ) -> ApiResponse[ListDetailedCountriesResponse]:
+ """List Detailed Countries
- Lists the supported languages.
+ Lists the supported countries.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -1876,21 +2285,35 @@ 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(
+ _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": "ListLanguagesResponse",
- "401": None,
+ '200': "ListDetailedCountriesResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -1898,24 +2321,26 @@ def list_languages_with_http_info(
response_types_map=_response_types_map,
)
+
@validate_call
- def list_languages_without_preload_content(
+ def list_detailed_countries_without_preload_content(
self,
_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """List Languages
+ """List Detailed Countries
- Lists the supported languages.
+ Lists the supported countries.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -1937,26 +2362,41 @@ 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(
+ _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": "ListLanguagesResponse",
- "401": None,
+ '200': "ListDetailedCountriesResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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,
+
+ def _list_detailed_countries_serialize(
+ self,
_request_auth,
_content_type,
_headers,
@@ -1965,7 +2405,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 +2423,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/detailed_countries',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -2003,49 +2450,32 @@ 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(
+ def list_languages(
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,
_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ListPaymentAccountsResponse:
- """List Payment Accounts
+ ) -> ListLanguagesResponse:
+ """List Languages
- Lists the available payment accounts.
+ Lists the supported languages.
- :param company_id: The ID of the company. (required)
- :type company_id: int
- :param fields: List of comma-separated fields.
- :type fields: str
- :param fieldset: Name of the fieldset.
- :type fieldset: str
- :param sort: List of comma-separated fields for result sorting (minus for desc sorting).
- :type sort: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2066,26 +2496,35 @@ 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,
- fields=fields,
- fieldset=fieldset,
- sort=sort,
+ _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": "ListPaymentAccountsResponse",
- "401": None,
- "404": None,
+ '200': "ListLanguagesResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -2093,46 +2532,27 @@ def list_payment_accounts(
response_types_map=_response_types_map,
).data
+
@validate_call
- def list_payment_accounts_with_http_info(
+ def list_languages_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,
_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ListPaymentAccountsResponse]:
- """List Payment Accounts
+ ) -> ApiResponse[ListLanguagesResponse]:
+ """List Languages
- Lists the available payment accounts.
+ Lists the supported languages.
- :param company_id: The ID of the company. (required)
- :type company_id: int
- :param fields: List of comma-separated fields.
- :type fields: str
- :param fieldset: Name of the fieldset.
- :type fieldset: str
- :param sort: List of comma-separated fields for result sorting (minus for desc sorting).
- :type sort: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2153,26 +2573,35 @@ 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,
- fields=fields,
- fieldset=fieldset,
- sort=sort,
+ _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": "ListPaymentAccountsResponse",
- "401": None,
- "404": None,
+ '200': "ListLanguagesResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -2180,46 +2609,27 @@ def list_payment_accounts_with_http_info(
response_types_map=_response_types_map,
)
+
@validate_call
- def list_payment_accounts_without_preload_content(
+ def list_languages_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,
_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """List Payment Accounts
+ """List Languages
- Lists the available payment accounts.
+ Lists the supported languages.
- :param company_id: The ID of the company. (required)
- :type company_id: int
- :param fields: List of comma-separated fields.
- :type fields: str
- :param fieldset: Name of the fieldset.
- :type fieldset: str
- :param sort: List of comma-separated fields for result sorting (minus for desc sorting).
- :type sort: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2240,35 +2650,41 @@ 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,
- fields=fields,
- fieldset=fieldset,
- sort=sort,
+ _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": "ListPaymentAccountsResponse",
- "401": None,
- "404": None,
+ '200': "ListLanguagesResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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_accounts_serialize(
+
+ def _list_languages_serialize(
self,
- company_id,
- fields,
- fieldset,
- sort,
_request_auth,
_content_type,
_headers,
@@ -2277,7 +2693,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]] = []
@@ -2289,37 +2706,29 @@ def _list_payment_accounts_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if company_id is not None:
- _path_params["company_id"] = company_id
# process the query parameters
- if fields is not None:
-
- _query_params.append(("fields", fields))
-
- if fieldset is not None:
-
- _query_params.append(("fieldset", fieldset))
-
- if sort is not None:
-
- _query_params.append(("sort", sort))
-
# process the header parameters
# 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='/info/languages',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -2329,40 +2738,35 @@ 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(
+ 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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ListPaymentMethodsResponse:
- """List Payment Methods
+ ) -> ListPaymentAccountsResponse:
+ """List Payment Accounts
- Lists the available payment methods.
+ Lists the available payment accounts.
:param company_id: The ID of the company. (required)
:type company_id: int
@@ -2392,9 +2796,9 @@ 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(
+ _param = self._list_payment_accounts_serialize(
company_id=company_id,
fields=fields,
fieldset=fieldset,
@@ -2402,16 +2806,29 @@ 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': "ListPaymentAccountsResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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,37 +2836,30 @@ def list_payment_methods(
response_types_map=_response_types_map,
).data
+
@validate_call
- def list_payment_methods_with_http_info(
+ 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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ListPaymentMethodsResponse]:
- """List Payment Methods
+ ) -> ApiResponse[ListPaymentAccountsResponse]:
+ """List Payment Accounts
- Lists the available payment methods.
+ Lists the available payment accounts.
:param company_id: The ID of the company. (required)
:type company_id: int
@@ -2479,9 +2889,9 @@ 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(
+ _param = self._list_payment_accounts_serialize(
company_id=company_id,
fields=fields,
fieldset=fieldset,
@@ -2489,16 +2899,29 @@ 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': "ListPaymentAccountsResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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,37 +2929,30 @@ def list_payment_methods_with_http_info(
response_types_map=_response_types_map,
)
+
@validate_call
- def list_payment_methods_without_preload_content(
+ 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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """List Payment Methods
+ """List Payment Accounts
- Lists the available payment methods.
+ Lists the available payment accounts.
:param company_id: The ID of the company. (required)
:type company_id: int
@@ -2566,9 +2982,9 @@ 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(
+ _param = self._list_payment_accounts_serialize(
company_id=company_id,
fields=fields,
fieldset=fieldset,
@@ -2576,20 +2992,34 @@ 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': "ListPaymentAccountsResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
+
+ def _list_payment_accounts_serialize(
self,
company_id,
fields,
@@ -2603,7 +3033,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 +3047,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_accounts',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -2655,34 +3092,44 @@ 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(
+ def list_payment_methods(
self,
company_id: Annotated[StrictInt, Field(description="The ID of the company.")],
- context: Annotated[StrictStr, Field(description="Categories resource type.")],
+ 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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ListProductCategoriesResponse:
- """List Product Categories
+ ) -> ListPaymentMethodsResponse:
+ """List Payment Methods
- Lists the product categories.
+ Lists the available payment methods.
:param company_id: The ID of the company. (required)
:type company_id: int
- :param context: Categories resource type. (required)
- :type context: str
+ :param fields: List of comma-separated fields.
+ :type fields: str
+ :param fieldset: Name of the fieldset.
+ :type fieldset: str
+ :param sort: List of comma-separated fields for result sorting (minus for desc sorting).
+ :type sort: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2703,24 +3150,39 @@ 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(
+ _param = self._list_payment_methods_serialize(
company_id=company_id,
- context=context,
+ fields=fields,
+ fieldset=fieldset,
+ sort=sort,
_request_auth=_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': "ListPaymentMethodsResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -2728,31 +3190,39 @@ def list_product_categories(
response_types_map=_response_types_map,
).data
+
@validate_call
- def list_product_categories_with_http_info(
+ def list_payment_methods_with_http_info(
self,
company_id: Annotated[StrictInt, Field(description="The ID of the company.")],
- context: Annotated[StrictStr, Field(description="Categories resource type.")],
+ 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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ListProductCategoriesResponse]:
- """List Product Categories
+ ) -> ApiResponse[ListPaymentMethodsResponse]:
+ """List Payment Methods
- Lists the product categories.
+ Lists the available payment methods.
:param company_id: The ID of the company. (required)
:type company_id: int
- :param context: Categories resource type. (required)
- :type context: str
+ :param fields: List of comma-separated fields.
+ :type fields: str
+ :param fieldset: Name of the fieldset.
+ :type fieldset: str
+ :param sort: List of comma-separated fields for result sorting (minus for desc sorting).
+ :type sort: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2773,24 +3243,39 @@ 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(
+ _param = self._list_payment_methods_serialize(
company_id=company_id,
- context=context,
+ fields=fields,
+ fieldset=fieldset,
+ sort=sort,
_request_auth=_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': "ListPaymentMethodsResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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,31 +3283,39 @@ def list_product_categories_with_http_info(
response_types_map=_response_types_map,
)
+
@validate_call
- def list_product_categories_without_preload_content(
+ def list_payment_methods_without_preload_content(
self,
company_id: Annotated[StrictInt, Field(description="The ID of the company.")],
- context: Annotated[StrictStr, Field(description="Categories resource type.")],
+ 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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """List Product Categories
+ """List Payment Methods
- Lists the product categories.
+ Lists the available payment methods.
:param company_id: The ID of the company. (required)
:type company_id: int
- :param context: Categories resource type. (required)
- :type context: str
+ :param fields: List of comma-separated fields.
+ :type fields: str
+ :param fieldset: Name of the fieldset.
+ :type fieldset: str
+ :param sort: List of comma-separated fields for result sorting (minus for desc sorting).
+ :type sort: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2843,31 +3336,49 @@ 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(
+ _param = self._list_payment_methods_serialize(
company_id=company_id,
- context=context,
+ fields=fields,
+ fieldset=fieldset,
+ sort=sort,
_request_auth=_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': "ListPaymentMethodsResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
+
+ def _list_payment_methods_serialize(
self,
company_id,
- context,
+ fields,
+ fieldset,
+ sort,
_request_auth,
_content_type,
_headers,
@@ -2876,7 +3387,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 +3401,42 @@ 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))
-
+ if fields is not None:
+
+ _query_params.append(('fields', fields))
+
+ if fieldset is not None:
+
+ _query_params.append(('fieldset', fieldset))
+
+ if sort is not None:
+
+ _query_params.append(('sort', sort))
+
# process the header parameters
# 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/payment_methods',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -2920,31 +3446,38 @@ 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(
+ def list_product_categories(
self,
company_id: Annotated[StrictInt, Field(description="The ID of the company.")],
+ context: Annotated[StrictStr, Field(description="Categories resource type.")],
_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ListReceivedDocumentCategoriesResponse:
- """List Received Document Categories
+ ) -> ListProductCategoriesResponse:
+ """List Product Categories
- Lists the received document categories.
+ Lists the product categories.
:param company_id: The ID of the company. (required)
:type company_id: int
+ :param context: Categories resource type. (required)
+ :type context: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2965,21 +3498,37 @@ 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(
+ _param = self._list_product_categories_serialize(
company_id=company_id,
+ context=context,
_request_auth=_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': "ListProductCategoriesResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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,28 +3536,33 @@ def list_received_document_categories(
response_types_map=_response_types_map,
).data
+
@validate_call
- def list_received_document_categories_with_http_info(
+ def list_product_categories_with_http_info(
self,
company_id: Annotated[StrictInt, Field(description="The ID of the company.")],
+ context: Annotated[StrictStr, Field(description="Categories resource type.")],
_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ListReceivedDocumentCategoriesResponse]:
- """List Received Document Categories
+ ) -> ApiResponse[ListProductCategoriesResponse]:
+ """List Product Categories
- Lists the received document categories.
+ Lists the product categories.
:param company_id: The ID of the company. (required)
:type company_id: int
+ :param context: Categories resource type. (required)
+ :type context: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -3029,21 +3583,37 @@ 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(
+ _param = self._list_product_categories_serialize(
company_id=company_id,
+ context=context,
_request_auth=_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': "ListProductCategoriesResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -3051,28 +3621,33 @@ def list_received_document_categories_with_http_info(
response_types_map=_response_types_map,
)
+
@validate_call
- def list_received_document_categories_without_preload_content(
+ def list_product_categories_without_preload_content(
self,
company_id: Annotated[StrictInt, Field(description="The ID of the company.")],
+ context: Annotated[StrictStr, Field(description="Categories resource type.")],
_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """List Received Document Categories
+ """List Product Categories
- Lists the received document categories.
+ Lists the product categories.
:param company_id: The ID of the company. (required)
:type company_id: int
+ :param context: Categories resource type. (required)
+ :type context: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -3093,27 +3668,45 @@ 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(
+ _param = self._list_product_categories_serialize(
company_id=company_id,
+ context=context,
_request_auth=_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': "ListProductCategoriesResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
+
+ def _list_product_categories_serialize(
self,
company_id,
+ context,
_request_auth,
_content_type,
_headers,
@@ -3122,7 +3715,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 +3729,34 @@ 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
+ if context is not None:
+
+ _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/received_document_categories",
+ method='GET',
+ resource_path='/c/{company_id}/info/product_categories',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -3162,28 +3766,32 @@ 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(
+ def list_received_document_categories(
self,
company_id: Annotated[StrictInt, Field(description="The ID of the company.")],
_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ListRevenueCentersResponse:
- """List Revenue Centers
+ ) -> ListReceivedDocumentCategoriesResponse:
+ """List Received Document Categories
- Lists the revenue centers.
+ Lists the received document categories.
:param company_id: The ID of the company. (required)
:type company_id: int
@@ -3207,23 +3815,36 @@ 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(
+ _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": "ListRevenueCentersResponse",
- "401": None,
- "404": None,
+ '200': "ListReceivedDocumentCategoriesResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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,25 +3852,27 @@ def list_revenue_centers(
response_types_map=_response_types_map,
).data
+
@validate_call
- def list_revenue_centers_with_http_info(
+ def list_received_document_categories_with_http_info(
self,
company_id: Annotated[StrictInt, Field(description="The ID of the company.")],
_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ListRevenueCentersResponse]:
- """List Revenue Centers
+ ) -> ApiResponse[ListReceivedDocumentCategoriesResponse]:
+ """List Received Document Categories
- Lists the revenue centers.
+ Lists the received document categories.
:param company_id: The ID of the company. (required)
:type company_id: int
@@ -3273,23 +3896,36 @@ 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(
+ _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": "ListRevenueCentersResponse",
- "401": None,
- "404": None,
+ '200': "ListReceivedDocumentCategoriesResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -3297,25 +3933,27 @@ def list_revenue_centers_with_http_info(
response_types_map=_response_types_map,
)
+
@validate_call
- def list_revenue_centers_without_preload_content(
+ def list_received_document_categories_without_preload_content(
self,
company_id: Annotated[StrictInt, Field(description="The ID of the company.")],
_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """List Revenue Centers
+ """List Received Document Categories
- Lists the revenue centers.
+ Lists the received document categories.
:param company_id: The ID of the company. (required)
:type company_id: int
@@ -3339,27 +3977,41 @@ 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(
+ _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": "ListRevenueCentersResponse",
- "401": None,
- "404": None,
+ '200': "ListReceivedDocumentCategoriesResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
+
+ def _list_received_document_categories_serialize(
self,
company_id,
_request_auth,
@@ -3370,7 +4022,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 +4036,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/received_document_categories',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -3410,41 +4069,35 @@ 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(
+ def list_revenue_centers(
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,
+ company_id: Annotated[StrictInt, Field(description="The ID of the company.")],
_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ListTemplatesResponse:
- """List Templates
+ ) -> ListRevenueCentersResponse:
+ """List Revenue Centers
- Lists the available templates.
+ Lists the revenue centers.
- :param type: Type of the templates.
- :type type: str
- :param by_type: [Only if type=all] If true, splits the list in objects, grouping templates by type.
- :type by_type: bool
+ :param company_id: The ID of the company. (required)
+ :type company_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -3465,23 +4118,36 @@ 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,
- by_type=by_type,
+ _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": "ListTemplatesResponse",
- "401": None,
+ '200': "ListRevenueCentersResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -3489,38 +4155,30 @@ def list_templates(
response_types_map=_response_types_map,
).data
+
@validate_call
- def list_templates_with_http_info(
+ def list_revenue_centers_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,
+ company_id: Annotated[StrictInt, Field(description="The ID of the company.")],
_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ListTemplatesResponse]:
- """List Templates
+ ) -> ApiResponse[ListRevenueCentersResponse]:
+ """List Revenue Centers
- Lists the available templates.
+ Lists the revenue centers.
- :param type: Type of the templates.
- :type type: str
- :param by_type: [Only if type=all] If true, splits the list in objects, grouping templates by type.
- :type by_type: bool
+ :param company_id: The ID of the company. (required)
+ :type company_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -3541,23 +4199,36 @@ 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,
- by_type=by_type,
+ _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": "ListTemplatesResponse",
- "401": None,
+ '200': "ListRevenueCentersResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -3565,38 +4236,30 @@ def list_templates_with_http_info(
response_types_map=_response_types_map,
)
+
@validate_call
- def list_templates_without_preload_content(
+ def list_revenue_centers_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,
+ company_id: Annotated[StrictInt, Field(description="The ID of the company.")],
_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """List Templates
+ """List Revenue Centers
- Lists the available templates.
+ Lists the revenue centers.
- :param type: Type of the templates.
- :type type: str
- :param by_type: [Only if type=all] If true, splits the list in objects, grouping templates by type.
- :type by_type: bool
+ :param company_id: The ID of the company. (required)
+ :type company_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -3617,30 +4280,43 @@ 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,
- by_type=by_type,
+ _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": "ListTemplatesResponse",
- "401": None,
+ '200': "ListRevenueCentersResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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_templates_serialize(
+
+ def _list_revenue_centers_serialize(
self,
- type,
- by_type,
+ company_id,
_request_auth,
_content_type,
_headers,
@@ -3649,7 +4325,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]] = []
@@ -3661,31 +4338,31 @@ def _list_templates_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
+ if company_id is not None:
+ _path_params['company_id'] = company_id
# process the query parameters
- if type is not None:
-
- _query_params.append(("type", type))
-
- if by_type is not None:
-
- _query_params.append(("by_type", by_type))
-
# process the header parameters
# 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='/c/{company_id}/info/revenue_centers',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -3695,9 +4372,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 +4385,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 +4418,35 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +4454,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 +4462,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 +4495,35 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +4531,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 +4539,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 +4572,39 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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_units_of_measure_serialize(
self,
_request_auth,
@@ -3887,7 +4615,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 +4633,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 +4660,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 +4712,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 +4720,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +4750,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 +4797,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 +4805,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +4835,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 +4882,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 +4890,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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_vat_types_serialize(
self,
company_id,
@@ -4152,7 +4929,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 +4943,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 +4980,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..392fa956 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,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +140,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 +187,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 +195,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -234,20 +225,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 +272,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 +280,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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_issued_document_serialize(
self,
company_id,
@@ -314,7 +319,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 +333,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 +341,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 +381,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 +396,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 +433,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 +441,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +471,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 +481,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 +518,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 +526,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -505,6 +556,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 +566,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 +603,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 +611,33 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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_bin_issued_document_serialize(
self,
company_id,
@@ -581,7 +650,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 +664,32 @@ 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
+
+ # set the HTTP header `Accept`
+ 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="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 +699,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 +714,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 +751,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 +759,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +789,7 @@ def delete_issued_document(
response_types_map=_response_types_map,
).data
+
@validate_call
def delete_issued_document_with_http_info(
self,
@@ -699,8 +799,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 +836,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 +844,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -760,6 +874,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 +884,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 +921,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 +929,33 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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_issued_document_serialize(
self,
company_id,
@@ -838,7 +968,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 +982,32 @@ 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
+
+ # set the HTTP header `Accept`
+ 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="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 +1017,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 +1032,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 +1069,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 +1077,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1107,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 +1117,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 +1154,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 +1162,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1192,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 +1202,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 +1239,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 +1247,33 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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_issued_document_attachment_serialize(
self,
company_id,
@@ -1095,7 +1286,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 +1300,32 @@ 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
+
+ # set the HTTP header `Accept`
+ 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="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 +1335,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 +1350,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 +1387,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 +1395,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1425,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 +1435,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 +1472,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 +1480,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -1270,6 +1510,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 +1520,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 +1557,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 +1565,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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_issued_document_serialize(
self,
company_id,
@@ -1346,7 +1604,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 +1618,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 +1653,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 +1668,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 +1705,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 +1713,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +1743,7 @@ def get_email_data(
response_types_map=_response_types_map,
).data
+
@validate_call
def get_email_data_with_http_info(
self,
@@ -1468,8 +1753,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 +1790,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 +1798,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -1527,6 +1828,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 +1838,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 +1875,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 +1883,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1922,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 +1936,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 +1971,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 +2026,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 +2035,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +2065,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 +2115,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 +2124,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +2154,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 +2204,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 +2213,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +2253,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 +2267,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 +2277,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 +2317,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 +2345,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 +2375,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 +2385,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +2415,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 +2438,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 +2468,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 +2478,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -2106,23 +2508,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 +2531,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 +2561,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 +2571,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +2612,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 +2626,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 +2669,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 +2721,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 +2729,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -2321,19 +2759,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 +2806,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 +2814,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -2391,19 +2844,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 +2891,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 +2899,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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_issued_document_pre_create_info_serialize(
self,
company_id,
@@ -2469,7 +2938,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 +2952,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 +2989,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 +3041,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 +3049,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -2587,19 +3079,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 +3126,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 +3134,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +3164,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 +3211,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 +3219,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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_issued_document_totals_serialize(
self,
company_id,
@@ -2737,7 +3258,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 +3272,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 +3280,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 +3320,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 +3378,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 +3388,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -2870,21 +3418,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 +3471,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 +3481,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -2948,21 +3511,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 +3564,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 +3574,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +3615,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 +3629,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 +3674,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 +3688,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 +3723,36 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +3760,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 +3769,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 +3804,36 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +3841,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 +3850,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 +3885,40 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +3930,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 +3944,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 +3977,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 +4050,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 +4065,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -3454,47 +4095,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 +4163,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 +4178,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +4208,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 +4276,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 +4291,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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_issued_documents_serialize(
self,
company_id,
@@ -3711,7 +4337,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 +4351,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 +4416,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 +4471,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 +4480,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -3863,21 +4510,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 +4560,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 +4569,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -3940,21 +4599,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 +4649,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 +4658,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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_issued_document_serialize(
self,
company_id,
@@ -4026,7 +4698,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 +4712,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 +4722,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 +4762,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 +4777,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 +4814,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 +4822,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +4852,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 +4862,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 +4899,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 +4907,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -4219,6 +4937,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 +4947,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 +4984,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 +4992,33 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 _recover_bin_issued_document_serialize(
self,
company_id,
@@ -4295,7 +5031,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 +5045,32 @@ 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
+
+ # set the HTTP header `Accept`
+ 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="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 +5080,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 +5135,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 +5144,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +5174,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 +5224,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 +5233,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +5263,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 +5313,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 +5322,33 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +5362,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 +5376,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 +5386,37 @@ def _schedule_email_serialize(
if schedule_email_request is not None:
_body_params = schedule_email_request
+
+ # set the HTTP header `Accept`
+ 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}/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 +5426,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 +5490,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 +5502,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +5532,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 +5591,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 +5603,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +5633,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 +5692,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 +5704,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +5747,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 +5761,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 +5814,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 +5869,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 +5878,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -5053,25 +5908,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 +5958,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 +5967,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +5997,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 +6047,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 +6056,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +6096,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 +6110,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 +6160,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..fa20749e 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,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +126,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 +136,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 +173,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 +181,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +211,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 +221,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 +258,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 +266,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +305,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 +319,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 +354,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 +409,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 +418,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +448,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 +498,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 +507,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +537,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 +587,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 +596,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +636,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 +650,37 @@ 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',
+ '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",
+ 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 +690,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 +706,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 +723,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 +745,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 +754,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +784,7 @@ def send_e_invoice(
response_types_map=_response_types_map,
).data
+
@validate_call
def send_e_invoice_with_http_info(
self,
@@ -678,8 +795,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 +812,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 +834,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 +843,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +873,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 +884,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 +901,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 +923,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 +932,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +972,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 +986,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 +996,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 +1036,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 +1051,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 +1088,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 +1096,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "VerifyEInvoiceXmlErrorResponse",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1126,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 +1136,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 +1173,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 +1181,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "VerifyEInvoiceXmlErrorResponse",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +1211,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 +1221,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 +1258,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 +1266,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "VerifyEInvoiceXmlErrorResponse",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1305,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 +1319,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 +1354,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..edafd3ff 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,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +123,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 +148,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 +170,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 +178,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +208,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 +233,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 +255,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 +263,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +302,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 +316,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 +351,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 +365,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 +400,36 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +437,7 @@ def get_price_lists(
response_types_map=_response_types_map,
).data
+
@validate_call
def get_price_lists_with_http_info(
self,
@@ -380,8 +446,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 +481,36 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +518,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 +527,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 +562,40 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +607,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 +621,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 +654,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..b285f58d 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,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +128,7 @@ def create_product(
response_types_map=_response_types_map,
).data
+
@validate_call
def create_product_with_http_info(
self,
@@ -125,8 +138,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 +153,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 +175,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 +183,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +213,7 @@ def create_product_with_http_info(
response_types_map=_response_types_map,
)
+
@validate_call
def create_product_without_preload_content(
self,
@@ -193,8 +223,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 +238,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 +260,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 +268,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +307,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 +321,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 +329,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 +369,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 +384,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 +421,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 +429,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +459,7 @@ def delete_product(
response_types_map=_response_types_map,
).data
+
@validate_call
def delete_product_with_http_info(
self,
@@ -394,8 +469,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 +506,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 +514,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -455,6 +544,7 @@ def delete_product_with_http_info(
response_types_map=_response_types_map,
)
+
@validate_call
def delete_product_without_preload_content(
self,
@@ -464,8 +554,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 +591,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 +599,33 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +638,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 +652,32 @@ 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
+
+ # set the HTTP header `Accept`
+ 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="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 +687,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 +745,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 +755,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -654,23 +785,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 +838,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 +848,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +878,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 +931,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 +941,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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_product_serialize(
self,
company_id,
@@ -828,7 +982,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 +996,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 +1039,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 +1106,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 +1119,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1149,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 +1211,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 +1224,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +1254,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 +1316,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 +1329,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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_products_serialize(
self,
company_id,
@@ -1209,7 +1373,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 +1387,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 +1444,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 +1499,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 +1508,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -1353,21 +1538,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 +1588,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 +1597,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +1627,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 +1677,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 +1686,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +1726,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 +1740,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 +1750,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 +1790,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..20cfd69f 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,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +130,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 +177,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 +185,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +215,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 +262,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 +270,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +309,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 +323,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 +331,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 +371,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 +386,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 +423,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 +431,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +461,7 @@ def delete_receipt(
response_types_map=_response_types_map,
).data
+
@validate_call
def delete_receipt_with_http_info(
self,
@@ -409,8 +471,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 +508,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 +516,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -470,6 +546,7 @@ def delete_receipt_with_http_info(
response_types_map=_response_types_map,
)
+
@validate_call
def delete_receipt_without_preload_content(
self,
@@ -479,8 +556,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 +593,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 +601,33 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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_receipt_serialize(
self,
company_id,
@@ -548,7 +640,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 +654,32 @@ 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
+
+ # set the HTTP header `Accept`
+ 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="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 +689,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 +747,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 +757,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +787,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 +840,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 +850,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +880,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 +933,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 +943,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +984,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 +998,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 +1041,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 +1055,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 +1090,36 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -962,6 +1127,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 +1136,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 +1171,36 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -1028,6 +1208,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 +1217,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 +1252,40 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1297,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 +1311,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 +1344,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 +1399,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 +1408,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1438,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 +1488,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 +1497,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -1296,20 +1527,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 +1577,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 +1586,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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_receipts_monthly_totals_serialize(
self,
company_id,
@@ -1381,7 +1626,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 +1640,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 +1681,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 +1748,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 +1761,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1791,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 +1853,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 +1866,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +1896,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 +1958,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 +1971,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +2015,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 +2029,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 +2086,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 +2141,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 +2150,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +2180,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 +2230,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 +2239,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +2269,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 +2319,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 +2328,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +2368,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 +2382,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 +2392,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 +2432,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..19d50e3f 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,22 @@
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_received_document_response import GetBinReceivedDocumentResponse
+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_pending_received_document_response import GetPendingReceivedDocumentResponse
+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_pending_received_documents_response import ListPendingReceivedDocumentsResponse
+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 +53,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 +100,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 +108,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -151,20 +138,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 +185,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 +193,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -222,20 +223,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 +270,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 +278,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +317,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 +331,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 +339,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 +379,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 +394,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 +431,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 +439,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +469,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 +479,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 +516,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 +524,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -492,6 +554,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 +564,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 +601,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 +609,33 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +648,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 +662,32 @@ 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
+
+ # set the HTTP header `Accept`
+ 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="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 +697,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 +712,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 +749,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 +757,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -677,6 +787,7 @@ def delete_received_document(
response_types_map=_response_types_map,
).data
+
@validate_call
def delete_received_document_with_http_info(
self,
@@ -686,8 +797,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 +834,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 +842,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +872,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 +882,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 +919,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 +927,33 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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_received_document_serialize(
self,
company_id,
@@ -825,7 +966,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 +980,32 @@ 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
+
+ # set the HTTP header `Accept`
+ 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="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 +1015,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 +1030,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 +1067,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 +1075,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -934,6 +1105,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 +1115,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 +1152,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 +1160,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1190,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 +1200,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 +1237,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 +1245,33 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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_received_document_attachment_serialize(
self,
company_id,
@@ -1082,7 +1284,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 +1298,32 @@ 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
+
+ # set the HTTP header `Accept`
+ 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="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 +1333,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,14 +1348,15 @@ 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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> GetBinIssuedDocumentResponse:
+ ) -> GetBinReceivedDocumentResponse:
"""Get Bin Received Documents List
Get bin issued documents detail
@@ -1166,7 +1385,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 +1393,29 @@ 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': "GetBinReceivedDocumentResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1423,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,14 +1433,15 @@ 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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[GetBinIssuedDocumentResponse]:
+ ) -> ApiResponse[GetBinReceivedDocumentResponse]:
"""Get Bin Received Documents List
Get bin issued documents detail
@@ -1234,7 +1470,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 +1478,29 @@ 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': "GetBinReceivedDocumentResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -1257,6 +1508,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 +1518,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 +1555,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 +1563,33 @@ 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': "GetBinReceivedDocumentResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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_received_document_serialize(
self,
company_id,
@@ -1333,7 +1602,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 +1616,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 +1651,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 +1706,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 +1715,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1745,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 +1795,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 +1804,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -1528,21 +1834,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 +1884,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 +1893,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1933,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 +1947,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 +1957,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 +1997,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 +2049,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 +2057,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -1742,20 +2087,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 +2134,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 +2142,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +2172,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 +2219,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 +2227,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +2266,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 +2280,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 +2288,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,35 +2328,35 @@ 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(
+ def get_pending_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> GetReceivedDocumentResponse:
- """Get Received Document
+ ) -> GetPendingReceivedDocumentResponse:
+ """Get Pending Received Document
- Gets the specified document.
+ Gets the specified pending received document.
:param company_id: The ID of the company. (required)
:type company_id: int
@@ -2006,9 +2386,9 @@ 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(
+ _param = self._get_pending_received_document_serialize(
company_id=company_id,
document_id=document_id,
fields=fields,
@@ -2016,16 +2396,29 @@ 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': "GetPendingReceivedDocumentResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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,32 +2426,30 @@ def get_received_document(
response_types_map=_response_types_map,
).data
+
@validate_call
- def get_received_document_with_http_info(
+ def get_pending_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[GetReceivedDocumentResponse]:
- """Get Received Document
+ ) -> ApiResponse[GetPendingReceivedDocumentResponse]:
+ """Get Pending Received Document
- Gets the specified document.
+ Gets the specified pending received document.
:param company_id: The ID of the company. (required)
:type company_id: int
@@ -2088,9 +2479,9 @@ 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(
+ _param = self._get_pending_received_document_serialize(
company_id=company_id,
document_id=document_id,
fields=fields,
@@ -2098,16 +2489,29 @@ 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': "GetPendingReceivedDocumentResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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,32 +2519,30 @@ def get_received_document_with_http_info(
response_types_map=_response_types_map,
)
+
@validate_call
- def get_received_document_without_preload_content(
+ def get_pending_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Get Received Document
+ """Get Pending Received Document
- Gets the specified document.
+ Gets the specified pending received document.
:param company_id: The ID of the company. (required)
:type company_id: int
@@ -2170,9 +2572,9 @@ 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(
+ _param = self._get_pending_received_document_serialize(
company_id=company_id,
document_id=document_id,
fields=fields,
@@ -2180,20 +2582,34 @@ 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': "GetPendingReceivedDocumentResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
+
+ def _get_pending_received_document_serialize(
self,
company_id,
document_id,
@@ -2207,7 +2623,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 +2637,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/pending/{document_id}',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -2257,36 +2680,44 @@ 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(
+ def get_received_document(
self,
company_id: Annotated[StrictInt, Field(description="The ID of the company.")],
- type: Annotated[
- StrictStr, Field(description="The type of the received document.")
- ],
+ 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,
_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> GetReceivedDocumentPreCreateInfoResponse:
- """Get Received Document Pre-Create Info
+ ) -> GetReceivedDocumentResponse:
+ """Get Received Document
- Retrieves the information useful while creating a new document.
+ Gets the specified document.
:param company_id: The ID of the company. (required)
:type company_id: int
- :param type: The type of the received document. (required)
- :type type: str
+ :param document_id: The ID of the document. (required)
+ :type document_id: int
+ :param fields: List of comma-separated fields.
+ :type fields: str
+ :param fieldset: Name of the fieldset.
+ :type fieldset: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2307,22 +2738,39 @@ 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(
+ _param = self._get_received_document_serialize(
company_id=company_id,
- type=type,
+ document_id=document_id,
+ fields=fields,
+ fieldset=fieldset,
_request_auth=_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': "GetReceivedDocumentResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -2330,33 +2778,39 @@ 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(
+ def get_received_document_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.")
- ],
+ 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,
_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[GetReceivedDocumentPreCreateInfoResponse]:
- """Get Received Document Pre-Create Info
+ ) -> ApiResponse[GetReceivedDocumentResponse]:
+ """Get Received Document
- Retrieves the information useful while creating a new document.
+ Gets the specified document.
:param company_id: The ID of the company. (required)
:type company_id: int
- :param type: The type of the received document. (required)
- :type type: str
+ :param document_id: The ID of the document. (required)
+ :type document_id: int
+ :param fields: List of comma-separated fields.
+ :type fields: str
+ :param fieldset: Name of the fieldset.
+ :type fieldset: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2377,22 +2831,39 @@ 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(
+ _param = self._get_received_document_serialize(
company_id=company_id,
- type=type,
+ document_id=document_id,
+ fields=fields,
+ fieldset=fieldset,
_request_auth=_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': "GetReceivedDocumentResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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,28 +2871,279 @@ 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(
+ def get_received_document_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.")
- ],
+ 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,
_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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Get Received Document Pre-Create Info
+ """Get Received Document
- Retrieves the information useful while creating a new document.
+ Gets the specified document.
+
+ :param company_id: The ID of the company. (required)
+ :type company_id: int
+ :param document_id: The ID of the document. (required)
+ :type document_id: int
+ :param fields: List of comma-separated fields.
+ :type fields: str
+ :param fieldset: Name of the fieldset.
+ :type fieldset: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_received_document_serialize(
+ company_id=company_id,
+ document_id=document_id,
+ fields=fields,
+ fieldset=fieldset,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetReceivedDocumentResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
+ }
+
+ response_data = self.api_client.call_api(
+ *_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,
+ document_id,
+ fields,
+ fieldset,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if company_id is not None:
+ _path_params['company_id'] = company_id
+ if document_id is not None:
+ _path_params['document_id'] = document_id
+ # process the query parameters
+ if fields is not None:
+
+ _query_params.append(('fields', fields))
+
+ if fieldset is not None:
+
+ _query_params.append(('fieldset', fieldset))
+
+ # process the header parameters
+ # 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'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'OAuth2AuthenticationCodeFlow'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/c/{company_id}/received_documents/{document_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @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.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetReceivedDocumentPreCreateInfoResponse:
+ """Get Received Document Pre-Create Info
+
+ Retrieves the information useful while creating a new document.
+
+ :param company_id: The ID of the company. (required)
+ :type company_id: int
+ :param type: The type of the received document. (required)
+ :type type: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_received_document_pre_create_info_serialize(
+ company_id=company_id,
+ type=type,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetReceivedDocumentPreCreateInfoResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
+ }
+
+ response_data = self.api_client.call_api(
+ *_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(
+ response_data=response_data,
+ 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.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetReceivedDocumentPreCreateInfoResponse]:
+ """Get Received Document Pre-Create Info
+
+ Retrieves the information useful while creating a new document.
:param company_id: The ID of the company. (required)
:type company_id: int
@@ -2447,29 +3169,437 @@ 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,
+ type=type,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetReceivedDocumentPreCreateInfoResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
+ }
+
+ response_data = self.api_client.call_api(
+ *_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(
+ response_data=response_data,
+ 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.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get Received Document Pre-Create Info
+
+ Retrieves the information useful while creating a new document.
+
+ :param company_id: The ID of the company. (required)
+ :type company_id: int
+ :param type: The type of the received document. (required)
+ :type type: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_received_document_pre_create_info_serialize(
+ company_id=company_id,
+ type=type,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetReceivedDocumentPreCreateInfoResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
+ }
+
+ response_data = self.api_client.call_api(
+ *_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,
+ type,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if company_id is not None:
+ _path_params['company_id'] = company_id
+ # process the query parameters
+ if type is not None:
+
+ _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'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'OAuth2AuthenticationCodeFlow'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/c/{company_id}/received_documents/info',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def list_bin_received_documents(
+ self,
+ company_id: Annotated[StrictInt, Field(description="The ID of the company.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ListBinReceivedDocuments:
+ """Get Bin Received Documents List
+
+ Get bin Received documents list
+
+ :param company_id: The ID of the company. (required)
+ :type company_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._list_bin_received_documents_serialize(
+ company_id=company_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ListBinReceivedDocuments",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
+ }
+
+ response_data = self.api_client.call_api(
+ *_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(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def list_bin_received_documents_with_http_info(
+ self,
+ company_id: Annotated[StrictInt, Field(description="The ID of the company.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ListBinReceivedDocuments]:
+ """Get Bin Received Documents List
+
+ Get bin Received documents list
+
+ :param company_id: The ID of the company. (required)
+ :type company_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._list_bin_received_documents_serialize(
+ company_id=company_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ListBinReceivedDocuments",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
+ }
+
+ response_data = self.api_client.call_api(
+ *_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(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def list_bin_received_documents_without_preload_content(
+ self,
+ company_id: Annotated[StrictInt, Field(description="The ID of the company.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get Bin Received Documents List
+
+ Get bin Received documents list
+
+ :param company_id: The ID of the company. (required)
+ :type company_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
- _param = self._get_received_document_pre_create_info_serialize(
+ _param = self._list_bin_received_documents_serialize(
company_id=company_id,
- type=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": "GetReceivedDocumentPreCreateInfoResponse",
+ '200': "ListBinReceivedDocuments",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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_received_document_pre_create_info_serialize(
+
+ def _list_bin_received_documents_serialize(
self,
company_id,
- type,
_request_auth,
_content_type,
_headers,
@@ -2478,7 +3608,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 +3622,30 @@ 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))
-
# 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}/bin/received_documents',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -2522,31 +3655,56 @@ 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(
+ def list_pending_received_documents(
self,
company_id: Annotated[StrictInt, Field(description="The ID of the company.")],
+ type: Annotated[StrictStr, Field(description="The type of the pending 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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ListBinReceivedDocuments:
- """Get Bin Received Documents List
+ ) -> ListPendingReceivedDocumentsResponse:
+ """List Pending Received Documents
- Get bin Received documents list
+ Lists the pending received documents.
:param company_id: The ID of the company. (required)
:type company_id: int
+ :param type: The type of the pending received document. (required)
+ :type type: str
+ :param fields: List of comma-separated fields.
+ :type fields: str
+ :param fieldset: Name of the fieldset.
+ :type fieldset: str
+ :param sort: List of comma-separated fields for result sorting (minus for desc sorting).
+ :type sort: str
+ :param page: The page to retrieve.
+ :type page: int
+ :param per_page: The size of the page.
+ :type per_page: int
+ :param q: Query for filtering the results.
+ :type q: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2567,21 +3725,43 @@ 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(
+ _param = self._list_pending_received_documents_serialize(
company_id=company_id,
+ type=type,
+ fields=fields,
+ fieldset=fieldset,
+ sort=sort,
+ page=page,
+ per_page=per_page,
+ q=q,
_request_auth=_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': "ListPendingReceivedDocumentsResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -2589,28 +3769,51 @@ def list_bin_received_documents(
response_types_map=_response_types_map,
).data
+
@validate_call
- def list_bin_received_documents_with_http_info(
+ def list_pending_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 pending 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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ListBinReceivedDocuments]:
- """Get Bin Received Documents List
+ ) -> ApiResponse[ListPendingReceivedDocumentsResponse]:
+ """List Pending Received Documents
- Get bin Received documents list
+ Lists the pending received documents.
:param company_id: The ID of the company. (required)
:type company_id: int
+ :param type: The type of the pending received document. (required)
+ :type type: str
+ :param fields: List of comma-separated fields.
+ :type fields: str
+ :param fieldset: Name of the fieldset.
+ :type fieldset: str
+ :param sort: List of comma-separated fields for result sorting (minus for desc sorting).
+ :type sort: str
+ :param page: The page to retrieve.
+ :type page: int
+ :param per_page: The size of the page.
+ :type per_page: int
+ :param q: Query for filtering the results.
+ :type q: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2631,21 +3834,43 @@ 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(
+ _param = self._list_pending_received_documents_serialize(
company_id=company_id,
+ type=type,
+ fields=fields,
+ fieldset=fieldset,
+ sort=sort,
+ page=page,
+ per_page=per_page,
+ q=q,
_request_auth=_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': "ListPendingReceivedDocumentsResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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,28 +3878,51 @@ def list_bin_received_documents_with_http_info(
response_types_map=_response_types_map,
)
+
@validate_call
- def list_bin_received_documents_without_preload_content(
+ def list_pending_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 pending 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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Get Bin Received Documents List
+ """List Pending Received Documents
- Get bin Received documents list
+ Lists the pending received documents.
:param company_id: The ID of the company. (required)
:type company_id: int
+ :param type: The type of the pending received document. (required)
+ :type type: str
+ :param fields: List of comma-separated fields.
+ :type fields: str
+ :param fieldset: Name of the fieldset.
+ :type fieldset: str
+ :param sort: List of comma-separated fields for result sorting (minus for desc sorting).
+ :type sort: str
+ :param page: The page to retrieve.
+ :type page: int
+ :param per_page: The size of the page.
+ :type per_page: int
+ :param q: Query for filtering the results.
+ :type q: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2695,27 +3943,57 @@ 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(
+ _param = self._list_pending_received_documents_serialize(
company_id=company_id,
+ type=type,
+ fields=fields,
+ fieldset=fieldset,
+ sort=sort,
+ page=page,
+ per_page=per_page,
+ q=q,
_request_auth=_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': "ListPendingReceivedDocumentsResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
+
+ def _list_pending_received_documents_serialize(
self,
company_id,
+ type,
+ fields,
+ fieldset,
+ sort,
+ page,
+ per_page,
+ q,
_request_auth,
_content_type,
_headers,
@@ -2724,7 +4002,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 +4016,58 @@ 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
+ if type is not None:
+
+ _query_params.append(('type', type))
+
+ if fields is not None:
+
+ _query_params.append(('fields', fields))
+
+ if fieldset is not None:
+
+ _query_params.append(('fieldset', fieldset))
+
+ if sort is not None:
+
+ _query_params.append(('sort', sort))
+
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ if per_page is not None:
+
+ _query_params.append(('per_page', per_page))
+
+ if q is not None:
+
+ _query_params.append(('q', q))
+
# process the header parameters
# 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}/received_documents/pending',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -2764,44 +4077,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 +4147,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 +4161,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +4191,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 +4256,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 +4270,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -2989,41 +4300,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 +4365,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 +4379,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +4424,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 +4438,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 +4499,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 +4554,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 +4563,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +4593,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 +4643,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 +4652,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +4682,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 +4732,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 +4741,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +4781,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 +4795,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 +4805,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 +4845,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 +4860,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 +4897,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 +4905,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -3550,6 +4935,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 +4945,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 +4982,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 +4990,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +5020,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 +5030,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 +5067,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 +5075,33 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 _recover_bin_received_document_serialize(
self,
company_id,
@@ -3694,7 +5114,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 +5128,32 @@ 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
+
+ # set the HTTP header `Accept`
+ 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="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 +5163,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 +5218,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 +5227,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +5257,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 +5307,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 +5316,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +5346,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 +5396,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 +5405,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +5445,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 +5459,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 +5509,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..aed02d3f 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,24 @@
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_templates_response import GetTemplatesResponse
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.list_templates_response import ListTemplatesResponse
+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 +55,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 +65,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 +102,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 +110,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +140,7 @@ def create_payment_account(
response_types_map=_response_types_map,
).data
+
@validate_call
def create_payment_account_with_http_info(
self,
@@ -161,8 +150,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 +187,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 +195,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +225,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 +235,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 +272,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 +280,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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_account_serialize(
self,
company_id,
@@ -296,7 +319,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 +333,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 +341,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 +381,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 +396,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 +433,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 +441,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -419,6 +471,7 @@ def create_payment_method(
response_types_map=_response_types_map,
).data
+
@validate_call
def create_payment_method_with_http_info(
self,
@@ -428,8 +481,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 +518,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 +526,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -487,6 +556,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 +566,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 +603,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 +611,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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_method_serialize(
self,
company_id,
@@ -563,7 +650,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 +664,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 +672,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 +712,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 +727,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 +742,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 +764,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 +772,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -686,6 +802,7 @@ def create_vat_type(
response_types_map=_response_types_map,
).data
+
@validate_call
def create_vat_type_with_http_info(
self,
@@ -695,8 +812,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 +827,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 +849,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 +857,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -754,6 +887,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 +897,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 +912,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 +934,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 +942,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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_vat_type_serialize(
self,
company_id,
@@ -830,7 +981,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 +995,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 +1003,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 +1043,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 +1095,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 +1103,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1133,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 +1180,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 +1188,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1218,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 +1265,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 +1273,33 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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_account_serialize(
self,
company_id,
@@ -1103,7 +1312,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 +1326,32 @@ 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
+
+ # set the HTTP header `Accept`
+ 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="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 +1361,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 +1413,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 +1421,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -1212,19 +1451,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 +1498,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 +1506,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -1282,19 +1536,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 +1583,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 +1591,33 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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_method_serialize(
self,
company_id,
@@ -1360,7 +1630,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 +1644,32 @@ 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
+
+ # set the HTTP header `Accept`
+ 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="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 +1679,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 +1731,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 +1739,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1769,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 +1816,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 +1824,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -1539,19 +1854,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 +1901,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 +1909,33 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1948,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 +1962,32 @@ 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
+
+ # set the HTTP header `Accept`
+ 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="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 +1997,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 +2055,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 +2065,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +2095,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 +2148,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 +2158,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -1820,25 +2188,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 +2241,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 +2251,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +2292,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 +2306,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 +2349,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 +2407,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 +2417,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +2447,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 +2500,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 +2510,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -2129,25 +2540,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 +2593,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 +2603,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +2644,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 +2658,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 +2701,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 +2715,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 +2750,36 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -2338,6 +2787,7 @@ def get_tax_profile(
response_types_map=_response_types_map,
).data
+
@validate_call
def get_tax_profile_with_http_info(
self,
@@ -2346,8 +2796,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 +2831,36 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -2402,6 +2868,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 +2877,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 +2912,40 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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_tax_profile_serialize(
self,
company_id,
@@ -2473,7 +2957,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 +2971,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,36 +3004,44 @@ 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(
+ def get_template(
self,
company_id: Annotated[StrictInt, Field(description="The ID of the company.")],
- vat_type_id: Annotated[
- StrictInt, Field(description="The Referred Vat Type Id.")
- ],
+ template_id: Annotated[StrictInt, Field(description="The Referred Template 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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> GetVatTypeResponse:
- """Get Vat Type
+ ) -> GetTemplatesResponse:
+ """Get Template
- Gets the specified vat type.
+ Gets a specified template.
:param company_id: The ID of the company. (required)
:type company_id: int
- :param vat_type_id: The Referred Vat Type Id. (required)
- :type vat_type_id: int
+ :param template_id: The Referred Template Id. (required)
+ :type template_id: int
+ :param fields: List of comma-separated fields.
+ :type fields: str
+ :param fieldset: Name of the fieldset.
+ :type fieldset: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2563,22 +3062,39 @@ 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(
+ _param = self._get_template_serialize(
company_id=company_id,
- vat_type_id=vat_type_id,
+ template_id=template_id,
+ fields=fields,
+ fieldset=fieldset,
_request_auth=_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': "GetTemplatesResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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,33 +3102,39 @@ def get_vat_type(
response_types_map=_response_types_map,
).data
+
@validate_call
- def get_vat_type_with_http_info(
+ def get_template_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.")
- ],
+ template_id: Annotated[StrictInt, Field(description="The Referred Template 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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[GetVatTypeResponse]:
- """Get Vat Type
+ ) -> ApiResponse[GetTemplatesResponse]:
+ """Get Template
- Gets the specified vat type.
+ Gets a specified template.
:param company_id: The ID of the company. (required)
:type company_id: int
- :param vat_type_id: The Referred Vat Type Id. (required)
- :type vat_type_id: int
+ :param template_id: The Referred Template Id. (required)
+ :type template_id: int
+ :param fields: List of comma-separated fields.
+ :type fields: str
+ :param fieldset: Name of the fieldset.
+ :type fieldset: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2633,22 +3155,39 @@ 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(
+ _param = self._get_template_serialize(
company_id=company_id,
- vat_type_id=vat_type_id,
+ template_id=template_id,
+ fields=fields,
+ fieldset=fieldset,
_request_auth=_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': "GetTemplatesResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -2656,33 +3195,39 @@ def get_vat_type_with_http_info(
response_types_map=_response_types_map,
)
+
@validate_call
- def get_vat_type_without_preload_content(
+ def get_template_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.")
- ],
+ template_id: Annotated[StrictInt, Field(description="The Referred Template 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,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Get Vat Type
+ """Get Template
- Gets the specified vat type.
+ Gets a specified template.
:param company_id: The ID of the company. (required)
:type company_id: int
- :param vat_type_id: The Referred Vat Type Id. (required)
- :type vat_type_id: int
+ :param template_id: The Referred Template Id. (required)
+ :type template_id: int
+ :param fields: List of comma-separated fields.
+ :type fields: str
+ :param fieldset: Name of the fieldset.
+ :type fieldset: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2703,30 +3248,707 @@ 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(
+ _param = self._get_template_serialize(
company_id=company_id,
- vat_type_id=vat_type_id,
+ template_id=template_id,
+ fields=fields,
+ fieldset=fieldset,
_request_auth=_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': "GetTemplatesResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
+
+ def _get_template_serialize(
self,
company_id,
- vat_type_id,
- _request_auth,
+ template_id,
+ fields,
+ fieldset,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if company_id is not None:
+ _path_params['company_id'] = company_id
+ if template_id is not None:
+ _path_params['template_id'] = template_id
+ # process the query parameters
+ if fields is not None:
+
+ _query_params.append(('fields', fields))
+
+ if fieldset is not None:
+
+ _query_params.append(('fieldset', fieldset))
+
+ # process the header parameters
+ # 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'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'OAuth2AuthenticationCodeFlow'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/c/{company_id}/settings/templates/{template_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @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.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetVatTypeResponse:
+ """Get Vat Type
+
+ Gets the specified vat type.
+
+ :param company_id: The ID of the company. (required)
+ :type company_id: int
+ :param vat_type_id: The Referred Vat Type Id. (required)
+ :type vat_type_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_vat_type_serialize(
+ company_id=company_id,
+ vat_type_id=vat_type_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetVatTypeResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
+ }
+
+ response_data = self.api_client.call_api(
+ *_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(
+ response_data=response_data,
+ 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.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetVatTypeResponse]:
+ """Get Vat Type
+
+ Gets the specified vat type.
+
+ :param company_id: The ID of the company. (required)
+ :type company_id: int
+ :param vat_type_id: The Referred Vat Type Id. (required)
+ :type vat_type_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_vat_type_serialize(
+ company_id=company_id,
+ vat_type_id=vat_type_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetVatTypeResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
+ }
+
+ response_data = self.api_client.call_api(
+ *_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(
+ response_data=response_data,
+ 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.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get Vat Type
+
+ Gets the specified vat type.
+
+ :param company_id: The ID of the company. (required)
+ :type company_id: int
+ :param vat_type_id: The Referred Vat Type Id. (required)
+ :type vat_type_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_vat_type_serialize(
+ company_id=company_id,
+ vat_type_id=vat_type_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetVatTypeResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
+ }
+
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_vat_type_serialize(
+ self,
+ company_id,
+ vat_type_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if company_id is not None:
+ _path_params['company_id'] = company_id
+ if vat_type_id is not None:
+ _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'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'OAuth2AuthenticationCodeFlow'
+ ]
+
+ return self.api_client.param_serialize(
+ 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,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def list_templates(
+ 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,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ListTemplatesResponse:
+ """List Templates
+
+ Gets all the standard and private templates.
+
+ :param company_id: The ID of the company. (required)
+ :type company_id: int
+ :param fields: List of comma-separated fields.
+ :type fields: str
+ :param fieldset: Name of the fieldset.
+ :type fieldset: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._list_templates_serialize(
+ company_id=company_id,
+ fields=fields,
+ fieldset=fieldset,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ListTemplatesResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
+ }
+
+ response_data = self.api_client.call_api(
+ *_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(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def list_templates_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,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ListTemplatesResponse]:
+ """List Templates
+
+ Gets all the standard and private templates.
+
+ :param company_id: The ID of the company. (required)
+ :type company_id: int
+ :param fields: List of comma-separated fields.
+ :type fields: str
+ :param fieldset: Name of the fieldset.
+ :type fieldset: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._list_templates_serialize(
+ company_id=company_id,
+ fields=fields,
+ fieldset=fieldset,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ListTemplatesResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
+ }
+
+ response_data = self.api_client.call_api(
+ *_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(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def list_templates_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,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """List Templates
+
+ Gets all the standard and private templates.
+
+ :param company_id: The ID of the company. (required)
+ :type company_id: int
+ :param fields: List of comma-separated fields.
+ :type fields: str
+ :param fieldset: Name of the fieldset.
+ :type fieldset: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._list_templates_serialize(
+ company_id=company_id,
+ fields=fields,
+ fieldset=fieldset,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ListTemplatesResponse",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
+ }
+
+ response_data = self.api_client.call_api(
+ *_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,
+ company_id,
+ fields,
+ fieldset,
+ _request_auth,
_content_type,
_headers,
_host_index,
@@ -2734,7 +3956,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 +3970,38 @@ def _get_vat_type_serialize(
# process the path parameters
if company_id is not None:
- _path_params["company_id"] = company_id
- if vat_type_id is not None:
- _path_params["vat_type_id"] = vat_type_id
+ _path_params['company_id'] = company_id
# process the query parameters
+ if fields is not None:
+
+ _query_params.append(('fields', fields))
+
+ if fieldset is not None:
+
+ _query_params.append(('fieldset', fieldset))
+
# 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/templates',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -2776,23 +4011,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 +4066,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 +4075,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -2853,20 +4105,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 +4155,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 +4164,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -2927,20 +4194,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 +4244,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 +4253,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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_payment_account_serialize(
self,
company_id,
@@ -3010,7 +4293,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 +4307,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 +4317,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 +4357,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 +4390,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 +4412,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 +4421,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +4451,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 +4479,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 +4501,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 +4510,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +4540,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 +4568,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 +4590,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 +4599,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +4639,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 +4653,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 +4663,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 +4703,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 +4758,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 +4767,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +4797,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 +4847,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 +4856,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +4886,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 +4936,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 +4945,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +4985,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 +4999,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 +5009,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 +5049,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..14f2aad9 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,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +128,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 +175,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 +183,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +213,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 +260,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 +268,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +307,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 +321,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 +329,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 +369,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 +384,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 +421,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 +429,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +459,7 @@ def delete_supplier(
response_types_map=_response_types_map,
).data
+
@validate_call
def delete_supplier_with_http_info(
self,
@@ -406,8 +469,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 +506,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 +514,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +544,7 @@ def delete_supplier_with_http_info(
response_types_map=_response_types_map,
)
+
@validate_call
def delete_supplier_without_preload_content(
self,
@@ -476,8 +554,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 +591,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 +599,33 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +638,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 +652,32 @@ 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
+
+ # set the HTTP header `Accept`
+ 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="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 +687,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 +745,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 +755,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +785,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 +838,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 +848,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -748,23 +878,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 +931,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 +941,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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_supplier_serialize(
self,
company_id,
@@ -840,7 +982,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 +996,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 +1039,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 +1106,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 +1119,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -998,38 +1149,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 +1211,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 +1224,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -1103,38 +1254,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 +1316,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 +1329,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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_suppliers_serialize(
self,
company_id,
@@ -1221,7 +1373,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 +1387,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 +1444,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 +1499,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 +1508,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +1538,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 +1588,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 +1597,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +1627,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 +1677,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 +1686,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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_supplier_serialize(
self,
company_id,
@@ -1534,7 +1726,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 +1740,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 +1750,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 +1790,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..1f9957db 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,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +129,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 +176,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 +184,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +214,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 +261,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 +269,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +308,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 +322,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 +330,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 +370,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 +385,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 +422,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 +430,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +460,7 @@ def delete_f24(
response_types_map=_response_types_map,
).data
+
@validate_call
def delete_f24_with_http_info(
self,
@@ -405,8 +470,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 +507,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 +515,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +545,7 @@ def delete_f24_with_http_info(
response_types_map=_response_types_map,
)
+
@validate_call
def delete_f24_without_preload_content(
self,
@@ -475,8 +555,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 +592,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 +600,33 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +639,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 +653,32 @@ 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
+
+ # set the HTTP header `Accept`
+ 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="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 +688,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 +703,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 +740,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 +748,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -653,6 +778,7 @@ def delete_f24_attachment(
response_types_map=_response_types_map,
).data
+
@validate_call
def delete_f24_attachment_with_http_info(
self,
@@ -662,8 +788,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 +825,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 +833,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -723,6 +863,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 +873,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 +910,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 +918,33 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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_f24_attachment_serialize(
self,
company_id,
@@ -801,7 +957,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 +971,32 @@ 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
+
+ # set the HTTP header `Accept`
+ 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="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 +1006,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 +1064,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 +1074,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +1104,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 +1157,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 +1167,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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,23 +1197,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 +1250,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 +1260,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +1301,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 +1315,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 +1358,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 +1425,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 +1438,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -1254,38 +1468,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 +1530,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 +1543,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1573,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 +1635,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 +1648,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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_f24_serialize(
self,
company_id,
@@ -1477,7 +1692,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 +1706,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 +1763,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 +1818,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 +1827,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1857,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 +1907,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 +1916,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -1696,20 +1946,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 +1996,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 +2005,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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_f24_serialize(
self,
company_id,
@@ -1781,7 +2045,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 +2059,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 +2069,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 +2109,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 +2164,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 +2173,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +2203,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 +2253,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 +2262,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +2292,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 +2342,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 +2351,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +2391,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 +2405,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 +2455,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..9a3e23d0 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,35 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +113,7 @@ def get_user_info(
response_types_map=_response_types_map,
).data
+
@validate_call
def get_user_info_with_http_info(
self,
@@ -107,8 +121,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 +154,35 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +190,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 +198,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 +231,39 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +274,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 +292,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 +319,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 +332,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 +365,35 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +401,7 @@ def list_user_companies(
response_types_map=_response_types_map,
).data
+
@validate_call
def list_user_companies_with_http_info(
self,
@@ -337,8 +409,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 +442,35 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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 +478,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 +486,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 +519,39 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +562,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 +580,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 +607,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..ab9e7b00 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,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +129,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 +154,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 +176,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 +184,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +214,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 +239,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 +261,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 +269,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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_webhooks_subscription_serialize(
self,
company_id,
@@ -277,7 +308,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 +322,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 +330,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 +370,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 +422,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 +430,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +460,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 +507,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 +515,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +545,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 +592,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 +600,33 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +639,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 +653,32 @@ 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
+
+ # set the HTTP header `Accept`
+ 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="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 +688,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 +740,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 +748,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +778,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 +825,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 +833,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +863,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 +910,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 +918,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +957,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 +971,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 +1006,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 +1020,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 +1055,36 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1092,7 @@ def list_webhooks_subscriptions(
response_types_map=_response_types_map,
).data
+
@validate_call
def list_webhooks_subscriptions_with_http_info(
self,
@@ -924,8 +1101,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 +1136,36 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1173,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 +1182,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 +1217,40 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1262,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 +1276,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 +1309,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 +1364,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 +1373,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1403,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 +1453,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 +1462,29 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -1246,22 +1492,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 +1542,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 +1551,33 @@ 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",
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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_webhooks_subscription_serialize(
self,
company_id,
@@ -1331,7 +1591,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 +1605,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 +1615,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 +1655,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 +1710,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 +1719,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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(
@@ -1464,22 +1749,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 +1799,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 +1808,29 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
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(
@@ -1540,22 +1838,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 +1888,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 +1897,33 @@ 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,
+ '400': "Dict[str, object]",
+ '401': "Dict[str, object]",
+ '403': "Dict[str, object]",
+ '404': "Dict[str, object]",
+ '405': "Dict[str, object]",
+ '409': "Dict[str, object]",
+ '422': "Dict[str, object]",
+ '429': "Dict[str, object]",
+ '500': "Dict[str, object]",
}
+
+ 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 +1937,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 +1951,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 +1961,37 @@ def _verify_webhooks_subscription_serialize(
if verify_webhooks_subscription_request is not None:
_body_params = verify_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'
+ ]
+ )
+
# 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 +2001,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..ff44f73b 100644
--- a/fattureincloud_python_sdk/api_client.py
+++ b/fattureincloud_python_sdk/api_client.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
+
import datetime
from dateutil.parser import parse
from enum import Enum
@@ -22,6 +21,7 @@
import os
import re
import tempfile
+import uuid
from urllib.parse import quote
from typing import Tuple, Optional, List, Dict, Union
@@ -38,12 +38,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 +61,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 +91,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 +103,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 +148,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 +182,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 +222,7 @@ def param_serialize(
resource_path,
method,
body,
- request_auth=_request_auth,
+ request_auth=_request_auth
)
# body
@@ -228,11 +239,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 +255,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 +272,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 +286,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 +298,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 +312,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.headers.get('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 +327,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.headers,
+ raw_data = response_data.data
)
def sanitize_for_serialization(self, obj):
@@ -352,10 +357,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 +380,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 +411,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 +438,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 +460,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 +486,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 +523,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 +554,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 +568,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 +587,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 +602,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 +615,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 +634,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 +673,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
@@ -664,11 +701,16 @@ def __deserialize_file(self, response):
os.close(fd)
os.remove(path)
- content_disposition = response.getheader("Content-Disposition")
+ content_disposition = response.headers.get("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)
+ filename = os.path.basename(m.group(1)) # Strip any directory traversal
+ if filename in ("", ".", ".."): # fall back to tmp filename
+ filename = os.path.basename(path)
path = os.path.join(os.path.dirname(path), filename)
with open(path, "wb") as f:
@@ -710,7 +752,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 +771,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 +788,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..d92a3fb8 100644
--- a/fattureincloud_python_sdk/configuration.py
+++ b/fattureincloud_python_sdk/configuration.py
@@ -1,15 +1,13 @@
-# coding: utf-8
-
"""
-Fatture in Cloud API v2 - API Reference
+ Fatture in Cloud API v2 - API Reference
-Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
-The version of the OpenAPI document: 2.1.5
-Contact: info@fattureincloud.it
-Generated by OpenAPI Generator (https://openapi-generator.tech)
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@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 +24,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]
@@ -168,9 +159,11 @@ class Configuration:
values before.
:param ssl_ca_cert: str - the path to a file of concatenated CA certificates
in PEM format.
- :param retries: Number of retries for API requests.
+ :param retries: int | urllib3.util.retry.Retry - Retry configuration.
:param ca_cert_data: verify the peer using concatenated CA certificate data
in PEM (str) or DER (bytes) format.
+ :param cert_file: the path to a client certificate file, for mTLS.
+ :param key_file: the path to a client key file, for mTLS.
:Example:
"""
@@ -179,24 +172,27 @@ 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,
- retries: Optional[int] = 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[Union[int, Any]] = None,
ca_cert_data: Optional[Union[str, bytes]] = None,
+ cert_file: Optional[str]=None,
+ key_file: Optional[str]=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 +238,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
@@ -273,10 +269,10 @@ def __init__(
"""Set this to verify the peer using PEM (str) or DER (bytes)
certificate data.
"""
- self.cert_file = None
+ self.cert_file = cert_file
"""client certificate file
"""
- self.key_file = None
+ self.key_file = key_file
"""client key file
"""
self.assert_hostname = None
@@ -301,11 +297,11 @@ 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
- """Adding retries to override urllib3 default value 3
+ """Retry configuration
"""
# Enable client side validation
self.client_side_validation = True
@@ -322,12 +318,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 +455,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 +464,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 +485,23 @@ 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"
- )
- def auth_settings(self) -> AuthSettings:
+ return urllib3.util.make_headers(
+ basic_auth=username + ':' + password
+ ).get('authorization')
+
+ 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 +510,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 +524,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 +552,23 @@ 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 variable['enum_values'] \
+ 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 +577,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..f36b72e0 100644
--- a/fattureincloud_python_sdk/exceptions.py
+++ b/fattureincloud_python_sdk/exceptions.py
@@ -1,30 +1,27 @@
-# coding: utf-8
-
"""
-Fatture in Cloud API v2 - API Reference
+ Fatture in Cloud API v2 - API Reference
-Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
-The version of the OpenAPI document: 2.1.5
-Contact: info@fattureincloud.it
-Generated by OpenAPI Generator (https://openapi-generator.tech)
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@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 +104,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 +125,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()
+ self.headers = http_resp.headers
@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 +155,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,12 +163,17 @@ 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.body:
+ error_message += "HTTP response body: {0}\n".format(self.body)
- if self.data or self.body:
- error_message += "HTTP response body: {0}\n".format(self.data or self.body)
+ if self.data:
+ error_message += "HTTP response data: {0}\n".format(self.data)
return error_message
@@ -200,13 +200,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..eefd75b9 100644
--- a/fattureincloud_python_sdk/models/__init__.py
+++ b/fattureincloud_python_sdk/models/__init__.py
@@ -2,25 +2,23 @@
# 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 import Attachment
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 +26,186 @@
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_pending_received_document_response import GetPendingReceivedDocumentResponse
+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_templates_response import GetTemplatesResponse
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_pending_received_documents_response import ListPendingReceivedDocumentsResponse
+from fattureincloud_python_sdk.models.list_pending_received_documents_response_page import ListPendingReceivedDocumentsResponsePage
+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
@@ -463,115 +215,65 @@
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.pending_received_document import PendingReceivedDocument
+from fattureincloud_python_sdk.models.pending_received_document_extracted_data import PendingReceivedDocumentExtractedData
+from fattureincloud_python_sdk.models.pending_received_document_extracted_data_mining import PendingReceivedDocumentExtractedDataMining
+from fattureincloud_python_sdk.models.pending_received_document_payments_list_item import PendingReceivedDocumentPaymentsListItem
+from fattureincloud_python_sdk.models.pending_received_document_payments_list_item_payment_terms import PendingReceivedDocumentPaymentsListItemPaymentTerms
+from fattureincloud_python_sdk.models.pending_received_document_type import PendingReceivedDocumentType
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.template_type import TemplateType
+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.py b/fattureincloud_python_sdk/models/attachment.py
new file mode 100644
index 00000000..e01185a6
--- /dev/null
+++ b/fattureincloud_python_sdk/models/attachment.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ Fatture in Cloud API v2 - API Reference
+
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@fattureincloud.it
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union
+from typing import Optional, Set
+from typing_extensions import Self
+
+class Attachment(BaseModel):
+ """
+ Attachment
+ """ # noqa: E501
+ filename: Optional[StrictStr] = Field(default=None, description="Attachment file name")
+ attachment: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]")
+ __properties: ClassVar[List[str]] = ["filename", "attachment"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Attachment from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Attachment from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "filename": obj.get("filename"),
+ "attachment": obj.get("attachment")
+ })
+ 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..dbe88dca 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,16 @@ 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'
+ TS_PAY = 'ts_pay'
@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..d8e9365c 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
@@ -18,21 +18,24 @@
import re # noqa: F401
import json
-from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
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")
+ privacy: Optional[StrictStr] = Field(default=None, description="Template privacy")
+ type: Optional[StrictStr] = None
name: Optional[StrictStr] = Field(default=None, description="Template name")
- type: Optional[StrictStr] = Field(default=None, description="Template type")
- __properties: ClassVar[List[str]] = ["id", "name", "type"]
+ can_disable_watermark: Optional[StrictBool] = Field(default=None, description="Can disable watermark")
+ author: Optional[StrictStr] = Field(default=None, description="Template author")
+ content: Optional[StrictStr] = Field(default=None, description="Template definition content")
+ supports_custom_taxable: Optional[StrictBool] = Field(default=None, description="Supports custom taxable")
+ __properties: ClassVar[List[str]] = ["id", "privacy", "type", "name", "can_disable_watermark", "author", "content", "supports_custom_taxable"]
model_config = ConfigDict(
populate_by_name=True,
@@ -40,6 +43,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 +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,
@@ -82,7 +87,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")}
- )
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "privacy": obj.get("privacy"),
+ "type": obj.get("type"),
+ "name": obj.get("name"),
+ "can_disable_watermark": obj.get("can_disable_watermark"),
+ "author": obj.get("author"),
+ "content": obj.get("content"),
+ "supports_custom_taxable": obj.get("supports_custom_taxable")
+ })
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_pending_received_document_response.py b/fattureincloud_python_sdk/models/get_pending_received_document_response.py
new file mode 100644
index 00000000..705ebe48
--- /dev/null
+++ b/fattureincloud_python_sdk/models/get_pending_received_document_response.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Fatture in Cloud API v2 - API Reference
+
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@fattureincloud.it
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from fattureincloud_python_sdk.models.pending_received_document import PendingReceivedDocument
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetPendingReceivedDocumentResponse(BaseModel):
+ """
+
+ """ # noqa: E501
+ data: Optional[PendingReceivedDocument] = None
+ __properties: ClassVar[List[str]] = ["data"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetPendingReceivedDocumentResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetPendingReceivedDocumentResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": PendingReceivedDocument.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..b4fb12b5 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
@@ -20,16 +20,15 @@
from pydantic import BaseModel, ConfigDict
from typing import Any, ClassVar, Dict, List, Optional
+from fattureincloud_python_sdk.models.price_list_item import PriceListItem
from typing import Optional, Set
from typing_extensions import Self
-
class GetPriceListItemsResponse(BaseModel):
"""
GetPriceListItemsResponse
- """ # noqa: E501
-
- data: Optional[Dict[str, Dict[str, Any]]] = None
+ """ # noqa: E501
+ data: Optional[Dict[str, PriceListItem]] = None
__properties: ClassVar[List[str]] = ["data"]
model_config = ConfigDict(
@@ -38,6 +37,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 +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,
@@ -75,7 +76,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 +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(
- {
- "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_templates_response.py b/fattureincloud_python_sdk/models/get_templates_response.py
new file mode 100644
index 00000000..05bef2b1
--- /dev/null
+++ b/fattureincloud_python_sdk/models/get_templates_response.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Fatture in Cloud API v2 - API Reference
+
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@fattureincloud.it
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from fattureincloud_python_sdk.models.document_template import DocumentTemplate
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetTemplatesResponse(BaseModel):
+ """
+ GetTemplatesResponse
+ """ # noqa: E501
+ data: Optional[DocumentTemplate] = None
+ __properties: ClassVar[List[str]] = ["data"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetTemplatesResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of data
+ if self.data:
+ _dict['data'] = self.data.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetTemplatesResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": DocumentTemplate.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..5e1aabfb 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,29 @@
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")
+ debt_vat_detect: Optional[StrictBool] = Field(default=None, description="Issued document debt VAT detect")
+ revenue_detect: Optional[StrictBool] = Field(default=None, description="Issued document revenue detect")
+ __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", "debt_vat_detect", "revenue_detect"]
model_config = ConfigDict(
populate_by_name=True,
@@ -91,6 +49,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 +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,
@@ -133,19 +93,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(
- {
- "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"),
+ "debt_vat_detect": obj.get("debt_vat_detect"),
+ "revenue_detect": obj.get("revenue_detect")
+ })
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..bb92e78f 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
@@ -20,88 +20,32 @@
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt
from typing import Any, ClassVar, Dict, List, Optional, Union
+from fattureincloud_python_sdk.models.vat_item import VatItem
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"
- )
- 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",
- ]
+ """ # 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, VatItem]] = 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"]
model_config = ConfigDict(
populate_by_name=True,
@@ -109,6 +53,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 +78,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 +92,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 +104,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_pending_received_documents_response.py b/fattureincloud_python_sdk/models/list_pending_received_documents_response.py
new file mode 100644
index 00000000..3b86e2e9
--- /dev/null
+++ b/fattureincloud_python_sdk/models/list_pending_received_documents_response.py
@@ -0,0 +1,118 @@
+# coding: utf-8
+
+"""
+ Fatture in Cloud API v2 - API Reference
+
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@fattureincloud.it
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from fattureincloud_python_sdk.models.pending_received_document import PendingReceivedDocument
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ListPendingReceivedDocumentsResponse(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")
+ 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")
+ data: Optional[List[PendingReceivedDocument]] = 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"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ListPendingReceivedDocumentsResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in data (list)
+ _items = []
+ if self.data:
+ for _item_data in self.data:
+ if _item_data:
+ _items.append(_item_data.to_dict())
+ _dict['data'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListPendingReceivedDocumentsResponse from a dict"""
+ if obj is None:
+ return None
+
+ 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": [PendingReceivedDocument.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_pending_received_documents_response_page.py b/fattureincloud_python_sdk/models/list_pending_received_documents_response_page.py
new file mode 100644
index 00000000..96a8dae4
--- /dev/null
+++ b/fattureincloud_python_sdk/models/list_pending_received_documents_response_page.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Fatture in Cloud API v2 - API Reference
+
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@fattureincloud.it
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from fattureincloud_python_sdk.models.pending_received_document import PendingReceivedDocument
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ListPendingReceivedDocumentsResponsePage(BaseModel):
+ """
+ ListPendingReceivedDocumentsResponsePage
+ """ # noqa: E501
+ data: Optional[List[PendingReceivedDocument]] = None
+ __properties: ClassVar[List[str]] = ["data"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ListPendingReceivedDocumentsResponsePage from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in data (list)
+ _items = []
+ if self.data:
+ for _item_data in self.data:
+ if _item_data:
+ _items.append(_item_data.to_dict())
+ _dict['data'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ListPendingReceivedDocumentsResponsePage from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "data": [PendingReceivedDocument.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/pending_received_document.py b/fattureincloud_python_sdk/models/pending_received_document.py
new file mode 100644
index 00000000..6b018f1b
--- /dev/null
+++ b/fattureincloud_python_sdk/models/pending_received_document.py
@@ -0,0 +1,155 @@
+# coding: utf-8
+
+"""
+ Fatture in Cloud API v2 - API Reference
+
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@fattureincloud.it
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from 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.attachment import Attachment
+from fattureincloud_python_sdk.models.currency import Currency
+from fattureincloud_python_sdk.models.pending_received_document_extracted_data import PendingReceivedDocumentExtractedData
+from fattureincloud_python_sdk.models.pending_received_document_payments_list_item import PendingReceivedDocumentPaymentsListItem
+from fattureincloud_python_sdk.models.pending_received_document_type import PendingReceivedDocumentType
+from fattureincloud_python_sdk.models.received_document_type import ReceivedDocumentType
+from typing import Optional, Set
+from typing_extensions import Self
+
+class PendingReceivedDocument(BaseModel):
+ """
+ PendingReceivedDocument
+ """ # noqa: E501
+ id: Optional[StrictInt] = Field(default=None, description="Pending received document id")
+ var_date: Optional[date] = Field(default=None, description="Pending received document date", alias="date")
+ subject: Optional[StrictStr] = Field(default=None, description="Pending received document subject")
+ filename: Optional[StrictStr] = Field(default=None, description="Pending received document filename")
+ type: Optional[PendingReceivedDocumentType] = PendingReceivedDocumentType.AGYO
+ attachment_url: Optional[StrictStr] = Field(default=None, description="[Temporary] [Read Only] Pending received document url of the attached file")
+ amount_gross: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="[Read Only] Pending received document total gross amount")
+ currency: Optional[Currency] = None
+ document_type: Optional[ReceivedDocumentType] = ReceivedDocumentType.EXPENSE
+ supplier_name: Optional[StrictStr] = Field(default=None, description="Pending received document supplier name")
+ cost_center: Optional[StrictStr] = Field(default=None, description="Pending received document cost center")
+ category: Optional[StrictStr] = Field(default=None, description="Pending received document category")
+ other_attachments: Optional[List[Attachment]] = Field(default=None, description="Pending received document other attachments")
+ emssion_date: Optional[date] = Field(default=None, description="Pending received document emission date")
+ payments_list: Optional[List[PendingReceivedDocumentPaymentsListItem]] = None
+ amount_net: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Pending received document total net amount")
+ amount_vat: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Pending received document total vat amount")
+ import_error: Optional[StrictStr] = Field(default=None, description="Pending received document import error")
+ extracted_data: Optional[PendingReceivedDocumentExtractedData] = None
+ __properties: ClassVar[List[str]] = ["id", "date", "subject", "filename", "type", "attachment_url", "amount_gross", "currency", "document_type", "supplier_name", "cost_center", "category", "other_attachments", "emssion_date", "payments_list", "amount_net", "amount_vat", "import_error", "extracted_data"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of PendingReceivedDocument from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ * OpenAPI `readOnly` fields are excluded.
+ * OpenAPI `readOnly` fields are excluded.
+ """
+ excluded_fields: Set[str] = set([
+ "attachment_url",
+ "amount_gross",
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of currency
+ if self.currency:
+ _dict['currency'] = self.currency.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in other_attachments (list)
+ _items = []
+ if self.other_attachments:
+ for _item_other_attachments in self.other_attachments:
+ if _item_other_attachments:
+ _items.append(_item_other_attachments.to_dict())
+ _dict['other_attachments'] = _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
+ # override the default output from pydantic by calling `to_dict()` of extracted_data
+ if self.extracted_data:
+ _dict['extracted_data'] = self.extracted_data.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of PendingReceivedDocument from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "date": obj.get("date"),
+ "subject": obj.get("subject"),
+ "filename": obj.get("filename"),
+ "type": obj.get("type") if obj.get("type") is not None else PendingReceivedDocumentType.AGYO,
+ "attachment_url": obj.get("attachment_url"),
+ "amount_gross": obj.get("amount_gross"),
+ "currency": Currency.from_dict(obj["currency"]) if obj.get("currency") is not None else None,
+ "document_type": obj.get("document_type") if obj.get("document_type") is not None else ReceivedDocumentType.EXPENSE,
+ "supplier_name": obj.get("supplier_name"),
+ "cost_center": obj.get("cost_center"),
+ "category": obj.get("category"),
+ "other_attachments": [Attachment.from_dict(_item) for _item in obj["other_attachments"]] if obj.get("other_attachments") is not None else None,
+ "emssion_date": obj.get("emssion_date"),
+ "payments_list": [PendingReceivedDocumentPaymentsListItem.from_dict(_item) for _item in obj["payments_list"]] if obj.get("payments_list") is not None else None,
+ "amount_net": obj.get("amount_net"),
+ "amount_vat": obj.get("amount_vat"),
+ "import_error": obj.get("import_error"),
+ "extracted_data": PendingReceivedDocumentExtractedData.from_dict(obj["extracted_data"]) if obj.get("extracted_data") is not None else None
+ })
+ return _obj
+
+
diff --git a/fattureincloud_python_sdk/models/pending_received_document_extracted_data.py b/fattureincloud_python_sdk/models/pending_received_document_extracted_data.py
new file mode 100644
index 00000000..fda63ccc
--- /dev/null
+++ b/fattureincloud_python_sdk/models/pending_received_document_extracted_data.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ Fatture in Cloud API v2 - API Reference
+
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@fattureincloud.it
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict
+from typing import Any, ClassVar, Dict, List, Optional
+from fattureincloud_python_sdk.models.pending_received_document_extracted_data_mining import PendingReceivedDocumentExtractedDataMining
+from typing import Optional, Set
+from typing_extensions import Self
+
+class PendingReceivedDocumentExtractedData(BaseModel):
+ """
+ PendingReceivedDocumentExtractedData
+ """ # noqa: E501
+ mining: Optional[PendingReceivedDocumentExtractedDataMining] = None
+ __properties: ClassVar[List[str]] = ["mining"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of PendingReceivedDocumentExtractedData from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of mining
+ if self.mining:
+ _dict['mining'] = self.mining.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of PendingReceivedDocumentExtractedData from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "mining": PendingReceivedDocumentExtractedDataMining.from_dict(obj["mining"]) if obj.get("mining") is not None else None
+ })
+ return _obj
+
+
diff --git a/fattureincloud_python_sdk/models/pending_received_document_extracted_data_mining.py b/fattureincloud_python_sdk/models/pending_received_document_extracted_data_mining.py
new file mode 100644
index 00000000..7169e091
--- /dev/null
+++ b/fattureincloud_python_sdk/models/pending_received_document_extracted_data_mining.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ Fatture in Cloud API v2 - API Reference
+
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@fattureincloud.it
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictBool
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class PendingReceivedDocumentExtractedDataMining(BaseModel):
+ """
+ PendingReceivedDocumentExtractedDataMining
+ """ # noqa: E501
+ save_entity: Optional[StrictBool] = None
+ __properties: ClassVar[List[str]] = ["save_entity"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of PendingReceivedDocumentExtractedDataMining from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of PendingReceivedDocumentExtractedDataMining from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "save_entity": obj.get("save_entity")
+ })
+ return _obj
+
+
diff --git a/fattureincloud_python_sdk/models/pending_received_document_payments_list_item.py b/fattureincloud_python_sdk/models/pending_received_document_payments_list_item.py
new file mode 100644
index 00000000..82411f0a
--- /dev/null
+++ b/fattureincloud_python_sdk/models/pending_received_document_payments_list_item.py
@@ -0,0 +1,109 @@
+# coding: utf-8
+
+"""
+ Fatture in Cloud API v2 - API Reference
+
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@fattureincloud.it
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from datetime import date
+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.pending_received_document_payments_list_item_payment_terms import PendingReceivedDocumentPaymentsListItemPaymentTerms
+from typing import Optional, Set
+from typing_extensions import Self
+
+class PendingReceivedDocumentPaymentsListItem(BaseModel):
+ """
+ PendingReceivedDocumentPaymentsListItem
+ """ # noqa: E501
+ amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Pending received document payment total amount")
+ due_date: Optional[date] = Field(default=None, description="Due date")
+ paid_date: Optional[date] = Field(default=None, description="Pending received document payment paid date")
+ payment_terms: Optional[PendingReceivedDocumentPaymentsListItemPaymentTerms] = None
+ status: Optional[StrictStr] = Field(default=None, description="Pending received document payment status")
+ paid_with_ts_pay: Optional[StrictBool] = Field(default=None, description="True if paid with TS Pay")
+ payment_account: Optional[PaymentAccount] = None
+ __properties: ClassVar[List[str]] = ["amount", "due_date", "paid_date", "payment_terms", "status", "paid_with_ts_pay", "payment_account"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of PendingReceivedDocumentPaymentsListItem from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of payment_terms
+ if self.payment_terms:
+ _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()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of PendingReceivedDocumentPaymentsListItem from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "amount": obj.get("amount"),
+ "due_date": obj.get("due_date"),
+ "paid_date": obj.get("paid_date"),
+ "payment_terms": PendingReceivedDocumentPaymentsListItemPaymentTerms.from_dict(obj["payment_terms"]) if obj.get("payment_terms") is not None else None,
+ "status": obj.get("status"),
+ "paid_with_ts_pay": obj.get("paid_with_ts_pay"),
+ "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/pending_received_document_payments_list_item_payment_terms.py b/fattureincloud_python_sdk/models/pending_received_document_payments_list_item_payment_terms.py
new file mode 100644
index 00000000..97fa775a
--- /dev/null
+++ b/fattureincloud_python_sdk/models/pending_received_document_payments_list_item_payment_terms.py
@@ -0,0 +1,91 @@
+# coding: utf-8
+
+"""
+ Fatture in Cloud API v2 - API Reference
+
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@fattureincloud.it
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+from fattureincloud_python_sdk.models.payment_terms_type import PaymentTermsType
+from typing import Optional, Set
+from typing_extensions import Self
+
+class PendingReceivedDocumentPaymentsListItemPaymentTerms(BaseModel):
+ """
+ PendingReceivedDocumentPaymentsListItemPaymentTerms
+ """ # noqa: E501
+ days: Optional[StrictInt] = Field(default=None, description="Pending received document payment number of days by which the payment must be made")
+ type: Optional[PaymentTermsType] = PaymentTermsType.STANDARD
+ __properties: ClassVar[List[str]] = ["days", "type"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of PendingReceivedDocumentPaymentsListItemPaymentTerms from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of PendingReceivedDocumentPaymentsListItemPaymentTerms from a dict"""
+ if obj is None:
+ return None
+
+ 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
+ })
+ return _obj
+
+
diff --git a/fattureincloud_python_sdk/models/pending_received_document_type.py b/fattureincloud_python_sdk/models/pending_received_document_type.py
new file mode 100644
index 00000000..aa924226
--- /dev/null
+++ b/fattureincloud_python_sdk/models/pending_received_document_type.py
@@ -0,0 +1,39 @@
+# coding: utf-8
+
+"""
+ Fatture in Cloud API v2 - API Reference
+
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@fattureincloud.it
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import json
+from enum import Enum
+from typing_extensions import Self
+
+
+class PendingReceivedDocumentType(str, Enum):
+ """
+ Pending received document type
+ """
+
+ """
+ allowed enum values
+ """
+ AGYO = 'agyo'
+ MAIL = 'mail'
+ BROWSER = 'browser'
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Create an instance of PendingReceivedDocumentType 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..84d09457 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,53 @@
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")
+ ei_reception_date: Optional[StrictStr] = Field(default=None, description="[Read Only] Received document e-invoice reception date, needs fic_view fieldset")
+ is_from_pending_expenses: Optional[StrictBool] = Field(default=None, description="[Read Only] True if received document is generated from pending expenses, needs fic_view fieldset")
+ __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", "ei_reception_date", "is_from_pending_expenses"]
model_config = ConfigDict(
populate_by_name=True,
@@ -171,6 +73,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))
@@ -198,15 +101,17 @@ def to_dict(self) -> Dict[str, Any]:
* OpenAPI `readOnly` fields are excluded.
* OpenAPI `readOnly` fields are excluded.
* OpenAPI `readOnly` fields are excluded.
+ * 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",
+ "ei_reception_date",
+ "is_from_pending_expenses",
+ ])
_dict = self.model_dump(
by_alias=True,
@@ -215,24 +120,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 +149,40 @@ 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"),
+ "ei_reception_date": obj.get("ei_reception_date"),
+ "is_from_pending_expenses": obj.get("is_from_pending_expenses")
+ })
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..42712c48 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,22 @@
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")
+ deductibility_vat_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Received document item deductibility vat percentage")
+ __properties: ClassVar[List[str]] = ["id", "product_id", "code", "name", "measure", "net_price", "category", "qty", "vat", "stock", "deductibility_vat_percentage"]
model_config = ConfigDict(
populate_by_name=True,
@@ -78,6 +47,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 +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,
@@ -111,7 +82,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 +94,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"),
- "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"),
+ "deductibility_vat_percentage": obj.get("deductibility_vat_percentage")
+ })
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/template_type.py b/fattureincloud_python_sdk/models/template_type.py
new file mode 100644
index 00000000..7ca26cf2
--- /dev/null
+++ b/fattureincloud_python_sdk/models/template_type.py
@@ -0,0 +1,39 @@
+# coding: utf-8
+
+"""
+ Fatture in Cloud API v2 - API Reference
+
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@fattureincloud.it
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import json
+from enum import Enum
+from typing_extensions import Self
+
+
+class TemplateType(str, Enum):
+ """
+ Template type
+ """
+
+ """
+ allowed enum values
+ """
+ STANDARD = 'standard'
+ DELIVERY_NOTE = 'delivery_note'
+ ACCOMPANYING_INVOICE = 'accompanying_invoice'
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Create an instance of TemplateType from a JSON string"""
+ return cls(json.loads(json_str))
+
+
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..677e1bae 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
@@ -49,12 +49,17 @@ def read(self):
self.data = self.response.data
return self.data
+ @property
+ def headers(self):
+ """Returns a dictionary of response headers."""
+ return self.response.headers
+
def getheaders(self):
- """Returns a dictionary of the response headers."""
+ """Returns a dictionary of the response headers; use ``headers`` instead."""
return self.response.headers
def getheader(self, name, default=None):
- """Returns a given response header."""
+ """Returns a given response header; use ``headers.get()`` instead."""
return self.response.headers.get(name, default)
@@ -80,19 +85,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 +108,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 +125,7 @@ def request(
headers=None,
body=None,
post_params=None,
- _request_timeout=None,
+ _request_timeout=None
):
"""Perform requests.
@@ -135,7 +142,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 +164,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 +192,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 +202,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 +218,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 +230,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 +240,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 +255,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"]},
)
diff --git a/test/test_attachment.py b/test/test_attachment.py
new file mode 100644
index 00000000..8e6e8d02
--- /dev/null
+++ b/test/test_attachment.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Fatture in Cloud API v2 - API Reference
+
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@fattureincloud.it
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from fattureincloud_python_sdk.models.attachment import Attachment
+
+class TestAttachment(unittest.TestCase):
+ """Attachment unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> Attachment:
+ """Test Attachment
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `Attachment`
+ """
+ model = Attachment()
+ if include_optional:
+ return Attachment(
+ filename = 'attachment.pdf',
+ attachment = bytes(b'blah')
+ )
+ else:
+ return Attachment(
+ )
+ """
+
+ def testAttachment(self):
+ """Test Attachment"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_pending_received_document_response.py b/test/test_get_pending_received_document_response.py
new file mode 100644
index 00000000..5837b7a2
--- /dev/null
+++ b/test/test_get_pending_received_document_response.py
@@ -0,0 +1,97 @@
+# coding: utf-8
+
+"""
+ Fatture in Cloud API v2 - API Reference
+
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@fattureincloud.it
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from fattureincloud_python_sdk.models.get_pending_received_document_response import GetPendingReceivedDocumentResponse
+
+class TestGetPendingReceivedDocumentResponse(unittest.TestCase):
+ """GetPendingReceivedDocumentResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetPendingReceivedDocumentResponse:
+ """Test GetPendingReceivedDocumentResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetPendingReceivedDocumentResponse`
+ """
+ model = GetPendingReceivedDocumentResponse()
+ if include_optional:
+ return GetPendingReceivedDocumentResponse(
+ data = fattureincloud_python_sdk.models.pending_received_document.PendingReceivedDocument(
+ id = 56,
+ date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
+ subject = '',
+ filename = '',
+ type = 'agyo',
+ attachment_url = '',
+ amount_gross = 1.337,
+ currency = fattureincloud_python_sdk.models.currency.Currency(
+ id = 'EUR',
+ symbol = '€',
+ exchange_rate = '1',
+ html_symbol = 'EUR', ),
+ document_type = 'expense',
+ supplier_name = '',
+ cost_center = '',
+ category = '',
+ other_attachments = [
+ fattureincloud_python_sdk.models.attachment.Attachment(
+ filename = 'attachment.pdf',
+ attachment = bytes(b'blah'), )
+ ],
+ emssion_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
+ payments_list = [
+ fattureincloud_python_sdk.models.pending_received_document_payments_list_item.PendingReceivedDocumentPaymentsListItem(
+ amount = 1.337,
+ due_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
+ paid_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
+ payment_terms = fattureincloud_python_sdk.models.pending_received_document_payments_list_item_payment_terms.PendingReceivedDocumentPaymentsListItem_payment_terms(
+ days = 56, ),
+ status = '',
+ paid_with_ts_pay = True,
+ payment_account = fattureincloud_python_sdk.models.payment_account.PaymentAccount(
+ id = 56,
+ name = 'Conto Banca Intesa',
+ iban = '',
+ sia = '',
+ cuc = '',
+ virtual = True, ), )
+ ],
+ amount_net = 1.337,
+ amount_vat = 1.337,
+ import_error = '',
+ extracted_data = fattureincloud_python_sdk.models.pending_received_document_extracted_data.PendingReceivedDocument_extracted_data(
+ mining = fattureincloud_python_sdk.models.pending_received_document_extracted_data_mining.PendingReceivedDocument_extracted_data_mining(
+ save_entity = True, ), ), )
+ )
+ else:
+ return GetPendingReceivedDocumentResponse(
+ )
+ """
+
+ def testGetPendingReceivedDocumentResponse(self):
+ """Test GetPendingReceivedDocumentResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_templates_response.py b/test/test_get_templates_response.py
new file mode 100644
index 00000000..25bc7f82
--- /dev/null
+++ b/test/test_get_templates_response.py
@@ -0,0 +1,60 @@
+# coding: utf-8
+
+"""
+ Fatture in Cloud API v2 - API Reference
+
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@fattureincloud.it
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from fattureincloud_python_sdk.models.get_templates_response import GetTemplatesResponse
+
+class TestGetTemplatesResponse(unittest.TestCase):
+ """GetTemplatesResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetTemplatesResponse:
+ """Test GetTemplatesResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetTemplatesResponse`
+ """
+ model = GetTemplatesResponse()
+ if include_optional:
+ return GetTemplatesResponse(
+ data = fattureincloud_python_sdk.models.document_template.DocumentTemplate(
+ id = 56,
+ privacy = '',
+ type = 'standard',
+ name = '',
+ can_disable_watermark = True,
+ author = '',
+ content = '',
+ supports_custom_taxable = True, )
+ )
+ else:
+ return GetTemplatesResponse(
+ )
+ """
+
+ def testGetTemplatesResponse(self):
+ """Test GetTemplatesResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_list_pending_received_documents_response.py b/test/test_list_pending_received_documents_response.py
new file mode 100644
index 00000000..02dc2549
--- /dev/null
+++ b/test/test_list_pending_received_documents_response.py
@@ -0,0 +1,110 @@
+# coding: utf-8
+
+"""
+ Fatture in Cloud API v2 - API Reference
+
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@fattureincloud.it
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from fattureincloud_python_sdk.models.list_pending_received_documents_response import ListPendingReceivedDocumentsResponse
+
+class TestListPendingReceivedDocumentsResponse(unittest.TestCase):
+ """ListPendingReceivedDocumentsResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ListPendingReceivedDocumentsResponse:
+ """Test ListPendingReceivedDocumentsResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ListPendingReceivedDocumentsResponse`
+ """
+ model = ListPendingReceivedDocumentsResponse()
+ if include_optional:
+ return ListPendingReceivedDocumentsResponse(
+ current_page = 56,
+ first_page_url = '',
+ var_from = 56,
+ last_page = 56,
+ last_page_url = '',
+ next_page_url = '',
+ path = '',
+ per_page = 56,
+ prev_page_url = '',
+ to = 56,
+ total = 56,
+ data = [
+ fattureincloud_python_sdk.models.pending_received_document.PendingReceivedDocument(
+ id = 56,
+ date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
+ subject = '',
+ filename = '',
+ type = 'agyo',
+ attachment_url = '',
+ amount_gross = 1.337,
+ currency = fattureincloud_python_sdk.models.currency.Currency(
+ id = 'EUR',
+ symbol = '€',
+ exchange_rate = '1',
+ html_symbol = 'EUR', ),
+ document_type = 'expense',
+ supplier_name = '',
+ cost_center = '',
+ category = '',
+ other_attachments = [
+ fattureincloud_python_sdk.models.attachment.Attachment(
+ filename = 'attachment.pdf',
+ attachment = bytes(b'blah'), )
+ ],
+ emssion_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
+ payments_list = [
+ fattureincloud_python_sdk.models.pending_received_document_payments_list_item.PendingReceivedDocumentPaymentsListItem(
+ amount = 1.337,
+ due_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
+ paid_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
+ payment_terms = fattureincloud_python_sdk.models.pending_received_document_payments_list_item_payment_terms.PendingReceivedDocumentPaymentsListItem_payment_terms(
+ days = 56, ),
+ status = '',
+ paid_with_ts_pay = True,
+ payment_account = fattureincloud_python_sdk.models.payment_account.PaymentAccount(
+ id = 56,
+ name = 'Conto Banca Intesa',
+ iban = '',
+ sia = '',
+ cuc = '',
+ virtual = True, ), )
+ ],
+ amount_net = 1.337,
+ amount_vat = 1.337,
+ import_error = '',
+ extracted_data = fattureincloud_python_sdk.models.pending_received_document_extracted_data.PendingReceivedDocument_extracted_data(
+ mining = fattureincloud_python_sdk.models.pending_received_document_extracted_data_mining.PendingReceivedDocument_extracted_data_mining(
+ save_entity = True, ), ), )
+ ]
+ )
+ else:
+ return ListPendingReceivedDocumentsResponse(
+ )
+ """
+
+ def testListPendingReceivedDocumentsResponse(self):
+ """Test ListPendingReceivedDocumentsResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_list_pending_received_documents_response_page.py b/test/test_list_pending_received_documents_response_page.py
new file mode 100644
index 00000000..20dffbbd
--- /dev/null
+++ b/test/test_list_pending_received_documents_response_page.py
@@ -0,0 +1,99 @@
+# coding: utf-8
+
+"""
+ Fatture in Cloud API v2 - API Reference
+
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@fattureincloud.it
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from fattureincloud_python_sdk.models.list_pending_received_documents_response_page import ListPendingReceivedDocumentsResponsePage
+
+class TestListPendingReceivedDocumentsResponsePage(unittest.TestCase):
+ """ListPendingReceivedDocumentsResponsePage unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ListPendingReceivedDocumentsResponsePage:
+ """Test ListPendingReceivedDocumentsResponsePage
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ListPendingReceivedDocumentsResponsePage`
+ """
+ model = ListPendingReceivedDocumentsResponsePage()
+ if include_optional:
+ return ListPendingReceivedDocumentsResponsePage(
+ data = [
+ fattureincloud_python_sdk.models.pending_received_document.PendingReceivedDocument(
+ id = 56,
+ date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
+ subject = '',
+ filename = '',
+ type = 'agyo',
+ attachment_url = '',
+ amount_gross = 1.337,
+ currency = fattureincloud_python_sdk.models.currency.Currency(
+ id = 'EUR',
+ symbol = '€',
+ exchange_rate = '1',
+ html_symbol = 'EUR', ),
+ document_type = 'expense',
+ supplier_name = '',
+ cost_center = '',
+ category = '',
+ other_attachments = [
+ fattureincloud_python_sdk.models.attachment.Attachment(
+ filename = 'attachment.pdf',
+ attachment = bytes(b'blah'), )
+ ],
+ emssion_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
+ payments_list = [
+ fattureincloud_python_sdk.models.pending_received_document_payments_list_item.PendingReceivedDocumentPaymentsListItem(
+ amount = 1.337,
+ due_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
+ paid_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
+ payment_terms = fattureincloud_python_sdk.models.pending_received_document_payments_list_item_payment_terms.PendingReceivedDocumentPaymentsListItem_payment_terms(
+ days = 56, ),
+ status = '',
+ paid_with_ts_pay = True,
+ payment_account = fattureincloud_python_sdk.models.payment_account.PaymentAccount(
+ id = 56,
+ name = 'Conto Banca Intesa',
+ iban = '',
+ sia = '',
+ cuc = '',
+ virtual = True, ), )
+ ],
+ amount_net = 1.337,
+ amount_vat = 1.337,
+ import_error = '',
+ extracted_data = fattureincloud_python_sdk.models.pending_received_document_extracted_data.PendingReceivedDocument_extracted_data(
+ mining = fattureincloud_python_sdk.models.pending_received_document_extracted_data_mining.PendingReceivedDocument_extracted_data_mining(
+ save_entity = True, ), ), )
+ ]
+ )
+ else:
+ return ListPendingReceivedDocumentsResponsePage(
+ )
+ """
+
+ def testListPendingReceivedDocumentsResponsePage(self):
+ """Test ListPendingReceivedDocumentsResponsePage"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_pending_received_document.py b/test/test_pending_received_document.py
new file mode 100644
index 00000000..16403f74
--- /dev/null
+++ b/test/test_pending_received_document.py
@@ -0,0 +1,97 @@
+# coding: utf-8
+
+"""
+ Fatture in Cloud API v2 - API Reference
+
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@fattureincloud.it
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from fattureincloud_python_sdk.models.pending_received_document import PendingReceivedDocument
+
+class TestPendingReceivedDocument(unittest.TestCase):
+ """PendingReceivedDocument unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> PendingReceivedDocument:
+ """Test PendingReceivedDocument
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `PendingReceivedDocument`
+ """
+ model = PendingReceivedDocument()
+ if include_optional:
+ return PendingReceivedDocument(
+ id = 56,
+ var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
+ subject = '',
+ filename = '',
+ type = 'agyo',
+ attachment_url = '',
+ amount_gross = 1.337,
+ currency = fattureincloud_python_sdk.models.currency.Currency(
+ id = 'EUR',
+ symbol = '€',
+ exchange_rate = '1',
+ html_symbol = 'EUR', ),
+ document_type = 'expense',
+ supplier_name = '',
+ cost_center = '',
+ category = '',
+ other_attachments = [
+ fattureincloud_python_sdk.models.attachment.Attachment(
+ filename = 'attachment.pdf',
+ attachment = bytes(b'blah'), )
+ ],
+ emssion_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
+ payments_list = [
+ fattureincloud_python_sdk.models.pending_received_document_payments_list_item.PendingReceivedDocumentPaymentsListItem(
+ amount = 1.337,
+ due_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
+ paid_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
+ payment_terms = fattureincloud_python_sdk.models.pending_received_document_payments_list_item_payment_terms.PendingReceivedDocumentPaymentsListItem_payment_terms(
+ days = 56,
+ type = 'standard', ),
+ status = '',
+ paid_with_ts_pay = True,
+ payment_account = fattureincloud_python_sdk.models.payment_account.PaymentAccount(
+ id = 56,
+ name = 'Conto Banca Intesa',
+ iban = '',
+ sia = '',
+ cuc = '',
+ virtual = True, ), )
+ ],
+ amount_net = 1.337,
+ amount_vat = 1.337,
+ import_error = '',
+ extracted_data = fattureincloud_python_sdk.models.pending_received_document_extracted_data.PendingReceivedDocument_extracted_data(
+ mining = fattureincloud_python_sdk.models.pending_received_document_extracted_data_mining.PendingReceivedDocument_extracted_data_mining(
+ save_entity = True, ), )
+ )
+ else:
+ return PendingReceivedDocument(
+ )
+ """
+
+ def testPendingReceivedDocument(self):
+ """Test PendingReceivedDocument"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_pending_received_document_extracted_data.py b/test/test_pending_received_document_extracted_data.py
new file mode 100644
index 00000000..05906592
--- /dev/null
+++ b/test/test_pending_received_document_extracted_data.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Fatture in Cloud API v2 - API Reference
+
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@fattureincloud.it
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from fattureincloud_python_sdk.models.pending_received_document_extracted_data import PendingReceivedDocumentExtractedData
+
+class TestPendingReceivedDocumentExtractedData(unittest.TestCase):
+ """PendingReceivedDocumentExtractedData unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> PendingReceivedDocumentExtractedData:
+ """Test PendingReceivedDocumentExtractedData
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `PendingReceivedDocumentExtractedData`
+ """
+ model = PendingReceivedDocumentExtractedData()
+ if include_optional:
+ return PendingReceivedDocumentExtractedData(
+ mining = fattureincloud_python_sdk.models.pending_received_document_extracted_data_mining.PendingReceivedDocument_extracted_data_mining(
+ save_entity = True, )
+ )
+ else:
+ return PendingReceivedDocumentExtractedData(
+ )
+ """
+
+ def testPendingReceivedDocumentExtractedData(self):
+ """Test PendingReceivedDocumentExtractedData"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_pending_received_document_extracted_data_mining.py b/test/test_pending_received_document_extracted_data_mining.py
new file mode 100644
index 00000000..78aa0ec0
--- /dev/null
+++ b/test/test_pending_received_document_extracted_data_mining.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ Fatture in Cloud API v2 - API Reference
+
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@fattureincloud.it
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from fattureincloud_python_sdk.models.pending_received_document_extracted_data_mining import PendingReceivedDocumentExtractedDataMining
+
+class TestPendingReceivedDocumentExtractedDataMining(unittest.TestCase):
+ """PendingReceivedDocumentExtractedDataMining unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> PendingReceivedDocumentExtractedDataMining:
+ """Test PendingReceivedDocumentExtractedDataMining
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `PendingReceivedDocumentExtractedDataMining`
+ """
+ model = PendingReceivedDocumentExtractedDataMining()
+ if include_optional:
+ return PendingReceivedDocumentExtractedDataMining(
+ save_entity = True
+ )
+ else:
+ return PendingReceivedDocumentExtractedDataMining(
+ )
+ """
+
+ def testPendingReceivedDocumentExtractedDataMining(self):
+ """Test PendingReceivedDocumentExtractedDataMining"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_pending_received_document_payments_list_item.py b/test/test_pending_received_document_payments_list_item.py
new file mode 100644
index 00000000..1e1bd39c
--- /dev/null
+++ b/test/test_pending_received_document_payments_list_item.py
@@ -0,0 +1,67 @@
+# coding: utf-8
+
+"""
+ Fatture in Cloud API v2 - API Reference
+
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@fattureincloud.it
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from fattureincloud_python_sdk.models.pending_received_document_payments_list_item import PendingReceivedDocumentPaymentsListItem
+
+class TestPendingReceivedDocumentPaymentsListItem(unittest.TestCase):
+ """PendingReceivedDocumentPaymentsListItem unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> PendingReceivedDocumentPaymentsListItem:
+ """Test PendingReceivedDocumentPaymentsListItem
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `PendingReceivedDocumentPaymentsListItem`
+ """
+ model = PendingReceivedDocumentPaymentsListItem()
+ if include_optional:
+ return PendingReceivedDocumentPaymentsListItem(
+ amount = 1.337,
+ due_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
+ paid_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
+ payment_terms = fattureincloud_python_sdk.models.pending_received_document_payments_list_item_payment_terms.PendingReceivedDocumentPaymentsListItem_payment_terms(
+ days = 56,
+ type = 'standard', ),
+ status = '',
+ paid_with_ts_pay = True,
+ payment_account = fattureincloud_python_sdk.models.payment_account.PaymentAccount(
+ id = 56,
+ name = 'Conto Banca Intesa',
+ type = 'standard',
+ iban = '',
+ sia = '',
+ cuc = '',
+ virtual = True, )
+ )
+ else:
+ return PendingReceivedDocumentPaymentsListItem(
+ )
+ """
+
+ def testPendingReceivedDocumentPaymentsListItem(self):
+ """Test PendingReceivedDocumentPaymentsListItem"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_pending_received_document_payments_list_item_payment_terms.py b/test/test_pending_received_document_payments_list_item_payment_terms.py
new file mode 100644
index 00000000..125c1690
--- /dev/null
+++ b/test/test_pending_received_document_payments_list_item_payment_terms.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Fatture in Cloud API v2 - API Reference
+
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@fattureincloud.it
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from fattureincloud_python_sdk.models.pending_received_document_payments_list_item_payment_terms import PendingReceivedDocumentPaymentsListItemPaymentTerms
+
+class TestPendingReceivedDocumentPaymentsListItemPaymentTerms(unittest.TestCase):
+ """PendingReceivedDocumentPaymentsListItemPaymentTerms unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> PendingReceivedDocumentPaymentsListItemPaymentTerms:
+ """Test PendingReceivedDocumentPaymentsListItemPaymentTerms
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `PendingReceivedDocumentPaymentsListItemPaymentTerms`
+ """
+ model = PendingReceivedDocumentPaymentsListItemPaymentTerms()
+ if include_optional:
+ return PendingReceivedDocumentPaymentsListItemPaymentTerms(
+ days = 56,
+ type = 'standard'
+ )
+ else:
+ return PendingReceivedDocumentPaymentsListItemPaymentTerms(
+ )
+ """
+
+ def testPendingReceivedDocumentPaymentsListItemPaymentTerms(self):
+ """Test PendingReceivedDocumentPaymentsListItemPaymentTerms"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_pending_received_document_type.py b/test/test_pending_received_document_type.py
new file mode 100644
index 00000000..fad5110a
--- /dev/null
+++ b/test/test_pending_received_document_type.py
@@ -0,0 +1,34 @@
+# coding: utf-8
+
+"""
+ Fatture in Cloud API v2 - API Reference
+
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@fattureincloud.it
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from fattureincloud_python_sdk.models.pending_received_document_type import PendingReceivedDocumentType
+
+class TestPendingReceivedDocumentType(unittest.TestCase):
+ """PendingReceivedDocumentType unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testPendingReceivedDocumentType(self):
+ """Test PendingReceivedDocumentType"""
+ # inst = PendingReceivedDocumentType()
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_template_type.py b/test/test_template_type.py
new file mode 100644
index 00000000..bc148b83
--- /dev/null
+++ b/test/test_template_type.py
@@ -0,0 +1,34 @@
+# coding: utf-8
+
+"""
+ Fatture in Cloud API v2 - API Reference
+
+ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
+
+ The version of the OpenAPI document: 2.1.8
+ Contact: info@fattureincloud.it
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from fattureincloud_python_sdk.models.template_type import TemplateType
+
+class TestTemplateType(unittest.TestCase):
+ """TemplateType unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testTemplateType(self):
+ """Test TemplateType"""
+ # inst = TemplateType()
+
+if __name__ == '__main__':
+ unittest.main()