diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 5d93500f..d43bcae7 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -96,6 +96,7 @@ docs/GetReceiptsMonthlyTotalsResponse.md docs/GetReceivedDocumentPreCreateInfoResponse.md docs/GetReceivedDocumentResponse.md docs/GetSupplierResponse.md +docs/GetTaxProfileResponse.md docs/GetUserInfoResponse.md docs/GetUserInfoResponseEmailConfirmationState.md docs/GetUserInfoResponseInfo.md @@ -227,6 +228,7 @@ docs/ShowTotalsMode.md docs/Supplier.md docs/SupplierType.md docs/SuppliersApi.md +docs/TaxProfile.md docs/TaxesApi.md docs/TransformIssuedDocumentResponse.md docs/UploadArchiveAttachmentResponse.md @@ -363,6 +365,7 @@ fattureincloud_python_sdk/models/get_receipts_monthly_totals_response.py fattureincloud_python_sdk/models/get_received_document_pre_create_info_response.py 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_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 @@ -486,6 +489,7 @@ fattureincloud_python_sdk/models/sender_email.py 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/transform_issued_document_response.py fattureincloud_python_sdk/models/upload_archive_attachment_response.py fattureincloud_python_sdk/models/upload_f24_attachment_response.py @@ -513,3 +517,5 @@ setup.cfg setup.py test-requirements.txt test/__init__.py +test/test_get_tax_profile_response.py +test/test_tax_profile.py diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 93c8ddab..4bc5d618 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.6.0 +7.9.0 diff --git a/.travis.yml b/.travis.yml index dccb5e25..ed3c9132 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,13 @@ # ref: https://docs.travis-ci.com/user/languages/python language: python python: - - "3.7" - "3.8" - "3.9" - "3.10" - "3.11" + - "3.12" # uncomment the following if needed - #- "3.11-dev" # 3.11 development branch + #- "3.12-dev" # 3.12 development branch #- "nightly" # nightly build # command to install dependencies install: diff --git a/README.md b/README.md index 449af815..4f424b3d 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,8 @@ The Fatture in Cloud API is based on REST, and makes possible to interact with t This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 2.1.0 -- Package version: 2.1.0 +- API version: 2.1.2 +- Package version: 2.1.1 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://www.fattureincloud.it](https://www.fattureincloud.it) @@ -33,6 +33,10 @@ Then import the package: import fattureincloud_python_sdk ``` +### Tests + +Execute `pytest` to run the tests. + ## Getting Started Please follow the [installation procedure](#installation--usage) and then run the following: @@ -163,6 +167,7 @@ Class | Method | HTTP request | Description *SettingsApi* | [**delete_vat_type**](docs/SettingsApi.md#delete_vat_type) | **DELETE** /c/{company_id}/settings/vat_types/{vat_type_id} | Delete Vat Type *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_vat_type**](docs/SettingsApi.md#get_vat_type) | **GET** /c/{company_id}/settings/vat_types/{vat_type_id} | Get Vat Type *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 @@ -281,6 +286,7 @@ Class | Method | HTTP request | Description - [GetReceivedDocumentPreCreateInfoResponse](docs/GetReceivedDocumentPreCreateInfoResponse.md) - [GetReceivedDocumentResponse](docs/GetReceivedDocumentResponse.md) - [GetSupplierResponse](docs/GetSupplierResponse.md) + - [GetTaxProfileResponse](docs/GetTaxProfileResponse.md) - [GetUserInfoResponse](docs/GetUserInfoResponse.md) - [GetUserInfoResponseEmailConfirmationState](docs/GetUserInfoResponseEmailConfirmationState.md) - [GetUserInfoResponseInfo](docs/GetUserInfoResponseInfo.md) @@ -404,6 +410,7 @@ Class | Method | HTTP request | Description - [ShowTotalsMode](docs/ShowTotalsMode.md) - [Supplier](docs/Supplier.md) - [SupplierType](docs/SupplierType.md) + - [TaxProfile](docs/TaxProfile.md) - [TransformIssuedDocumentResponse](docs/TransformIssuedDocumentResponse.md) - [UploadArchiveAttachmentResponse](docs/UploadArchiveAttachmentResponse.md) - [UploadF24AttachmentResponse](docs/UploadF24AttachmentResponse.md) diff --git a/docs/CashbookEntryKind.md b/docs/CashbookEntryKind.md index 40568c2a..08e14646 100644 --- a/docs/CashbookEntryKind.md +++ b/docs/CashbookEntryKind.md @@ -2,10 +2,17 @@ Cashbook kind -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `CASHBOOK` (value: `'cashbook'`) + +* `ISSUED_DOCUMENT` (value: `'issued_document'`) + +* `RECEIVED_DOCUMENT` (value: `'received_document'`) + +* `TAX` (value: `'tax'`) + +* `RECEIPT` (value: `'receipt'`) [[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/CashbookEntryType.md b/docs/CashbookEntryType.md index 9fb688f6..7a7548f2 100644 --- a/docs/CashbookEntryType.md +++ b/docs/CashbookEntryType.md @@ -2,10 +2,11 @@ Cashbook type -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `IN` (value: `'in'`) + +* `OUT` (value: `'out'`) [[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/Client.md b/docs/Client.md index de98cb36..05f519d5 100644 --- a/docs/Client.md +++ b/docs/Client.md @@ -28,7 +28,7 @@ Name | Type | Description | Notes **notes** | **str** | Client extra | [optional] **default_vat** | [**VatType**](VatType.md) | | [optional] **default_payment_terms** | **int** | Client default payment terms | [optional] -**default_payment_terms_type** | [**PaymentTermsType**](PaymentTermsType.md) | | [optional] +**default_payment_terms_type** | [**PaymentTermsType**](PaymentTermsType.md) | | [optional] [default to PaymentTermsType.STANDARD] **default_payment_method** | [**PaymentMethod**](PaymentMethod.md) | | [optional] **bank_name** | **str** | Client bank name | [optional] **bank_iban** | **str** | Client bank iban | [optional] diff --git a/docs/ClientType.md b/docs/ClientType.md index 3b0583a8..64a2537f 100644 --- a/docs/ClientType.md +++ b/docs/ClientType.md @@ -2,10 +2,15 @@ Client type -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `COMPANY` (value: `'company'`) + +* `PERSON` (value: `'person'`) + +* `PA` (value: `'pa'`) + +* `CONDO` (value: `'condo'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CompanyType.md b/docs/CompanyType.md index 9ef1f6c6..79f03410 100644 --- a/docs/CompanyType.md +++ b/docs/CompanyType.md @@ -2,10 +2,11 @@ Company type -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `COMPANY` (value: `'company'`) + +* `ACCOUNTANT` (value: `'accountant'`) [[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/Email.md b/docs/Email.md index 0fc97f40..ce9f786f 100644 --- a/docs/Email.md +++ b/docs/Email.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Email id | [optional] **status** | [**EmailStatus**](EmailStatus.md) | | [optional] -**sent_date** | **datetime** | Email sent date | [optional] +**sent_date** | **str** | Email sent date | [optional] **errors_count** | **int** | Email errors count | [optional] **error_log** | **str** | Email errors log | [optional] **from_email** | **str** | Email sender email | [optional] diff --git a/docs/EmailRecipientStatus.md b/docs/EmailRecipientStatus.md index 7c24d092..d74eb817 100644 --- a/docs/EmailRecipientStatus.md +++ b/docs/EmailRecipientStatus.md @@ -2,10 +2,13 @@ Email recipient status -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `UNKNOWN` (value: `'unknown'`) + +* `DOCUMENT_OPENED` (value: `'document_opened'`) + +* `EMAIL_OPENED` (value: `'email_opened'`) [[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/EmailStatus.md b/docs/EmailStatus.md index bd69220b..d3823fca 100644 --- a/docs/EmailStatus.md +++ b/docs/EmailStatus.md @@ -2,10 +2,13 @@ Email status -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `SENDING` (value: `'sending'`) + +* `PENDING` (value: `'pending'`) + +* `SENT` (value: `'sent'`) [[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/Entity.md b/docs/Entity.md index e328f87c..7cc57ede 100644 --- a/docs/Entity.md +++ b/docs/Entity.md @@ -28,7 +28,7 @@ Name | Type | Description | Notes **notes** | **str** | Entity extra | [optional] **default_payment_terms** | **int** | [Only for client] Client default payment terms | [optional] **default_vat** | [**VatType**](VatType.md) | | [optional] -**default_payment_terms_type** | [**PaymentTermsType**](PaymentTermsType.md) | | [optional] +**default_payment_terms_type** | [**PaymentTermsType**](PaymentTermsType.md) | | [optional] [default to PaymentTermsType.STANDARD] **default_payment_method** | [**PaymentMethod**](PaymentMethod.md) | | [optional] **bank_name** | **str** | [Only for client] Client bank name | [optional] **bank_iban** | **str** | [Only for client] Client bank iban | [optional] diff --git a/docs/EntityType.md b/docs/EntityType.md index 08f89646..1bb0bc6d 100644 --- a/docs/EntityType.md +++ b/docs/EntityType.md @@ -2,10 +2,15 @@ Entity type -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `COMPANY` (value: `'company'`) + +* `PERSON` (value: `'person'`) + +* `PA` (value: `'pa'`) + +* `CONDO` (value: `'condo'`) [[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/EventType.md b/docs/EventType.md index f0c4c011..6fda148c 100644 --- a/docs/EventType.md +++ b/docs/EventType.md @@ -2,10 +2,155 @@ Webhooks event type -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `ISSUED_DOCUMENTS_INVOICES_CREATE` (value: `'it.fattureincloud.webhooks.issued_documents.invoices.create'`) + +* `ISSUED_DOCUMENTS_INVOICES_UPDATE` (value: `'it.fattureincloud.webhooks.issued_documents.invoices.update'`) + +* `ISSUED_DOCUMENTS_INVOICES_DELETE` (value: `'it.fattureincloud.webhooks.issued_documents.invoices.delete'`) + +* `ISSUED_DOCUMENTS_QUOTES_CREATE` (value: `'it.fattureincloud.webhooks.issued_documents.quotes.create'`) + +* `ISSUED_DOCUMENTS_QUOTES_UPDATE` (value: `'it.fattureincloud.webhooks.issued_documents.quotes.update'`) + +* `ISSUED_DOCUMENTS_QUOTES_DELETE` (value: `'it.fattureincloud.webhooks.issued_documents.quotes.delete'`) + +* `ISSUED_DOCUMENTS_PROFORMAS_CREATE` (value: `'it.fattureincloud.webhooks.issued_documents.proformas.create'`) + +* `ISSUED_DOCUMENTS_PROFORMAS_UPDATE` (value: `'it.fattureincloud.webhooks.issued_documents.proformas.update'`) + +* `ISSUED_DOCUMENTS_PROFORMAS_DELETE` (value: `'it.fattureincloud.webhooks.issued_documents.proformas.delete'`) + +* `ISSUED_DOCUMENTS_RECEIPTS_CREATE` (value: `'it.fattureincloud.webhooks.issued_documents.receipts.create'`) + +* `ISSUED_DOCUMENTS_RECEIPTS_UPDATE` (value: `'it.fattureincloud.webhooks.issued_documents.receipts.update'`) + +* `ISSUED_DOCUMENTS_RECEIPTS_DELETE` (value: `'it.fattureincloud.webhooks.issued_documents.receipts.delete'`) + +* `ISSUED_DOCUMENTS_DELIVERY_NOTES_CREATE` (value: `'it.fattureincloud.webhooks.issued_documents.delivery_notes.create'`) + +* `ISSUED_DOCUMENTS_DELIVERY_NOTES_UPDATE` (value: `'it.fattureincloud.webhooks.issued_documents.delivery_notes.update'`) + +* `ISSUED_DOCUMENTS_DELIVERY_NOTES_DELETE` (value: `'it.fattureincloud.webhooks.issued_documents.delivery_notes.delete'`) + +* `ISSUED_DOCUMENTS_CREDIT_NOTES_CREATE` (value: `'it.fattureincloud.webhooks.issued_documents.credit_notes.create'`) + +* `ISSUED_DOCUMENTS_CREDIT_NOTES_UPDATE` (value: `'it.fattureincloud.webhooks.issued_documents.credit_notes.update'`) + +* `ISSUED_DOCUMENTS_CREDIT_NOTES_DELETE` (value: `'it.fattureincloud.webhooks.issued_documents.credit_notes.delete'`) + +* `ISSUED_DOCUMENTS_ORDERS_CREATE` (value: `'it.fattureincloud.webhooks.issued_documents.orders.create'`) + +* `ISSUED_DOCUMENTS_ORDERS_UPDATE` (value: `'it.fattureincloud.webhooks.issued_documents.orders.update'`) + +* `ISSUED_DOCUMENTS_ORDERS_DELETE` (value: `'it.fattureincloud.webhooks.issued_documents.orders.delete'`) + +* `ISSUED_DOCUMENTS_WORK_REPORTS_CREATE` (value: `'it.fattureincloud.webhooks.issued_documents.work_reports.create'`) + +* `ISSUED_DOCUMENTS_WORK_REPORTS_UPDATE` (value: `'it.fattureincloud.webhooks.issued_documents.work_reports.update'`) + +* `ISSUED_DOCUMENTS_WORK_REPORTS_DELETE` (value: `'it.fattureincloud.webhooks.issued_documents.work_reports.delete'`) + +* `ISSUED_DOCUMENTS_SUPPLIER_ORDERS_CREATE` (value: `'it.fattureincloud.webhooks.issued_documents.supplier_orders.create'`) + +* `ISSUED_DOCUMENTS_SUPPLIER_ORDERS_UPDATE` (value: `'it.fattureincloud.webhooks.issued_documents.supplier_orders.update'`) + +* `ISSUED_DOCUMENTS_SUPPLIER_ORDERS_DELETE` (value: `'it.fattureincloud.webhooks.issued_documents.supplier_orders.delete'`) + +* `ISSUED_DOCUMENTS_SELF_INVOICES_CREATE` (value: `'it.fattureincloud.webhooks.issued_documents.self_invoices.create'`) + +* `ISSUED_DOCUMENTS_SELF_INVOICES_UPDATE` (value: `'it.fattureincloud.webhooks.issued_documents.self_invoices.update'`) + +* `ISSUED_DOCUMENTS_SELF_INVOICES_DELETE` (value: `'it.fattureincloud.webhooks.issued_documents.self_invoices.delete'`) + +* `ISSUED_DOCUMENTS_ALL_CREATE` (value: `'it.fattureincloud.webhooks.issued_documents.all.create'`) + +* `ISSUED_DOCUMENTS_ALL_UPDATE` (value: `'it.fattureincloud.webhooks.issued_documents.all.update'`) + +* `ISSUED_DOCUMENTS_ALL_DELETE` (value: `'it.fattureincloud.webhooks.issued_documents.all.delete'`) + +* `RECEIVED_DOCUMENTS_CREATE` (value: `'it.fattureincloud.webhooks.received_documents.create'`) + +* `RECEIVED_DOCUMENTS_UPDATE` (value: `'it.fattureincloud.webhooks.received_documents.update'`) + +* `RECEIVED_DOCUMENTS_DELETE` (value: `'it.fattureincloud.webhooks.received_documents.delete'`) + +* `RECEIPTS_CREATE` (value: `'it.fattureincloud.webhooks.receipts.create'`) + +* `RECEIPTS_UPDATE` (value: `'it.fattureincloud.webhooks.receipts.update'`) + +* `RECEIPTS_DELETE` (value: `'it.fattureincloud.webhooks.receipts.delete'`) + +* `TAXES_CREATE` (value: `'it.fattureincloud.webhooks.taxes.create'`) + +* `TAXES_UPDATE` (value: `'it.fattureincloud.webhooks.taxes.update'`) + +* `TAXES_DELETE` (value: `'it.fattureincloud.webhooks.taxes.delete'`) + +* `ARCHIVE_DOCUMENTS_CREATE` (value: `'it.fattureincloud.webhooks.archive_documents.create'`) + +* `ARCHIVE_DOCUMENTS_UPDATE` (value: `'it.fattureincloud.webhooks.archive_documents.update'`) + +* `ARCHIVE_DOCUMENTS_DELETE` (value: `'it.fattureincloud.webhooks.archive_documents.delete'`) + +* `CASHBOOK_CREATE` (value: `'it.fattureincloud.webhooks.cashbook.create'`) + +* `CASHBOOK_UPDATE` (value: `'it.fattureincloud.webhooks.cashbook.update'`) + +* `CASHBOOK_DELETE` (value: `'it.fattureincloud.webhooks.cashbook.delete'`) + +* `PRODUCTS_CREATE` (value: `'it.fattureincloud.webhooks.products.create'`) + +* `PRODUCTS_UPDATE` (value: `'it.fattureincloud.webhooks.products.update'`) + +* `PRODUCTS_DELETE` (value: `'it.fattureincloud.webhooks.products.delete'`) + +* `PRODUCTS_STOCK_UPDATE` (value: `'it.fattureincloud.webhooks.products.stock_update'`) + +* `ENTITIES_CLIENTS_CREATE` (value: `'it.fattureincloud.webhooks.entities.clients.create'`) + +* `ENTITIES_CLIENTS_UPDATE` (value: `'it.fattureincloud.webhooks.entities.clients.update'`) + +* `ENTITIES_CLIENTS_DELETE` (value: `'it.fattureincloud.webhooks.entities.clients.delete'`) + +* `ENTITIES_SUPPLIERS_CREATE` (value: `'it.fattureincloud.webhooks.entities.suppliers.create'`) + +* `ENTITIES_SUPPLIERS_UPDATE` (value: `'it.fattureincloud.webhooks.entities.suppliers.update'`) + +* `ENTITIES_SUPPLIERS_DELETE` (value: `'it.fattureincloud.webhooks.entities.suppliers.delete'`) + +* `ENTITIES_ALL_CREATE` (value: `'it.fattureincloud.webhooks.entities.all.create'`) + +* `ENTITIES_ALL_UPDATE` (value: `'it.fattureincloud.webhooks.entities.all.update'`) + +* `ENTITIES_ALL_DELETE` (value: `'it.fattureincloud.webhooks.entities.all.delete'`) + +* `ISSUED_DOCUMENTS_E_INVOICES_STATUS_UPDATE` (value: `'it.fattureincloud.webhooks.issued_documents.e_invoices.status_update'`) + +* `RECEIVED_DOCUMENTS_E_INVOICES_RECEIVE` (value: `'it.fattureincloud.webhooks.received_documents.e_invoices.receive'`) + +* `ISSUED_DOCUMENTS_INVOICES_EMAIL_SENT` (value: `'it.fattureincloud.webhooks.issued_documents.invoices.email_sent'`) + +* `ISSUED_DOCUMENTS_QUOTES_EMAIL_SENT` (value: `'it.fattureincloud.webhooks.issued_documents.quotes.email_sent'`) + +* `ISSUED_DOCUMENTS_PROFORMAS_EMAIL_SENT` (value: `'it.fattureincloud.webhooks.issued_documents.proformas.email_sent'`) + +* `ISSUED_DOCUMENTS_RECEIPTS_EMAIL_SENT` (value: `'it.fattureincloud.webhooks.issued_documents.receipts.email_sent'`) + +* `ISSUED_DOCUMENTS_DELIVERY_NOTES_EMAIL_SENT` (value: `'it.fattureincloud.webhooks.issued_documents.delivery_notes.email_sent'`) + +* `ISSUED_DOCUMENTS_CREDIT_NOTES_EMAIL_SENT` (value: `'it.fattureincloud.webhooks.issued_documents.credit_notes.email_sent'`) + +* `ISSUED_DOCUMENTS_ORDERS_EMAIL_SENT` (value: `'it.fattureincloud.webhooks.issued_documents.orders.email_sent'`) + +* `ISSUED_DOCUMENTS_WORK_REPORTS_EMAIL_SENT` (value: `'it.fattureincloud.webhooks.issued_documents.work_reports.email_sent'`) + +* `ISSUED_DOCUMENTS_SUPPLIER_ORDERS_EMAIL_SENT` (value: `'it.fattureincloud.webhooks.issued_documents.supplier_orders.email_sent'`) + +* `ISSUED_DOCUMENTS_SELF_INVOICES_EMAIL_SENT` (value: `'it.fattureincloud.webhooks.issued_documents.self_invoices.email_sent'`) + +* `ISSUED_DOCUMENTS_ALL_EMAIL_SENT` (value: `'it.fattureincloud.webhooks.issued_documents.all.email_sent'`) [[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/F24Status.md b/docs/F24Status.md index 4c7752e7..1aeb879f 100644 --- a/docs/F24Status.md +++ b/docs/F24Status.md @@ -2,10 +2,13 @@ F24 status -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `PAID` (value: `'paid'`) + +* `NOT_PAID` (value: `'not_paid'`) + +* `REVERSED` (value: `'reversed'`) [[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/FattureInCloudPlanType.md b/docs/FattureInCloudPlanType.md index 52ff4b09..dfb6aa36 100644 --- a/docs/FattureInCloudPlanType.md +++ b/docs/FattureInCloudPlanType.md @@ -2,10 +2,17 @@ Fatture in Cloud account plan type. -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `TRIAL` (value: `'trial'`) + +* `STANDARD` (value: `'standard'`) + +* `PREMIUM` (value: `'premium'`) + +* `PREMIUM_PLUS` (value: `'premium_plus'`) + +* `COMPLETE` (value: `'complete'`) [[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/GetTaxProfileResponse.md b/docs/GetTaxProfileResponse.md new file mode 100644 index 00000000..fdea5595 --- /dev/null +++ b/docs/GetTaxProfileResponse.md @@ -0,0 +1,29 @@ +# GetTaxProfileResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**TaxProfile**](TaxProfile.md) | | [optional] + +## Example + +```python +from fattureincloud_python_sdk.models.get_tax_profile_response import GetTaxProfileResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTaxProfileResponse from a JSON string +get_tax_profile_response_instance = GetTaxProfileResponse.from_json(json) +# print the JSON string representation of the object +print(GetTaxProfileResponse.to_json()) + +# convert the object into a dict +get_tax_profile_response_dict = get_tax_profile_response_instance.to_dict() +# create an instance of GetTaxProfileResponse from a dict +get_tax_profile_response_from_dict = GetTaxProfileResponse.from_dict(get_tax_profile_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 b8b275a5..693af696 100644 --- a/docs/InfoApi.md +++ b/docs/InfoApi.md @@ -1044,7 +1044,7 @@ configuration.access_token = os.environ["ACCESS_TOKEN"] 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') + 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: @@ -1063,7 +1063,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **type** | **str**| Type of the templates. | [optional] [default to 'all'] + **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 diff --git a/docs/IssuedDocument.md b/docs/IssuedDocument.md index 8c977664..775b9ddb 100644 --- a/docs/IssuedDocument.md +++ b/docs/IssuedDocument.md @@ -7,14 +7,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Issued document id | [optional] **entity** | [**Entity**](Entity.md) | | [optional] -**type** | [**IssuedDocumentType**](IssuedDocumentType.md) | | [optional] +**type** | [**IssuedDocumentType**](IssuedDocumentType.md) | | [optional] [default to IssuedDocumentType.INVOICE] **number** | **int** | Issued document number [If not specified, next number is used] | [optional] **numeration** | **str** | Issued document numeration [Not available if type=delivery_note] | [optional] **var_date** | **date** | Issued document date [defaults to today's date] | [optional] **year** | **int** | Issued document year | [optional] **currency** | [**Currency**](Currency.md) | | [optional] **language** | [**Language**](Language.md) | | [optional] -**subject** | **str** | Issued document subject | [optional] +**subject** | **str** | Issued document subject [not shown on the PDF] | [optional] **visible_subject** | **str** | Issued document visible subject | [optional] **rc_center** | **str** | Issued document revenue center [or cost center if type=supplier_order]. | [optional] **notes** | **str** | Issued document extra notes | [optional] @@ -52,7 +52,7 @@ Name | Type | Description | Notes **v_margins** | **int** | Issued document PDF vertical margins | [optional] **show_payments** | **bool** | Show the expiration dates of the payments on the document | [optional] **show_payment_method** | **bool** | Show the payment method details on the document | [optional] -**show_totals** | [**ShowTotalsMode**](ShowTotalsMode.md) | | [optional] +**show_totals** | [**ShowTotalsMode**](ShowTotalsMode.md) | | [optional] [default to ShowTotalsMode.ALL] **show_notification_button** | **bool** | Show notification button in the PDF | [optional] **show_tspay_button** | **bool** | Show ts pay button in the PDF | [optional] **delivery_note** | **bool** | Issued document has delivery note | [optional] diff --git a/docs/IssuedDocumentPaymentsListItem.md b/docs/IssuedDocumentPaymentsListItem.md index f58f0bd9..7cf8fcba 100644 --- a/docs/IssuedDocumentPaymentsListItem.md +++ b/docs/IssuedDocumentPaymentsListItem.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **id** | **int** | Issued document payment item id | [optional] **due_date** | **date** | Issued document payment due date | [optional] **amount** | **float** | Issued document payment amount | [optional] -**status** | [**IssuedDocumentStatus**](IssuedDocumentStatus.md) | | [optional] +**status** | [**IssuedDocumentStatus**](IssuedDocumentStatus.md) | | [optional] [default to IssuedDocumentStatus.NOT_PAID] **payment_account** | [**PaymentAccount**](PaymentAccount.md) | | [optional] **paid_date** | **date** | Issued document payment date [Only if status is paid] | [optional] **ei_raw** | **object** | Issued document payment advanced raw attributes for e-invoices | [optional] diff --git a/docs/IssuedDocumentPaymentsListItemPaymentTerms.md b/docs/IssuedDocumentPaymentsListItemPaymentTerms.md index c2790309..966b68b0 100644 --- a/docs/IssuedDocumentPaymentsListItemPaymentTerms.md +++ b/docs/IssuedDocumentPaymentsListItemPaymentTerms.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **days** | **int** | Issued document payment number of days by which the payment must be made | [optional] -**type** | [**PaymentTermsType**](PaymentTermsType.md) | | [optional] +**type** | [**PaymentTermsType**](PaymentTermsType.md) | | [optional] [default to PaymentTermsType.STANDARD] ## Example diff --git a/docs/IssuedDocumentStatus.md b/docs/IssuedDocumentStatus.md index 3fcba02c..4fc5f9cf 100644 --- a/docs/IssuedDocumentStatus.md +++ b/docs/IssuedDocumentStatus.md @@ -2,10 +2,13 @@ Issued document status -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `NOT_PAID` (value: `'not_paid'`) + +* `PAID` (value: `'paid'`) + +* `REVERSED` (value: `'reversed'`) [[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/IssuedDocumentType.md b/docs/IssuedDocumentType.md index 15b5aa91..77208fe7 100644 --- a/docs/IssuedDocumentType.md +++ b/docs/IssuedDocumentType.md @@ -2,10 +2,29 @@ Issued document type -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `INVOICE` (value: `'invoice'`) + +* `QUOTE` (value: `'quote'`) + +* `PROFORMA` (value: `'proforma'`) + +* `RECEIPT` (value: `'receipt'`) + +* `DELIVERY_NOTE` (value: `'delivery_note'`) + +* `CREDIT_NOTE` (value: `'credit_note'`) + +* `ORDER` (value: `'order'`) + +* `WORK_REPORT` (value: `'work_report'`) + +* `SUPPLIER_ORDER` (value: `'supplier_order'`) + +* `SELF_OWN_INVOICE` (value: `'self_own_invoice'`) + +* `SELF_SUPPLIER_INVOICE` (value: `'self_supplier_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/IssuedDocumentsApi.md b/docs/IssuedDocumentsApi.md index 331b40ed..c4451eef 100644 --- a/docs/IssuedDocumentsApi.md +++ b/docs/IssuedDocumentsApi.md @@ -650,7 +650,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **join_issued_documents** -> JoinIssuedDocumentsResponse join_issued_documents(company_id, ids, group=group, e_invoice=e_invoice) +> JoinIssuedDocumentsResponse join_issued_documents(company_id, ids, group=group, parameter=parameter) Join Issued Documents @@ -686,11 +686,11 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: company_id = 12345 # int | The ID of the company. ids = '1,2,3,4' # str | Ids of the documents. group = 56 # int | Group items. (optional) - e_invoice = 56 # int | New document e_invoice. (optional) + parameter = 'delivery_notes, orders, quotes, work_reports' # str | Type of the parameters to be joined (optional) try: # Join Issued Documents - api_response = api_instance.join_issued_documents(company_id, ids, group=group, e_invoice=e_invoice) + api_response = api_instance.join_issued_documents(company_id, ids, group=group, parameter=parameter) print("The response of IssuedDocumentsApi->join_issued_documents:\n") pprint(api_response) except Exception as e: @@ -707,7 +707,7 @@ Name | Type | Description | Notes **company_id** | **int**| The ID of the company. | **ids** | **str**| Ids of the documents. | **group** | **int**| Group items. | [optional] - **e_invoice** | **int**| New document e_invoice. | [optional] + **parameter** | **str**| Type of the parameters to be joined | [optional] ### Return type @@ -985,7 +985,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **transform_issued_document** -> TransformIssuedDocumentResponse transform_issued_document(company_id, original_document_id, new_type, e_invoice=e_invoice, transform_keep_copy=transform_keep_copy) +> TransformIssuedDocumentResponse transform_issued_document(company_id, original_document_id, new_type, parameter=parameter, e_invoice=e_invoice, transform_keep_copy=transform_keep_copy) Transform Issued Document @@ -1021,12 +1021,13 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: company_id = 12345 # int | The ID of the company. original_document_id = 56 # int | Original document id. new_type = 'new_type_example' # str | New document type. + parameter = 'parameter_example' # str | Old document type. (optional) e_invoice = 56 # int | New document e_invoice. (optional) transform_keep_copy = 56 # int | Keep the old document. (optional) try: # Transform Issued Document - api_response = api_instance.transform_issued_document(company_id, original_document_id, new_type, e_invoice=e_invoice, transform_keep_copy=transform_keep_copy) + api_response = api_instance.transform_issued_document(company_id, original_document_id, new_type, parameter=parameter, e_invoice=e_invoice, transform_keep_copy=transform_keep_copy) print("The response of IssuedDocumentsApi->transform_issued_document:\n") pprint(api_response) except Exception as e: @@ -1043,6 +1044,7 @@ Name | Type | Description | Notes **company_id** | **int**| The ID of the company. | **original_document_id** | **int**| Original document id. | **new_type** | **str**| New document type. | + **parameter** | **str**| Old document type. | [optional] **e_invoice** | **int**| New document e_invoice. | [optional] **transform_keep_copy** | **int**| Keep the old document. | [optional] diff --git a/docs/OriginalDocumentType.md b/docs/OriginalDocumentType.md index 7f8714ed..db2e010b 100644 --- a/docs/OriginalDocumentType.md +++ b/docs/OriginalDocumentType.md @@ -2,10 +2,13 @@ Issued document original document type -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `ORDINE` (value: `'ordine'`) + +* `CONTRATTO` (value: `'contratto'`) + +* `CONVENZIONE` (value: `'convenzione'`) [[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/PaymentAccount.md b/docs/PaymentAccount.md index 5f23203f..d4468827 100644 --- a/docs/PaymentAccount.md +++ b/docs/PaymentAccount.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Payment account id | [optional] **name** | **str** | Payment account name | [optional] -**type** | [**PaymentAccountType**](PaymentAccountType.md) | | [optional] +**type** | [**PaymentAccountType**](PaymentAccountType.md) | | [optional] [default to PaymentAccountType.STANDARD] **iban** | **str** | Payment account iban | [optional] **sia** | **str** | Payment account sia | [optional] **cuc** | **str** | Payment account cuc | [optional] diff --git a/docs/PaymentAccountType.md b/docs/PaymentAccountType.md index 13754066..76524ad6 100644 --- a/docs/PaymentAccountType.md +++ b/docs/PaymentAccountType.md @@ -2,10 +2,11 @@ Payment account type -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `STANDARD` (value: `'standard'`) + +* `BANK` (value: `'bank'`) [[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/PaymentMethod.md b/docs/PaymentMethod.md index 0bbe0e82..67aa3faa 100644 --- a/docs/PaymentMethod.md +++ b/docs/PaymentMethod.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Payment method id | [optional] **name** | **str** | Payment method name | [optional] -**type** | [**PaymentMethodType**](PaymentMethodType.md) | | [optional] +**type** | [**PaymentMethodType**](PaymentMethodType.md) | | [optional] [default to PaymentMethodType.STANDARD] **is_default** | **bool** | Payment method is default | [optional] **default_payment_account** | [**PaymentAccount**](PaymentAccount.md) | | [optional] **details** | [**List[PaymentMethodDetails]**](PaymentMethodDetails.md) | Payment method details | [optional] diff --git a/docs/PaymentMethodType.md b/docs/PaymentMethodType.md index 1b9f16a4..51422d44 100644 --- a/docs/PaymentMethodType.md +++ b/docs/PaymentMethodType.md @@ -2,10 +2,11 @@ Payment method type -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `STANDARD` (value: `'standard'`) + +* `RIBA` (value: `'riba'`) [[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/PaymentTermsType.md b/docs/PaymentTermsType.md index ea2beb7d..133b26ac 100644 --- a/docs/PaymentTermsType.md +++ b/docs/PaymentTermsType.md @@ -2,10 +2,11 @@ Payment terms type -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `STANDARD` (value: `'standard'`) + +* `END_OF_MONTH` (value: `'end_of_month'`) [[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/PermissionLevel.md b/docs/PermissionLevel.md index b6776b87..788caede 100644 --- a/docs/PermissionLevel.md +++ b/docs/PermissionLevel.md @@ -2,10 +2,15 @@ Permission level -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `NONE` (value: `'none'`) + +* `READ` (value: `'read'`) + +* `WRITE` (value: `'write'`) + +* `DETAILED` (value: `'detailed'`) [[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/ReceiptType.md b/docs/ReceiptType.md index b887e590..887ea369 100644 --- a/docs/ReceiptType.md +++ b/docs/ReceiptType.md @@ -2,10 +2,11 @@ Receipt type -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `TILL_RECEIPT` (value: `'till_receipt'`) + +* `SALES_RECEIPT` (value: `'sales_receipt'`) [[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/ReceivedDocument.md b/docs/ReceivedDocument.md index 55376096..12a16394 100644 --- a/docs/ReceivedDocument.md +++ b/docs/ReceivedDocument.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Received document id | [optional] -**type** | [**ReceivedDocumentType**](ReceivedDocumentType.md) | | [optional] +**type** | [**ReceivedDocumentType**](ReceivedDocumentType.md) | | [optional] [default to ReceivedDocumentType.EXPENSE] **entity** | [**Entity**](Entity.md) | | [optional] **var_date** | **date** | Received document date [defaults to today's date] | [optional] **category** | **str** | Received document category | [optional] diff --git a/docs/ReceivedDocumentPaymentsListItemPaymentTerms.md b/docs/ReceivedDocumentPaymentsListItemPaymentTerms.md index 0885a273..ed6fb900 100644 --- a/docs/ReceivedDocumentPaymentsListItemPaymentTerms.md +++ b/docs/ReceivedDocumentPaymentsListItemPaymentTerms.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **days** | **int** | Received document payment number of days by which the payment must be made | [optional] -**type** | [**PaymentTermsType**](PaymentTermsType.md) | | [optional] +**type** | [**PaymentTermsType**](PaymentTermsType.md) | | [optional] [default to PaymentTermsType.STANDARD] ## Example diff --git a/docs/ReceivedDocumentType.md b/docs/ReceivedDocumentType.md index 146ffa2c..34bfebf7 100644 --- a/docs/ReceivedDocumentType.md +++ b/docs/ReceivedDocumentType.md @@ -2,10 +2,15 @@ Received document type -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `EXPENSE` (value: `'expense'`) + +* `PASSIVE_CREDIT_NOTE` (value: `'passive_credit_note'`) + +* `PASSIVE_DELIVERY_NOTE` (value: `'passive_delivery_note'`) + +* `SELF_INVOICE` (value: `'self_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/SettingsApi.md b/docs/SettingsApi.md index 26ceb83d..526e9a7f 100644 --- a/docs/SettingsApi.md +++ b/docs/SettingsApi.md @@ -12,6 +12,7 @@ Method | HTTP request | Description [**delete_vat_type**](SettingsApi.md#delete_vat_type) | **DELETE** /c/{company_id}/settings/vat_types/{vat_type_id} | Delete Vat Type [**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_vat_type**](SettingsApi.md#get_vat_type) | **GET** /c/{company_id}/settings/vat_types/{vat_type_id} | Get Vat Type [**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 @@ -636,6 +637,81 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_tax_profile** +> GetTaxProfileResponse get_tax_profile(company_id) + +Get Tax Profile + +Gets the Tax Profile + +### Example + +* OAuth Authentication (OAuth2AuthenticationCodeFlow): + +```python +import fattureincloud_python_sdk +from fattureincloud_python_sdk.models.get_tax_profile_response import GetTaxProfileResponse +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. + + try: + # Get Tax Profile + api_response = api_instance.get_tax_profile(company_id) + print("The response of SettingsApi->get_tax_profile:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SettingsApi->get_tax_profile: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **company_id** | **int**| The ID of the company. | + +### Return type + +[**GetTaxProfileResponse**](GetTaxProfileResponse.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 | - | + +[[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_vat_type** > GetVatTypeResponse get_vat_type(company_id, vat_type_id) diff --git a/docs/ShowTotalsMode.md b/docs/ShowTotalsMode.md index 074be97a..b3ee847b 100644 --- a/docs/ShowTotalsMode.md +++ b/docs/ShowTotalsMode.md @@ -2,10 +2,13 @@ Show totals mode -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `NONE` (value: `'none'`) + +* `NETS` (value: `'nets'`) + +* `ALL` (value: `'all'`) [[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/SupplierType.md b/docs/SupplierType.md index eca9427b..d15c8989 100644 --- a/docs/SupplierType.md +++ b/docs/SupplierType.md @@ -2,10 +2,15 @@ Supplier type -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `COMPANY` (value: `'company'`) + +* `PERSON` (value: `'person'`) + +* `PA` (value: `'pa'`) + +* `CONDO` (value: `'condo'`) [[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/TaxProfile.md b/docs/TaxProfile.md new file mode 100644 index 00000000..b078ceb5 --- /dev/null +++ b/docs/TaxProfile.md @@ -0,0 +1,49 @@ +# TaxProfile + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**company_type** | **str** | The company type | [optional] +**company_subtype** | **str** | The company subtype | [optional] +**profession** | **str** | The profession | [optional] +**regime** | **str** | The applied regime | [optional] +**rivalsa_name** | **str** | The name of the rivalsa | [optional] +**default_rivalsa** | **float** | The default rivalsa amount | [optional] +**cassa_name** | **str** | The name of the cassa | [optional] +**default_cassa** | **float** | The default cassa amount | [optional] +**default_cassa_taxable** | **float** | The default taxable amount for the cassa | [optional] +**cassa2_name** | **str** | The name of the second cassa | [optional] +**default_cassa2** | **float** | The default second cassa amount | [optional] +**default_cassa2_taxable** | **float** | The default taxable amount for the second cassa | [optional] +**default_withholding_tax** | **float** | The default withholding tax | [optional] +**default_withholding_tax_taxable** | **float** | The default taxable amount for the withholding tax | [optional] +**default_other_withholding_tax** | **float** | The default other withholding tax | [optional] +**enasarco** | **bool** | If it has enasarco | [optional] +**enasarco_type** | **str** | The enasarco type | [optional] +**contributions_percentage** | **float** | The contributions percentage | [optional] +**profit_coefficient** | **float** | The profit coefficient | [optional] +**med** | **bool** | If the health card system is active | [optional] +**default_vat** | [**VatType**](VatType.md) | | [optional] + +## Example + +```python +from fattureincloud_python_sdk.models.tax_profile import TaxProfile + +# TODO update the JSON string below +json = "{}" +# create an instance of TaxProfile from a JSON string +tax_profile_instance = TaxProfile.from_json(json) +# print the JSON string representation of the object +print(TaxProfile.to_json()) + +# convert the object into a dict +tax_profile_dict = tax_profile_instance.to_dict() +# create an instance of TaxProfile from a dict +tax_profile_from_dict = TaxProfile.from_dict(tax_profile_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/UserCompanyRole.md b/docs/UserCompanyRole.md index 378057ab..060eec16 100644 --- a/docs/UserCompanyRole.md +++ b/docs/UserCompanyRole.md @@ -2,10 +2,13 @@ User company role -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `MASTER` (value: `'master'`) + +* `SUBACCOUNT` (value: `'subaccount'`) + +* `EMPLOYEE` (value: `'employee'`) [[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/VatKind.md b/docs/VatKind.md index 5795c7b3..daac6b09 100644 --- a/docs/VatKind.md +++ b/docs/VatKind.md @@ -2,10 +2,13 @@ Vat kind [esigibilità IVA] -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `I` (value: `'I'`) + +* `D` (value: `'D'`) + +* `S` (value: `'S'`) [[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/VatType.md b/docs/VatType.md index 05432cb6..bf64f66d 100644 --- a/docs/VatType.md +++ b/docs/VatType.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **ei_description** | **str** | Vat type e-invoice description | [optional] **editable** | **bool** | [Read Only] Is the vat type is editable. | [optional] [readonly] **is_disabled** | **bool** | Is the vat type disabled | [optional] +**default** | **bool** | If the vat type is default | [optional] ## Example diff --git a/docs/WebhooksSubscriptionMapping.md b/docs/WebhooksSubscriptionMapping.md index d264b2bd..f0419a22 100644 --- a/docs/WebhooksSubscriptionMapping.md +++ b/docs/WebhooksSubscriptionMapping.md @@ -2,10 +2,11 @@ Webhooks Subscription mapping -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `BINARY` (value: `'binary'`) + +* `STRUCTURED` (value: `'structured'`) [[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/fattureincloud_python_sdk/__init__.py b/fattureincloud_python_sdk/__init__.py index a2d827f8..b6c8f741 100644 --- a/fattureincloud_python_sdk/__init__.py +++ b/fattureincloud_python_sdk/__init__.py @@ -7,7 +7,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "2.1.0" +__version__ = "2.1.1" # import apis into sdk package from fattureincloud_python_sdk.api.archive_api import ArchiveApi @@ -238,6 +238,9 @@ 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, @@ -521,6 +524,7 @@ 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, ) diff --git a/fattureincloud_python_sdk/api/archive_api.py b/fattureincloud_python_sdk/api/archive_api.py index 55bfb659..db9e7e92 100644 --- a/fattureincloud_python_sdk/api/archive_api.py +++ b/fattureincloud_python_sdk/api/archive_api.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -13,13 +13,12 @@ """ # 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 pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator -from typing import Optional, Union +from typing import Optional, Tuple, Union from typing_extensions import Annotated from fattureincloud_python_sdk.models.create_archive_document_request import ( CreateArchiveDocumentRequest, @@ -293,7 +292,9 @@ def _create_archive_document_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -307,9 +308,10 @@ def _create_archive_document_serialize( _body_params = create_archive_document_request # set the HTTP header `Accept` - _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: @@ -563,7 +565,9 @@ def _delete_archive_document_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -856,7 +860,9 @@ def _get_archive_document_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -878,9 +884,10 @@ def _get_archive_document_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1237,7 +1244,9 @@ def _list_archive_documents_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1273,9 +1282,10 @@ def _list_archive_documents_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1541,7 +1551,9 @@ def _modify_archive_document_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1557,9 +1569,10 @@ def _modify_archive_document_serialize( _body_params = modify_archive_document_request # set the HTTP header `Accept` - _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: @@ -1597,7 +1610,7 @@ def upload_archive_document_attachment( Optional[StrictStr], Field(description="Attachment file name") ] = None, attachment: Annotated[ - Optional[Union[StrictBytes, StrictStr]], + Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field( description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]" ), @@ -1678,7 +1691,7 @@ def upload_archive_document_attachment_with_http_info( Optional[StrictStr], Field(description="Attachment file name") ] = None, attachment: Annotated[ - Optional[Union[StrictBytes, StrictStr]], + Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field( description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]" ), @@ -1759,7 +1772,7 @@ def upload_archive_document_attachment_without_preload_content( Optional[StrictStr], Field(description="Attachment file name") ] = None, attachment: Annotated[ - Optional[Union[StrictBytes, StrictStr]], + Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field( description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]" ), @@ -1847,7 +1860,9 @@ def _upload_archive_document_attachment_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1863,9 +1878,10 @@ def _upload_archive_document_attachment_serialize( # process the body parameter # set the HTTP header `Accept` - _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: diff --git a/fattureincloud_python_sdk/api/cashbook_api.py b/fattureincloud_python_sdk/api/cashbook_api.py index 7eb6f7ed..d14b27f5 100644 --- a/fattureincloud_python_sdk/api/cashbook_api.py +++ b/fattureincloud_python_sdk/api/cashbook_api.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -13,7 +13,6 @@ """ # 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 @@ -287,7 +286,9 @@ def _create_cashbook_entry_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -301,9 +302,10 @@ def _create_cashbook_entry_serialize( _body_params = create_cashbook_entry_request # set the HTTP header `Accept` - _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: @@ -557,7 +559,9 @@ def _delete_cashbook_entry_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -850,7 +854,9 @@ def _get_cashbook_entry_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -872,9 +878,10 @@ def _get_cashbook_entry_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1188,7 +1195,9 @@ def _list_cashbook_entries_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1220,9 +1229,10 @@ def _list_cashbook_entries_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1485,7 +1495,9 @@ def _modify_cashbook_entry_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1501,9 +1513,10 @@ def _modify_cashbook_entry_serialize( _body_params = modify_cashbook_entry_request # set the HTTP header `Accept` - _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: diff --git a/fattureincloud_python_sdk/api/clients_api.py b/fattureincloud_python_sdk/api/clients_api.py index 1c40f890..3df3ea55 100644 --- a/fattureincloud_python_sdk/api/clients_api.py +++ b/fattureincloud_python_sdk/api/clients_api.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -13,7 +13,6 @@ """ # 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 @@ -269,7 +268,9 @@ def _create_client_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -283,9 +284,10 @@ def _create_client_serialize( _body_params = create_client_request # set the HTTP header `Accept` - _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: @@ -539,7 +541,9 @@ def _delete_client_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -832,7 +836,9 @@ def _get_client_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -854,9 +860,10 @@ def _get_client_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1210,7 +1217,9 @@ def _list_clients_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1246,9 +1255,10 @@ def _list_clients_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1520,7 +1530,9 @@ def _modify_client_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1536,9 +1548,10 @@ def _modify_client_serialize( _body_params = modify_client_request # set the HTTP header `Accept` - _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: diff --git a/fattureincloud_python_sdk/api/companies_api.py b/fattureincloud_python_sdk/api/companies_api.py index 17e507db..b040e603 100644 --- a/fattureincloud_python_sdk/api/companies_api.py +++ b/fattureincloud_python_sdk/api/companies_api.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -13,7 +13,6 @@ """ # 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 @@ -252,7 +251,9 @@ def _get_company_info_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -264,9 +265,10 @@ def _get_company_info_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -507,7 +509,9 @@ def _get_company_plan_usage_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -523,9 +527,10 @@ def _get_company_plan_usage_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] diff --git a/fattureincloud_python_sdk/api/emails_api.py b/fattureincloud_python_sdk/api/emails_api.py index 081f9e4a..de0ee460 100644 --- a/fattureincloud_python_sdk/api/emails_api.py +++ b/fattureincloud_python_sdk/api/emails_api.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -13,7 +13,6 @@ """ # 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 @@ -244,7 +243,9 @@ def _list_emails_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -256,9 +257,10 @@ def _list_emails_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] diff --git a/fattureincloud_python_sdk/api/info_api.py b/fattureincloud_python_sdk/api/info_api.py index 000c184d..376d6678 100644 --- a/fattureincloud_python_sdk/api/info_api.py +++ b/fattureincloud_python_sdk/api/info_api.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -13,7 +13,6 @@ """ # 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 @@ -296,7 +295,9 @@ def _list_archive_categories_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -308,9 +309,10 @@ def _list_archive_categories_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -563,7 +565,9 @@ def _list_cities_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -581,9 +585,10 @@ def _list_cities_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -814,7 +819,9 @@ def _list_cost_centers_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -826,9 +833,10 @@ def _list_cost_centers_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1043,7 +1051,9 @@ def _list_countries_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1053,9 +1063,10 @@ def _list_countries_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1270,7 +1281,9 @@ def _list_currencies_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1280,9 +1293,10 @@ def _list_currencies_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1497,7 +1511,9 @@ def _list_delivery_notes_default_causals_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1507,9 +1523,10 @@ def _list_delivery_notes_default_causals_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1724,7 +1741,9 @@ def _list_detailed_countries_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1734,9 +1753,10 @@ def _list_detailed_countries_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1951,7 +1971,9 @@ def _list_languages_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1961,9 +1983,10 @@ def _list_languages_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -2260,7 +2283,9 @@ def _list_payment_accounts_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2284,9 +2309,10 @@ def _list_payment_accounts_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -2583,7 +2609,9 @@ def _list_payment_methods_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2607,9 +2635,10 @@ def _list_payment_methods_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -2853,7 +2882,9 @@ def _list_product_categories_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2869,9 +2900,10 @@ def _list_product_categories_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -3096,7 +3128,9 @@ def _list_received_document_categories_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3108,9 +3142,10 @@ def _list_received_document_categories_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -3341,7 +3376,9 @@ def _list_revenue_centers_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3353,9 +3390,10 @@ def _list_revenue_centers_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -3617,7 +3655,9 @@ def _list_templates_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3635,9 +3675,10 @@ def _list_templates_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -3852,7 +3893,9 @@ def _list_units_of_measure_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3862,9 +3905,10 @@ def _list_units_of_measure_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -4114,7 +4158,9 @@ def _list_vat_types_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -4130,9 +4176,10 @@ def _list_vat_types_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] diff --git a/fattureincloud_python_sdk/api/issued_documents_api.py b/fattureincloud_python_sdk/api/issued_documents_api.py index abfbf31f..f42accbe 100644 --- a/fattureincloud_python_sdk/api/issued_documents_api.py +++ b/fattureincloud_python_sdk/api/issued_documents_api.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -13,13 +13,12 @@ """ # 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 pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator -from typing import Optional, Union +from typing import Optional, Tuple, Union from typing_extensions import Annotated from fattureincloud_python_sdk.models.create_issued_document_request import ( CreateIssuedDocumentRequest, @@ -315,7 +314,9 @@ def _create_issued_document_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -329,9 +330,10 @@ def _create_issued_document_serialize( _body_params = create_issued_document_request # set the HTTP header `Accept` - _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: @@ -585,7 +587,9 @@ def _delete_issued_document_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -840,7 +844,9 @@ def _delete_issued_document_attachment_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1089,7 +1095,9 @@ def _get_email_data_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1103,9 +1111,10 @@ def _get_email_data_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1368,7 +1377,9 @@ def _get_existing_issued_document_totals_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1384,9 +1395,10 @@ def _get_existing_issued_document_totals_serialize( _body_params = get_existing_issued_document_totals_request # set the HTTP header `Accept` - _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: @@ -1678,7 +1690,9 @@ def _get_issued_document_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1700,9 +1714,10 @@ def _get_issued_document_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1946,7 +1961,9 @@ def _get_issued_document_pre_create_info_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1962,9 +1979,10 @@ def _get_issued_document_pre_create_info_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -2211,7 +2229,9 @@ def _get_new_issued_document_totals_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2225,9 +2245,10 @@ def _get_new_issued_document_totals_serialize( _body_params = get_new_issued_document_totals_request # set the HTTP header `Accept` - _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: @@ -2263,8 +2284,9 @@ def join_issued_documents( company_id: Annotated[StrictInt, Field(description="The ID of the company.")], ids: Annotated[StrictStr, Field(description="Ids of the documents.")], group: Annotated[Optional[StrictInt], Field(description="Group items.")] = None, - e_invoice: Annotated[ - Optional[StrictInt], Field(description="New document e_invoice.") + parameter: Annotated[ + Optional[StrictStr], + Field(description="Type of the parameters to be joined"), ] = None, _request_timeout: Union[ None, @@ -2288,8 +2310,8 @@ def join_issued_documents( :type ids: str :param group: Group items. :type group: int - :param e_invoice: New document e_invoice. - :type e_invoice: int + :param parameter: Type of the parameters to be joined + :type parameter: 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 @@ -2316,7 +2338,7 @@ def join_issued_documents( company_id=company_id, ids=ids, group=group, - e_invoice=e_invoice, + parameter=parameter, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2341,8 +2363,9 @@ def join_issued_documents_with_http_info( company_id: Annotated[StrictInt, Field(description="The ID of the company.")], ids: Annotated[StrictStr, Field(description="Ids of the documents.")], group: Annotated[Optional[StrictInt], Field(description="Group items.")] = None, - e_invoice: Annotated[ - Optional[StrictInt], Field(description="New document e_invoice.") + parameter: Annotated[ + Optional[StrictStr], + Field(description="Type of the parameters to be joined"), ] = None, _request_timeout: Union[ None, @@ -2366,8 +2389,8 @@ def join_issued_documents_with_http_info( :type ids: str :param group: Group items. :type group: int - :param e_invoice: New document e_invoice. - :type e_invoice: int + :param parameter: Type of the parameters to be joined + :type parameter: 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 @@ -2394,7 +2417,7 @@ def join_issued_documents_with_http_info( company_id=company_id, ids=ids, group=group, - e_invoice=e_invoice, + parameter=parameter, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2419,8 +2442,9 @@ def join_issued_documents_without_preload_content( company_id: Annotated[StrictInt, Field(description="The ID of the company.")], ids: Annotated[StrictStr, Field(description="Ids of the documents.")], group: Annotated[Optional[StrictInt], Field(description="Group items.")] = None, - e_invoice: Annotated[ - Optional[StrictInt], Field(description="New document e_invoice.") + parameter: Annotated[ + Optional[StrictStr], + Field(description="Type of the parameters to be joined"), ] = None, _request_timeout: Union[ None, @@ -2444,8 +2468,8 @@ def join_issued_documents_without_preload_content( :type ids: str :param group: Group items. :type group: int - :param e_invoice: New document e_invoice. - :type e_invoice: int + :param parameter: Type of the parameters to be joined + :type parameter: 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 @@ -2472,7 +2496,7 @@ def join_issued_documents_without_preload_content( company_id=company_id, ids=ids, group=group, - e_invoice=e_invoice, + parameter=parameter, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2492,7 +2516,7 @@ def _join_issued_documents_serialize( company_id, ids, group, - e_invoice, + parameter, _request_auth, _content_type, _headers, @@ -2507,7 +2531,9 @@ def _join_issued_documents_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2522,18 +2548,19 @@ def _join_issued_documents_serialize( _query_params.append(("group", group)) - if e_invoice is not None: + if parameter is not None: - _query_params.append(("e_invoice", e_invoice)) + _query_params.append(("parameter", parameter)) # process the header parameters # process the form parameters # process the body parameter # set the HTTP header `Accept` - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) # authentication setting _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] @@ -2937,7 +2964,9 @@ def _list_issued_documents_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2981,9 +3010,10 @@ def _list_issued_documents_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -3249,7 +3279,9 @@ def _modify_issued_document_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3265,9 +3297,10 @@ def _modify_issued_document_serialize( _body_params = modify_issued_document_request # set the HTTP header `Accept` - _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: @@ -3540,7 +3573,9 @@ def _schedule_email_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3591,6 +3626,9 @@ def transform_issued_document( StrictInt, Field(description="Original document id.") ], new_type: Annotated[StrictStr, Field(description="New document type.")], + parameter: Annotated[ + Optional[StrictStr], Field(description="Old document type.") + ] = None, e_invoice: Annotated[ Optional[StrictInt], Field(description="New document e_invoice.") ] = None, @@ -3619,6 +3657,8 @@ def transform_issued_document( :type original_document_id: int :param new_type: New document type. (required) :type new_type: str + :param parameter: Old document type. + :type parameter: str :param e_invoice: New document e_invoice. :type e_invoice: int :param transform_keep_copy: Keep the old document. @@ -3649,6 +3689,7 @@ def transform_issued_document( company_id=company_id, original_document_id=original_document_id, new_type=new_type, + parameter=parameter, e_invoice=e_invoice, transform_keep_copy=transform_keep_copy, _request_auth=_request_auth, @@ -3677,6 +3718,9 @@ def transform_issued_document_with_http_info( StrictInt, Field(description="Original document id.") ], new_type: Annotated[StrictStr, Field(description="New document type.")], + parameter: Annotated[ + Optional[StrictStr], Field(description="Old document type.") + ] = None, e_invoice: Annotated[ Optional[StrictInt], Field(description="New document e_invoice.") ] = None, @@ -3705,6 +3749,8 @@ def transform_issued_document_with_http_info( :type original_document_id: int :param new_type: New document type. (required) :type new_type: str + :param parameter: Old document type. + :type parameter: str :param e_invoice: New document e_invoice. :type e_invoice: int :param transform_keep_copy: Keep the old document. @@ -3735,6 +3781,7 @@ def transform_issued_document_with_http_info( company_id=company_id, original_document_id=original_document_id, new_type=new_type, + parameter=parameter, e_invoice=e_invoice, transform_keep_copy=transform_keep_copy, _request_auth=_request_auth, @@ -3763,6 +3810,9 @@ def transform_issued_document_without_preload_content( StrictInt, Field(description="Original document id.") ], new_type: Annotated[StrictStr, Field(description="New document type.")], + parameter: Annotated[ + Optional[StrictStr], Field(description="Old document type.") + ] = None, e_invoice: Annotated[ Optional[StrictInt], Field(description="New document e_invoice.") ] = None, @@ -3791,6 +3841,8 @@ def transform_issued_document_without_preload_content( :type original_document_id: int :param new_type: New document type. (required) :type new_type: str + :param parameter: Old document type. + :type parameter: str :param e_invoice: New document e_invoice. :type e_invoice: int :param transform_keep_copy: Keep the old document. @@ -3821,6 +3873,7 @@ def transform_issued_document_without_preload_content( company_id=company_id, original_document_id=original_document_id, new_type=new_type, + parameter=parameter, e_invoice=e_invoice, transform_keep_copy=transform_keep_copy, _request_auth=_request_auth, @@ -3842,6 +3895,7 @@ def _transform_issued_document_serialize( company_id, original_document_id, new_type, + parameter, e_invoice, transform_keep_copy, _request_auth, @@ -3858,7 +3912,9 @@ def _transform_issued_document_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3873,6 +3929,10 @@ def _transform_issued_document_serialize( _query_params.append(("new_type", new_type)) + if parameter is not None: + + _query_params.append(("parameter", parameter)) + if e_invoice is not None: _query_params.append(("e_invoice", e_invoice)) @@ -3886,9 +3946,10 @@ def _transform_issued_document_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -3916,7 +3977,7 @@ def upload_issued_document_attachment( Optional[StrictStr], Field(description="Attachment file name") ] = None, attachment: Annotated[ - Optional[Union[StrictBytes, StrictStr]], + Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field( description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]" ), @@ -3996,7 +4057,7 @@ def upload_issued_document_attachment_with_http_info( Optional[StrictStr], Field(description="Attachment file name") ] = None, attachment: Annotated[ - Optional[Union[StrictBytes, StrictStr]], + Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field( description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]" ), @@ -4076,7 +4137,7 @@ def upload_issued_document_attachment_without_preload_content( Optional[StrictStr], Field(description="Attachment file name") ] = None, attachment: Annotated[ - Optional[Union[StrictBytes, StrictStr]], + Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field( description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]" ), @@ -4163,7 +4224,9 @@ def _upload_issued_document_attachment_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -4179,9 +4242,10 @@ def _upload_issued_document_attachment_serialize( # process the body parameter # set the HTTP header `Accept` - _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: diff --git a/fattureincloud_python_sdk/api/issued_e_invoices_api.py b/fattureincloud_python_sdk/api/issued_e_invoices_api.py index 815094d9..21b4e8e2 100644 --- a/fattureincloud_python_sdk/api/issued_e_invoices_api.py +++ b/fattureincloud_python_sdk/api/issued_e_invoices_api.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -13,7 +13,6 @@ """ # 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 @@ -267,7 +266,9 @@ def _get_e_invoice_rejection_reason_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -281,9 +282,10 @@ def _get_e_invoice_rejection_reason_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -549,7 +551,9 @@ def _get_e_invoice_xml_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -567,7 +571,10 @@ def _get_e_invoice_xml_serialize( # process the body parameter # set the HTTP header `Accept` - _header_params["Accept"] = self.api_client.select_header_accept(["text/xml"]) + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/xml"] + ) # authentication setting _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] @@ -824,7 +831,9 @@ def _send_e_invoice_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -840,9 +849,10 @@ def _send_e_invoice_serialize( _body_params = send_e_invoice_request # set the HTTP header `Accept` - _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: @@ -1099,7 +1109,9 @@ def _verify_e_invoice_xml_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1113,9 +1125,10 @@ def _verify_e_invoice_xml_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] diff --git a/fattureincloud_python_sdk/api/products_api.py b/fattureincloud_python_sdk/api/products_api.py index a3f038d5..9dd21127 100644 --- a/fattureincloud_python_sdk/api/products_api.py +++ b/fattureincloud_python_sdk/api/products_api.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -13,7 +13,6 @@ """ # 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 @@ -267,7 +266,9 @@ def _create_product_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -281,9 +282,10 @@ def _create_product_serialize( _body_params = create_product_request # set the HTTP header `Accept` - _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: @@ -537,7 +539,9 @@ def _delete_product_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -830,7 +834,9 @@ def _get_product_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -852,9 +858,10 @@ def _get_product_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1208,7 +1215,9 @@ def _list_products_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1244,9 +1253,10 @@ def _list_products_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1512,7 +1522,9 @@ def _modify_product_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1528,9 +1540,10 @@ def _modify_product_serialize( _body_params = modify_product_request # set the HTTP header `Accept` - _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: diff --git a/fattureincloud_python_sdk/api/receipts_api.py b/fattureincloud_python_sdk/api/receipts_api.py index 7ac7aa89..d90af02b 100644 --- a/fattureincloud_python_sdk/api/receipts_api.py +++ b/fattureincloud_python_sdk/api/receipts_api.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -13,7 +13,6 @@ """ # 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 @@ -282,7 +281,9 @@ def _create_receipt_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -296,9 +297,10 @@ def _create_receipt_serialize( _body_params = create_receipt_request # set the HTTP header `Accept` - _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: @@ -552,7 +554,9 @@ def _delete_receipt_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -845,7 +849,9 @@ def _get_receipt_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -867,9 +873,10 @@ def _get_receipt_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1100,7 +1107,9 @@ def _get_receipt_pre_create_info_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1112,9 +1121,10 @@ def _get_receipt_pre_create_info_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1377,7 +1387,9 @@ def _get_receipts_monthly_totals_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1397,9 +1409,10 @@ def _get_receipts_monthly_totals_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1753,7 +1766,9 @@ def _list_receipts_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1789,9 +1804,10 @@ def _list_receipts_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -2054,7 +2070,9 @@ def _modify_receipt_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2070,9 +2088,10 @@ def _modify_receipt_serialize( _body_params = modify_receipt_request # set the HTTP header `Accept` - _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: diff --git a/fattureincloud_python_sdk/api/received_documents_api.py b/fattureincloud_python_sdk/api/received_documents_api.py index eae0ad58..af7ce966 100644 --- a/fattureincloud_python_sdk/api/received_documents_api.py +++ b/fattureincloud_python_sdk/api/received_documents_api.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -13,13 +13,12 @@ """ # 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 pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator -from typing import Optional, Union +from typing import Optional, Tuple, Union from typing_extensions import Annotated from fattureincloud_python_sdk.models.create_received_document_request import ( CreateReceivedDocumentRequest, @@ -302,7 +301,9 @@ def _create_received_document_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -316,9 +317,10 @@ def _create_received_document_serialize( _body_params = create_received_document_request # set the HTTP header `Accept` - _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: @@ -572,7 +574,9 @@ def _delete_received_document_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -827,7 +831,9 @@ def _delete_received_document_attachment_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1098,7 +1104,9 @@ def _get_existing_received_document_totals_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1114,9 +1122,10 @@ def _get_existing_received_document_totals_serialize( _body_params = get_existing_received_document_totals_request # set the HTTP header `Accept` - _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: @@ -1379,7 +1388,9 @@ def _get_new_received_document_totals_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1393,9 +1404,10 @@ def _get_new_received_document_totals_serialize( _body_params = get_new_received_document_totals_request # set the HTTP header `Accept` - _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: @@ -1687,7 +1699,9 @@ def _get_received_document_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1709,9 +1723,10 @@ def _get_received_document_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1955,7 +1970,9 @@ def _get_received_document_pre_create_info_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1971,9 +1988,10 @@ def _get_received_document_pre_create_info_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -2346,7 +2364,9 @@ def _list_received_documents_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2386,9 +2406,10 @@ def _list_received_documents_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -2654,7 +2675,9 @@ def _modify_received_document_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2670,9 +2693,10 @@ def _modify_received_document_serialize( _body_params = modify_received_document_request # set the HTTP header `Accept` - _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: @@ -2710,7 +2734,7 @@ def upload_received_document_attachment( Optional[StrictStr], Field(description="Attachment file name") ] = None, attachment: Annotated[ - Optional[Union[StrictBytes, StrictStr]], + Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field( description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]" ), @@ -2790,7 +2814,7 @@ def upload_received_document_attachment_with_http_info( Optional[StrictStr], Field(description="Attachment file name") ] = None, attachment: Annotated[ - Optional[Union[StrictBytes, StrictStr]], + Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field( description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]" ), @@ -2870,7 +2894,7 @@ def upload_received_document_attachment_without_preload_content( Optional[StrictStr], Field(description="Attachment file name") ] = None, attachment: Annotated[ - Optional[Union[StrictBytes, StrictStr]], + Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field( description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]" ), @@ -2957,7 +2981,9 @@ def _upload_received_document_attachment_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2973,9 +2999,10 @@ def _upload_received_document_attachment_serialize( # process the body parameter # set the HTTP header `Accept` - _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: diff --git a/fattureincloud_python_sdk/api/settings_api.py b/fattureincloud_python_sdk/api/settings_api.py index ea3b6034..7032e31a 100644 --- a/fattureincloud_python_sdk/api/settings_api.py +++ b/fattureincloud_python_sdk/api/settings_api.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -13,7 +13,6 @@ """ # 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 @@ -45,6 +44,9 @@ from fattureincloud_python_sdk.models.get_payment_method_response import ( GetPaymentMethodResponse, ) +from fattureincloud_python_sdk.models.get_tax_profile_response import ( + GetTaxProfileResponse, +) from fattureincloud_python_sdk.models.get_vat_type_response import GetVatTypeResponse from fattureincloud_python_sdk.models.modify_payment_account_request import ( ModifyPaymentAccountRequest, @@ -300,7 +302,9 @@ def _create_payment_account_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -314,9 +318,10 @@ def _create_payment_account_serialize( _body_params = create_payment_account_request # set the HTTP header `Accept` - _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: @@ -564,7 +569,9 @@ def _create_payment_method_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -578,9 +585,10 @@ def _create_payment_method_serialize( _body_params = create_payment_method_request # set the HTTP header `Accept` - _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: @@ -828,7 +836,9 @@ def _create_vat_type_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -842,9 +852,10 @@ def _create_vat_type_serialize( _body_params = create_vat_type_request # set the HTTP header `Accept` - _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: @@ -1098,7 +1109,9 @@ def _delete_payment_account_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1353,7 +1366,9 @@ def _delete_payment_method_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1608,7 +1623,9 @@ def _delete_vat_type_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1901,7 +1918,9 @@ def _get_payment_account_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1923,9 +1942,10 @@ def _get_payment_account_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -2207,7 +2227,9 @@ def _get_payment_method_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2229,9 +2251,10 @@ def _get_payment_method_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -2251,6 +2274,248 @@ def _get_payment_method_serialize( _request_auth=_request_auth, ) + @validate_call + def get_tax_profile( + 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, + ) -> GetTaxProfileResponse: + """Get Tax Profile + + Gets the Tax Profile + + :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_tax_profile_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": "GetTaxProfileResponse", + } + 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_tax_profile_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[GetTaxProfileResponse]: + """Get Tax Profile + + Gets the Tax Profile + + :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_tax_profile_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": "GetTaxProfileResponse", + } + 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_tax_profile_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 Tax Profile + + Gets the Tax Profile + + :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_tax_profile_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": "GetTaxProfileResponse", + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + return response_data.response + + def _get_tax_profile_serialize( + self, + company_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 + # 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/tax_profile", + 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, @@ -2475,7 +2740,9 @@ def _get_vat_type_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2489,9 +2756,10 @@ def _get_vat_type_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -2748,7 +3016,9 @@ def _modify_payment_account_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2764,9 +3034,10 @@ def _modify_payment_account_serialize( _body_params = modify_payment_account_request # set the HTTP header `Accept` - _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: @@ -3033,7 +3304,9 @@ def _modify_payment_method_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3049,9 +3322,10 @@ def _modify_payment_method_serialize( _body_params = modify_payment_method_request # set the HTTP header `Accept` - _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: @@ -3318,7 +3592,9 @@ def _modify_vat_type_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3334,9 +3610,10 @@ def _modify_vat_type_serialize( _body_params = modify_vat_type_request # set the HTTP header `Accept` - _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: diff --git a/fattureincloud_python_sdk/api/suppliers_api.py b/fattureincloud_python_sdk/api/suppliers_api.py index 7c5a0253..5f24b148 100644 --- a/fattureincloud_python_sdk/api/suppliers_api.py +++ b/fattureincloud_python_sdk/api/suppliers_api.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -13,7 +13,6 @@ """ # 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 @@ -279,7 +278,9 @@ def _create_supplier_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -293,9 +294,10 @@ def _create_supplier_serialize( _body_params = create_supplier_request # set the HTTP header `Accept` - _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: @@ -549,7 +551,9 @@ def _delete_supplier_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -842,7 +846,9 @@ def _get_supplier_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -864,9 +870,10 @@ def _get_supplier_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1220,7 +1227,9 @@ def _list_suppliers_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1256,9 +1265,10 @@ def _list_suppliers_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1530,7 +1540,9 @@ def _modify_supplier_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1546,9 +1558,10 @@ def _modify_supplier_serialize( _body_params = modify_supplier_request # set the HTTP header `Accept` - _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: diff --git a/fattureincloud_python_sdk/api/taxes_api.py b/fattureincloud_python_sdk/api/taxes_api.py index 0577e726..8680c125 100644 --- a/fattureincloud_python_sdk/api/taxes_api.py +++ b/fattureincloud_python_sdk/api/taxes_api.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -13,13 +13,12 @@ """ # 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 pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator -from typing import Optional, Union +from typing import Optional, Tuple, Union from typing_extensions import Annotated from fattureincloud_python_sdk.models.create_f24_request import CreateF24Request from fattureincloud_python_sdk.models.create_f24_response import CreateF24Response @@ -278,7 +277,9 @@ def _create_f24_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -292,9 +293,10 @@ def _create_f24_serialize( _body_params = create_f24_request # set the HTTP header `Accept` - _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: @@ -548,7 +550,9 @@ def _delete_f24_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -803,7 +807,9 @@ def _delete_f24_attachment_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1096,7 +1102,9 @@ def _get_f24_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1118,9 +1126,10 @@ def _get_f24_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1474,7 +1483,9 @@ def _list_f24_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1510,9 +1521,10 @@ def _list_f24_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1775,7 +1787,9 @@ def _modify_f24_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1791,9 +1805,10 @@ def _modify_f24_serialize( _body_params = modify_f24_request # set the HTTP header `Accept` - _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: @@ -1831,7 +1846,7 @@ def upload_f24_attachment( Optional[StrictStr], Field(description="Attachment file name") ] = None, attachment: Annotated[ - Optional[Union[StrictBytes, StrictStr]], + Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field( description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]" ), @@ -1910,7 +1925,7 @@ def upload_f24_attachment_with_http_info( Optional[StrictStr], Field(description="Attachment file name") ] = None, attachment: Annotated[ - Optional[Union[StrictBytes, StrictStr]], + Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field( description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]" ), @@ -1989,7 +2004,7 @@ def upload_f24_attachment_without_preload_content( Optional[StrictStr], Field(description="Attachment file name") ] = None, attachment: Annotated[ - Optional[Union[StrictBytes, StrictStr]], + Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field( description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]" ), @@ -2075,7 +2090,9 @@ def _upload_f24_attachment_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2091,9 +2108,10 @@ def _upload_f24_attachment_serialize( # process the body parameter # set the HTTP header `Accept` - _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: diff --git a/fattureincloud_python_sdk/api/user_api.py b/fattureincloud_python_sdk/api/user_api.py index 8a4ae65a..23e40fb7 100644 --- a/fattureincloud_python_sdk/api/user_api.py +++ b/fattureincloud_python_sdk/api/user_api.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -13,7 +13,6 @@ """ # 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 @@ -235,7 +234,9 @@ def _get_user_info_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -245,9 +246,10 @@ def _get_user_info_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -462,7 +464,9 @@ def _list_user_companies_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -472,9 +476,10 @@ def _list_user_companies_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] diff --git a/fattureincloud_python_sdk/api/webhooks_api.py b/fattureincloud_python_sdk/api/webhooks_api.py index 0d031f7e..dc53db30 100644 --- a/fattureincloud_python_sdk/api/webhooks_api.py +++ b/fattureincloud_python_sdk/api/webhooks_api.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -13,7 +13,6 @@ """ # 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 @@ -281,7 +280,9 @@ def _create_webhooks_subscription_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -295,9 +296,10 @@ def _create_webhooks_subscription_serialize( _body_params = create_webhooks_subscription_request # set the HTTP header `Accept` - _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: @@ -551,7 +553,9 @@ def _delete_webhooks_subscription_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -806,7 +810,9 @@ def _get_webhooks_subscription_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -820,9 +826,10 @@ def _get_webhooks_subscription_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1047,7 +1054,9 @@ def _list_webhooks_subscriptions_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1059,9 +1068,10 @@ def _list_webhooks_subscriptions_serialize( # process the body parameter # set the HTTP header `Accept` - _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"] @@ -1324,7 +1334,9 @@ def _modify_webhooks_subscription_serialize( _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]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1340,9 +1352,10 @@ def _modify_webhooks_subscription_serialize( _body_params = modify_webhooks_subscription_request # set the HTTP header `Accept` - _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: diff --git a/fattureincloud_python_sdk/api_client.py b/fattureincloud_python_sdk/api_client.py index 74752a01..36e952b5 100644 --- a/fattureincloud_python_sdk/api_client.py +++ b/fattureincloud_python_sdk/api_client.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -16,6 +16,7 @@ import datetime from dateutil.parser import parse from enum import Enum +import decimal import json import mimetypes import os @@ -68,6 +69,7 @@ class ApiClient: "bool": bool, "date": datetime.date, "datetime": datetime.datetime, + "decimal": decimal.Decimal, "object": object, } _pool = None @@ -86,7 +88,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = "FattureInCloud/2.1.0/Python-SDK" + self.user_agent = "FattureInCloud/2.1.1/Python-SDK" self.client_side_validation = configuration.client_side_validation def __enter__(self): @@ -217,7 +219,7 @@ def param_serialize( body = self.sanitize_for_serialization(body) # request url - if _host is None: + if _host is None or self.configuration.ignore_operation_servers: url = self.configuration.host + resource_path else: # use server/host defined in path or operation instead @@ -308,12 +310,9 @@ def response_deserialize( 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) - if response_type in ["bytearray", "str"]: - return_data = self.__deserialize_primitive( - response_text, response_type - ) - else: - return_data = self.deserialize(response_text, response_type) + return_data = self.deserialize( + response_text, response_type, content_type + ) finally: if not 200 <= response_data.status <= 299: raise ApiException.from_response( @@ -337,6 +336,7 @@ def sanitize_for_serialization(self, obj): If obj is str, int, long, float, bool, return directly. If obj is datetime.datetime, datetime.date convert to string in iso8601 format. + If obj is decimal.Decimal return string representation. If obj is list, sanitize each element in the list. If obj is dict, return the dict. If obj is OpenAPI model, return the properties dict. @@ -358,6 +358,8 @@ def sanitize_for_serialization(self, 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): + return str(obj) elif isinstance(obj, dict): obj_dict = obj @@ -376,21 +378,40 @@ def sanitize_for_serialization(self, obj): key: self.sanitize_for_serialization(val) for key, val in obj_dict.items() } - def deserialize(self, response_text, response_type): + 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. :param response_type: class literal for deserialized object, or string of class name. + :param content_type: content type of response. :return: deserialized object. """ # fetch data from response object - try: - data = json.loads(response_text) - except ValueError: + if content_type is None: + try: + data = json.loads(response_text) + except ValueError: + data = response_text + 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): data = response_text + else: + raise ApiException( + status=0, reason="Unsupported content type: {0}".format(content_type) + ) return self.__deserialize(data, response_type) @@ -432,6 +453,8 @@ def __deserialize(self, data, klass): return self.__deserialize_date(data) elif klass == datetime.datetime: return self.__deserialize_datetime(data) + elif klass == decimal.Decimal: + return decimal.Decimal(data) elif issubclass(klass, Enum): return self.__deserialize_enum(data, klass) else: @@ -505,7 +528,10 @@ def parameters_to_url_query(self, params, collection_formats): return "&".join(["=".join(map(str, item)) for item in new_params]) - def files_parameters(self, files: Dict[str, Union[str, bytes]]): + def files_parameters( + self, + files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], + ): """Builds form parameters. :param files: File parameters. @@ -520,6 +546,12 @@ def files_parameters(self, files: Dict[str, Union[str, bytes]]): elif isinstance(v, bytes): filename = k filedata = v + elif isinstance(v, tuple): + filename, filedata = v + elif isinstance(v, list): + for file_param in v: + params.extend(self.files_parameters({k: file_param})) + continue else: raise ValueError("Unsupported file value") mimetype = mimetypes.guess_type(filename)[0] or "application/octet-stream" diff --git a/fattureincloud_python_sdk/configuration.py b/fattureincloud_python_sdk/configuration.py index 827680f3..6cf8fe93 100644 --- a/fattureincloud_python_sdk/configuration.py +++ b/fattureincloud_python_sdk/configuration.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -41,6 +41,9 @@ class Configuration: """This class contains various settings of the API client. :param host: Base url. + :param ignore_operation_servers + Boolean to ignore operation servers for the API client. + Config will use `host` as the base url regardless of the operation servers. :param api_key: Dict to store API key(s). Each entry in the dict specifies an API key. The dict key is the name of the security scheme in the OAS specification. @@ -63,6 +66,7 @@ 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. :Example: """ @@ -81,7 +85,11 @@ def __init__( server_variables=None, server_operation_index=None, server_operation_variables=None, + ignore_operation_servers=False, ssl_ca_cert=None, + retries=None, + *, + debug: Optional[bool] = None ) -> None: """Constructor""" self._base_path = "https://api-v2.fattureincloud.it" if host is None else host @@ -95,6 +103,9 @@ def __init__( self.server_operation_variables = server_operation_variables or {} """Default server variables """ + self.ignore_operation_servers = ignore_operation_servers + """Ignore operation servers + """ self.temp_folder_path = None """Temp file folder for downloading files """ @@ -138,7 +149,10 @@ def __init__( self.logger_file = None """Debug file location """ - self.debug = False + if debug is not None: + self.debug = debug + else: + self.__debug = False """Debug switch """ @@ -181,7 +195,7 @@ def __init__( self.safe_chars_for_path_param = "" """Safe chars for path_param """ - self.retries = None + self.retries = retries """Adding retries to override urllib3 default value 3 """ # Enable client side validation @@ -394,8 +408,8 @@ def to_debug_report(self): "Python SDK Debug Report:\n" "OS: {env}\n" "Python Version: {pyversion}\n" - "Version of the API: 2.1.0\n" - "SDK Package Version: 2.1.0".format(env=sys.platform, pyversion=sys.version) + "Version of the API: 2.1.2\n" + "SDK Package Version: 2.1.1".format(env=sys.platform, pyversion=sys.version) ) def get_host_settings(self): diff --git a/fattureincloud_python_sdk/exceptions.py b/fattureincloud_python_sdk/exceptions.py index 5a87c6aa..7291907e 100644 --- a/fattureincloud_python_sdk/exceptions.py +++ b/fattureincloud_python_sdk/exceptions.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/__init__.py b/fattureincloud_python_sdk/models/__init__.py index adb7e570..13efe315 100644 --- a/fattureincloud_python_sdk/models/__init__.py +++ b/fattureincloud_python_sdk/models/__init__.py @@ -6,7 +6,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -206,6 +206,9 @@ 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, @@ -489,6 +492,7 @@ 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, ) diff --git a/fattureincloud_python_sdk/models/archive_document.py b/fattureincloud_python_sdk/models/archive_document.py index 73cfa506..c7bf2e24 100644 --- a/fattureincloud_python_sdk/models/archive_document.py +++ b/fattureincloud_python_sdk/models/archive_document.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/attachment_data.py b/fattureincloud_python_sdk/models/attachment_data.py index 6a27664d..c4445d48 100644 --- a/fattureincloud_python_sdk/models/attachment_data.py +++ b/fattureincloud_python_sdk/models/attachment_data.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/cashbook_entry.py b/fattureincloud_python_sdk/models/cashbook_entry.py index c1c153fb..32b5ee92 100644 --- a/fattureincloud_python_sdk/models/cashbook_entry.py +++ b/fattureincloud_python_sdk/models/cashbook_entry.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/cashbook_entry_document.py b/fattureincloud_python_sdk/models/cashbook_entry_document.py index d99474d8..d3c26749 100644 --- a/fattureincloud_python_sdk/models/cashbook_entry_document.py +++ b/fattureincloud_python_sdk/models/cashbook_entry_document.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/cashbook_entry_kind.py b/fattureincloud_python_sdk/models/cashbook_entry_kind.py index aa7e9133..a09d8e68 100644 --- a/fattureincloud_python_sdk/models/cashbook_entry_kind.py +++ b/fattureincloud_python_sdk/models/cashbook_entry_kind.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/cashbook_entry_type.py b/fattureincloud_python_sdk/models/cashbook_entry_type.py index 9244b4ed..bc095c96 100644 --- a/fattureincloud_python_sdk/models/cashbook_entry_type.py +++ b/fattureincloud_python_sdk/models/cashbook_entry_type.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/city.py b/fattureincloud_python_sdk/models/city.py index 4c00877f..37921abd 100644 --- a/fattureincloud_python_sdk/models/city.py +++ b/fattureincloud_python_sdk/models/city.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/client.py b/fattureincloud_python_sdk/models/client.py index ea83ade5..f6a0db1f 100644 --- a/fattureincloud_python_sdk/models/client.py +++ b/fattureincloud_python_sdk/models/client.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -87,7 +87,7 @@ class Client(BaseModel): default_payment_terms: Optional[StrictInt] = Field( default=None, description="Client default payment terms" ) - default_payment_terms_type: Optional[PaymentTermsType] = None + 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") @@ -248,7 +248,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: else None ), "default_payment_terms": obj.get("default_payment_terms"), - "default_payment_terms_type": obj.get("default_payment_terms_type"), + "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 diff --git a/fattureincloud_python_sdk/models/client_type.py b/fattureincloud_python_sdk/models/client_type.py index 3e07f669..ff3468a0 100644 --- a/fattureincloud_python_sdk/models/client_type.py +++ b/fattureincloud_python_sdk/models/client_type.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/company.py b/fattureincloud_python_sdk/models/company.py index bb9f7c26..b1a34633 100644 --- a/fattureincloud_python_sdk/models/company.py +++ b/fattureincloud_python_sdk/models/company.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -108,9 +108,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in controlled_companies (list) _items = [] if self.controlled_companies: - for _item in self.controlled_companies: - if _item: - _items.append(_item.to_dict()) + for _item_controlled_companies in self.controlled_companies: + if _item_controlled_companies: + _items.append(_item_controlled_companies.to_dict()) _dict["controlled_companies"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/company_info.py b/fattureincloud_python_sdk/models/company_info.py index c08b335e..2b89ec60 100644 --- a/fattureincloud_python_sdk/models/company_info.py +++ b/fattureincloud_python_sdk/models/company_info.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/company_info_access_info.py b/fattureincloud_python_sdk/models/company_info_access_info.py index 0be85e69..323baa81 100644 --- a/fattureincloud_python_sdk/models/company_info_access_info.py +++ b/fattureincloud_python_sdk/models/company_info_access_info.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/company_info_plan_info.py b/fattureincloud_python_sdk/models/company_info_plan_info.py index d1472588..e40604d0 100644 --- a/fattureincloud_python_sdk/models/company_info_plan_info.py +++ b/fattureincloud_python_sdk/models/company_info_plan_info.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 3e59cd7d..99d176dd 100644 --- a/fattureincloud_python_sdk/models/company_info_plan_info_functions.py +++ b/fattureincloud_python_sdk/models/company_info_plan_info_functions.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 d23f4de3..e50ffcb9 100644 --- a/fattureincloud_python_sdk/models/company_info_plan_info_functions_status.py +++ b/fattureincloud_python_sdk/models/company_info_plan_info_functions_status.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 8910671d..309a7118 100644 --- a/fattureincloud_python_sdk/models/company_info_plan_info_limits.py +++ b/fattureincloud_python_sdk/models/company_info_plan_info_limits.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/company_plan_usage.py b/fattureincloud_python_sdk/models/company_plan_usage.py index de89ae7c..d83541d6 100644 --- a/fattureincloud_python_sdk/models/company_plan_usage.py +++ b/fattureincloud_python_sdk/models/company_plan_usage.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/company_type.py b/fattureincloud_python_sdk/models/company_type.py index ca47e49d..30801777 100644 --- a/fattureincloud_python_sdk/models/company_type.py +++ b/fattureincloud_python_sdk/models/company_type.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/controlled_company.py b/fattureincloud_python_sdk/models/controlled_company.py index 7a87dbb4..4af08630 100644 --- a/fattureincloud_python_sdk/models/controlled_company.py +++ b/fattureincloud_python_sdk/models/controlled_company.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_archive_document_request.py b/fattureincloud_python_sdk/models/create_archive_document_request.py index 6a0e4c3c..1c26cd93 100644 --- a/fattureincloud_python_sdk/models/create_archive_document_request.py +++ b/fattureincloud_python_sdk/models/create_archive_document_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_archive_document_response.py b/fattureincloud_python_sdk/models/create_archive_document_response.py index 41fa5cc7..161b5e8e 100644 --- a/fattureincloud_python_sdk/models/create_archive_document_response.py +++ b/fattureincloud_python_sdk/models/create_archive_document_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_cashbook_entry_request.py b/fattureincloud_python_sdk/models/create_cashbook_entry_request.py index 605b1a4b..51d3d08b 100644 --- a/fattureincloud_python_sdk/models/create_cashbook_entry_request.py +++ b/fattureincloud_python_sdk/models/create_cashbook_entry_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_cashbook_entry_response.py b/fattureincloud_python_sdk/models/create_cashbook_entry_response.py index cdb9bebe..0922ef66 100644 --- a/fattureincloud_python_sdk/models/create_cashbook_entry_response.py +++ b/fattureincloud_python_sdk/models/create_cashbook_entry_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_client_request.py b/fattureincloud_python_sdk/models/create_client_request.py index 51ec6c96..dd398735 100644 --- a/fattureincloud_python_sdk/models/create_client_request.py +++ b/fattureincloud_python_sdk/models/create_client_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_client_response.py b/fattureincloud_python_sdk/models/create_client_response.py index f61a2e26..00a09661 100644 --- a/fattureincloud_python_sdk/models/create_client_response.py +++ b/fattureincloud_python_sdk/models/create_client_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_f24_request.py b/fattureincloud_python_sdk/models/create_f24_request.py index 7ae0604a..68730341 100644 --- a/fattureincloud_python_sdk/models/create_f24_request.py +++ b/fattureincloud_python_sdk/models/create_f24_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_f24_response.py b/fattureincloud_python_sdk/models/create_f24_response.py index 0bbfa165..cc10d0fb 100644 --- a/fattureincloud_python_sdk/models/create_f24_response.py +++ b/fattureincloud_python_sdk/models/create_f24_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_issued_document_request.py b/fattureincloud_python_sdk/models/create_issued_document_request.py index 9bddfb12..077e643b 100644 --- a/fattureincloud_python_sdk/models/create_issued_document_request.py +++ b/fattureincloud_python_sdk/models/create_issued_document_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_issued_document_response.py b/fattureincloud_python_sdk/models/create_issued_document_response.py index 55695bca..2c1bdb8b 100644 --- a/fattureincloud_python_sdk/models/create_issued_document_response.py +++ b/fattureincloud_python_sdk/models/create_issued_document_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_payment_account_request.py b/fattureincloud_python_sdk/models/create_payment_account_request.py index bae30120..2cac213f 100644 --- a/fattureincloud_python_sdk/models/create_payment_account_request.py +++ b/fattureincloud_python_sdk/models/create_payment_account_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_payment_account_response.py b/fattureincloud_python_sdk/models/create_payment_account_response.py index 4531be7b..2d289a66 100644 --- a/fattureincloud_python_sdk/models/create_payment_account_response.py +++ b/fattureincloud_python_sdk/models/create_payment_account_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_payment_method_request.py b/fattureincloud_python_sdk/models/create_payment_method_request.py index b18d8ce4..3f08e0be 100644 --- a/fattureincloud_python_sdk/models/create_payment_method_request.py +++ b/fattureincloud_python_sdk/models/create_payment_method_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_payment_method_response.py b/fattureincloud_python_sdk/models/create_payment_method_response.py index b60e04b8..7807b469 100644 --- a/fattureincloud_python_sdk/models/create_payment_method_response.py +++ b/fattureincloud_python_sdk/models/create_payment_method_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_product_request.py b/fattureincloud_python_sdk/models/create_product_request.py index c68de475..760ea4f3 100644 --- a/fattureincloud_python_sdk/models/create_product_request.py +++ b/fattureincloud_python_sdk/models/create_product_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_product_response.py b/fattureincloud_python_sdk/models/create_product_response.py index 55ae7c3f..07c86d22 100644 --- a/fattureincloud_python_sdk/models/create_product_response.py +++ b/fattureincloud_python_sdk/models/create_product_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_receipt_request.py b/fattureincloud_python_sdk/models/create_receipt_request.py index dd7f6ef6..e8b8bbf7 100644 --- a/fattureincloud_python_sdk/models/create_receipt_request.py +++ b/fattureincloud_python_sdk/models/create_receipt_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_receipt_response.py b/fattureincloud_python_sdk/models/create_receipt_response.py index 8edf7a65..857dd7fe 100644 --- a/fattureincloud_python_sdk/models/create_receipt_response.py +++ b/fattureincloud_python_sdk/models/create_receipt_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_received_document_request.py b/fattureincloud_python_sdk/models/create_received_document_request.py index 445d3b8e..ab6bd49e 100644 --- a/fattureincloud_python_sdk/models/create_received_document_request.py +++ b/fattureincloud_python_sdk/models/create_received_document_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_received_document_response.py b/fattureincloud_python_sdk/models/create_received_document_response.py index 64e53aaa..f036ba92 100644 --- a/fattureincloud_python_sdk/models/create_received_document_response.py +++ b/fattureincloud_python_sdk/models/create_received_document_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_supplier_request.py b/fattureincloud_python_sdk/models/create_supplier_request.py index 049b41fc..4b91568b 100644 --- a/fattureincloud_python_sdk/models/create_supplier_request.py +++ b/fattureincloud_python_sdk/models/create_supplier_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_supplier_response.py b/fattureincloud_python_sdk/models/create_supplier_response.py index 7f93a896..1e5344cc 100644 --- a/fattureincloud_python_sdk/models/create_supplier_response.py +++ b/fattureincloud_python_sdk/models/create_supplier_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_vat_type_request.py b/fattureincloud_python_sdk/models/create_vat_type_request.py index 07836af6..9e1dad67 100644 --- a/fattureincloud_python_sdk/models/create_vat_type_request.py +++ b/fattureincloud_python_sdk/models/create_vat_type_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_vat_type_response.py b/fattureincloud_python_sdk/models/create_vat_type_response.py index 163e0cef..6bb69e09 100644 --- a/fattureincloud_python_sdk/models/create_vat_type_response.py +++ b/fattureincloud_python_sdk/models/create_vat_type_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_webhooks_subscription_request.py b/fattureincloud_python_sdk/models/create_webhooks_subscription_request.py index e685a721..8102c08f 100644 --- a/fattureincloud_python_sdk/models/create_webhooks_subscription_request.py +++ b/fattureincloud_python_sdk/models/create_webhooks_subscription_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/create_webhooks_subscription_response.py b/fattureincloud_python_sdk/models/create_webhooks_subscription_response.py index bb86ca89..338e9a6d 100644 --- a/fattureincloud_python_sdk/models/create_webhooks_subscription_response.py +++ b/fattureincloud_python_sdk/models/create_webhooks_subscription_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/currency.py b/fattureincloud_python_sdk/models/currency.py index f62d1188..82f40310 100644 --- a/fattureincloud_python_sdk/models/currency.py +++ b/fattureincloud_python_sdk/models/currency.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/detailed_country.py b/fattureincloud_python_sdk/models/detailed_country.py index f4bd6550..5306789b 100644 --- a/fattureincloud_python_sdk/models/detailed_country.py +++ b/fattureincloud_python_sdk/models/detailed_country.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/document_template.py b/fattureincloud_python_sdk/models/document_template.py index 937fe60e..98498d9a 100644 --- a/fattureincloud_python_sdk/models/document_template.py +++ b/fattureincloud_python_sdk/models/document_template.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/e_invoice_rejection_reason.py b/fattureincloud_python_sdk/models/e_invoice_rejection_reason.py index 74688cfa..bc74a25f 100644 --- a/fattureincloud_python_sdk/models/e_invoice_rejection_reason.py +++ b/fattureincloud_python_sdk/models/e_invoice_rejection_reason.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/email.py b/fattureincloud_python_sdk/models/email.py index 5ac2f6c7..1865561e 100644 --- a/fattureincloud_python_sdk/models/email.py +++ b/fattureincloud_python_sdk/models/email.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -35,7 +35,7 @@ class Email(BaseModel): id: Optional[StrictInt] = Field(default=None, description="Email id") status: Optional[EmailStatus] = None - sent_date: Optional[datetime] = Field(default=None, description="Email sent date") + sent_date: Optional[StrictStr] = Field(default=None, description="Email sent date") errors_count: Optional[StrictInt] = Field( default=None, description="Email errors count" ) @@ -122,9 +122,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in attachments (list) _items = [] if self.attachments: - for _item in self.attachments: - if _item: - _items.append(_item.to_dict()) + for _item_attachments in self.attachments: + if _item_attachments: + _items.append(_item_attachments.to_dict()) _dict["attachments"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/email_attachment.py b/fattureincloud_python_sdk/models/email_attachment.py index 828759b2..40a176a2 100644 --- a/fattureincloud_python_sdk/models/email_attachment.py +++ b/fattureincloud_python_sdk/models/email_attachment.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/email_data.py b/fattureincloud_python_sdk/models/email_data.py index f666c876..d02fd5b5 100644 --- a/fattureincloud_python_sdk/models/email_data.py +++ b/fattureincloud_python_sdk/models/email_data.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -118,9 +118,9 @@ def to_dict(self) -> Dict[str, Any]: # 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 in self.sender_emails_list: - if _item: - _items.append(_item.to_dict()) + 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 return _dict 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 e7a43ac8..d11485a5 100644 --- a/fattureincloud_python_sdk/models/email_data_default_sender_email.py +++ b/fattureincloud_python_sdk/models/email_data_default_sender_email.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/email_recipient_status.py b/fattureincloud_python_sdk/models/email_recipient_status.py index cbc4c114..12275e1b 100644 --- a/fattureincloud_python_sdk/models/email_recipient_status.py +++ b/fattureincloud_python_sdk/models/email_recipient_status.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/email_schedule.py b/fattureincloud_python_sdk/models/email_schedule.py index 14a6a57c..16fa2060 100644 --- a/fattureincloud_python_sdk/models/email_schedule.py +++ b/fattureincloud_python_sdk/models/email_schedule.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/email_schedule_include.py b/fattureincloud_python_sdk/models/email_schedule_include.py index 81675cfe..c180ea6f 100644 --- a/fattureincloud_python_sdk/models/email_schedule_include.py +++ b/fattureincloud_python_sdk/models/email_schedule_include.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/email_status.py b/fattureincloud_python_sdk/models/email_status.py index e13f904e..54edf8cc 100644 --- a/fattureincloud_python_sdk/models/email_status.py +++ b/fattureincloud_python_sdk/models/email_status.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/entity.py b/fattureincloud_python_sdk/models/entity.py index cab3c431..bb9ace1c 100644 --- a/fattureincloud_python_sdk/models/entity.py +++ b/fattureincloud_python_sdk/models/entity.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -79,7 +79,7 @@ class Entity(BaseModel): default=None, description="[Only for client] Client default payment terms" ) default_vat: Optional[VatType] = None - default_payment_terms_type: Optional[PaymentTermsType] = 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" @@ -238,7 +238,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("default_vat") is not None else None ), - "default_payment_terms_type": obj.get("default_payment_terms_type"), + "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 diff --git a/fattureincloud_python_sdk/models/entity_type.py b/fattureincloud_python_sdk/models/entity_type.py index 41dfd691..b986c29a 100644 --- a/fattureincloud_python_sdk/models/entity_type.py +++ b/fattureincloud_python_sdk/models/entity_type.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/event_type.py b/fattureincloud_python_sdk/models/event_type.py index 0c97a755..0c399bc4 100644 --- a/fattureincloud_python_sdk/models/event_type.py +++ b/fattureincloud_python_sdk/models/event_type.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -216,6 +216,39 @@ class EventType(str, Enum): 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: diff --git a/fattureincloud_python_sdk/models/f24.py b/fattureincloud_python_sdk/models/f24.py index 1ff91d37..9ead9c26 100644 --- a/fattureincloud_python_sdk/models/f24.py +++ b/fattureincloud_python_sdk/models/f24.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/f24_status.py b/fattureincloud_python_sdk/models/f24_status.py index 9ff598c0..5dcb5bb6 100644 --- a/fattureincloud_python_sdk/models/f24_status.py +++ b/fattureincloud_python_sdk/models/f24_status.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 608245df..f483bd13 100644 --- a/fattureincloud_python_sdk/models/fatture_in_cloud_plan_type.py +++ b/fattureincloud_python_sdk/models/fatture_in_cloud_plan_type.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/function_status.py b/fattureincloud_python_sdk/models/function_status.py index e1322dd8..4cf603e2 100644 --- a/fattureincloud_python_sdk/models/function_status.py +++ b/fattureincloud_python_sdk/models/function_status.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/get_archive_document_response.py b/fattureincloud_python_sdk/models/get_archive_document_response.py index 8c5e1725..fbca30a5 100644 --- a/fattureincloud_python_sdk/models/get_archive_document_response.py +++ b/fattureincloud_python_sdk/models/get_archive_document_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/get_cashbook_entry_response.py b/fattureincloud_python_sdk/models/get_cashbook_entry_response.py index 654b066f..11b482a8 100644 --- a/fattureincloud_python_sdk/models/get_cashbook_entry_response.py +++ b/fattureincloud_python_sdk/models/get_cashbook_entry_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/get_client_response.py b/fattureincloud_python_sdk/models/get_client_response.py index e4f06e51..9db80ced 100644 --- a/fattureincloud_python_sdk/models/get_client_response.py +++ b/fattureincloud_python_sdk/models/get_client_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/get_company_info_response.py b/fattureincloud_python_sdk/models/get_company_info_response.py index 0d076f0d..b94c795c 100644 --- a/fattureincloud_python_sdk/models/get_company_info_response.py +++ b/fattureincloud_python_sdk/models/get_company_info_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 bcda5af0..8843af00 100644 --- a/fattureincloud_python_sdk/models/get_company_plan_usage_response.py +++ b/fattureincloud_python_sdk/models/get_company_plan_usage_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 7875fb77..dd88fd98 100644 --- a/fattureincloud_python_sdk/models/get_e_invoice_rejection_reason_response.py +++ b/fattureincloud_python_sdk/models/get_e_invoice_rejection_reason_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/get_email_data_response.py b/fattureincloud_python_sdk/models/get_email_data_response.py index f553ac1e..67525238 100644 --- a/fattureincloud_python_sdk/models/get_email_data_response.py +++ b/fattureincloud_python_sdk/models/get_email_data_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 75c1476f..cc9ea62a 100644 --- a/fattureincloud_python_sdk/models/get_existing_issued_document_totals_request.py +++ b/fattureincloud_python_sdk/models/get_existing_issued_document_totals_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 6fd2c9ae..1f4ab754 100644 --- a/fattureincloud_python_sdk/models/get_existing_issued_document_totals_response.py +++ b/fattureincloud_python_sdk/models/get_existing_issued_document_totals_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 464356a1..80066226 100644 --- a/fattureincloud_python_sdk/models/get_existing_received_document_totals_request.py +++ b/fattureincloud_python_sdk/models/get_existing_received_document_totals_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 639092af..d8802554 100644 --- a/fattureincloud_python_sdk/models/get_existing_received_document_totals_response.py +++ b/fattureincloud_python_sdk/models/get_existing_received_document_totals_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/get_f24_response.py b/fattureincloud_python_sdk/models/get_f24_response.py index 52a30da0..d8588bc3 100644 --- a/fattureincloud_python_sdk/models/get_f24_response.py +++ b/fattureincloud_python_sdk/models/get_f24_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 be434d58..8dc1ae7a 100644 --- a/fattureincloud_python_sdk/models/get_issued_document_pre_create_info_response.py +++ b/fattureincloud_python_sdk/models/get_issued_document_pre_create_info_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/get_issued_document_response.py b/fattureincloud_python_sdk/models/get_issued_document_response.py index bba8723d..ae3944c8 100644 --- a/fattureincloud_python_sdk/models/get_issued_document_response.py +++ b/fattureincloud_python_sdk/models/get_issued_document_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 7ab93d6d..b8ef2ec8 100644 --- a/fattureincloud_python_sdk/models/get_new_issued_document_totals_request.py +++ b/fattureincloud_python_sdk/models/get_new_issued_document_totals_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 307e77ee..09601a9a 100644 --- a/fattureincloud_python_sdk/models/get_new_issued_document_totals_response.py +++ b/fattureincloud_python_sdk/models/get_new_issued_document_totals_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 c91b18ad..9588afb6 100644 --- a/fattureincloud_python_sdk/models/get_new_received_document_totals_request.py +++ b/fattureincloud_python_sdk/models/get_new_received_document_totals_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 f33ac1db..1fd7808e 100644 --- a/fattureincloud_python_sdk/models/get_new_received_document_totals_response.py +++ b/fattureincloud_python_sdk/models/get_new_received_document_totals_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/get_payment_account_response.py b/fattureincloud_python_sdk/models/get_payment_account_response.py index 90e81db5..bae54fab 100644 --- a/fattureincloud_python_sdk/models/get_payment_account_response.py +++ b/fattureincloud_python_sdk/models/get_payment_account_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/get_payment_method_response.py b/fattureincloud_python_sdk/models/get_payment_method_response.py index d81d4340..1b8b47f8 100644 --- a/fattureincloud_python_sdk/models/get_payment_method_response.py +++ b/fattureincloud_python_sdk/models/get_payment_method_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/get_product_response.py b/fattureincloud_python_sdk/models/get_product_response.py index f11644cf..06aed3a5 100644 --- a/fattureincloud_python_sdk/models/get_product_response.py +++ b/fattureincloud_python_sdk/models/get_product_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 2661911a..3973891d 100644 --- a/fattureincloud_python_sdk/models/get_receipt_pre_create_info_response.py +++ b/fattureincloud_python_sdk/models/get_receipt_pre_create_info_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/get_receipt_response.py b/fattureincloud_python_sdk/models/get_receipt_response.py index 0ddb58b9..d57baa4b 100644 --- a/fattureincloud_python_sdk/models/get_receipt_response.py +++ b/fattureincloud_python_sdk/models/get_receipt_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 56c49ac2..927b75ba 100644 --- a/fattureincloud_python_sdk/models/get_receipts_monthly_totals_response.py +++ b/fattureincloud_python_sdk/models/get_receipts_monthly_totals_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -71,9 +71,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict 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 b1c47a8e..95adefb8 100644 --- a/fattureincloud_python_sdk/models/get_received_document_pre_create_info_response.py +++ b/fattureincloud_python_sdk/models/get_received_document_pre_create_info_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/get_received_document_response.py b/fattureincloud_python_sdk/models/get_received_document_response.py index ea3bb051..fd15a6eb 100644 --- a/fattureincloud_python_sdk/models/get_received_document_response.py +++ b/fattureincloud_python_sdk/models/get_received_document_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/get_supplier_response.py b/fattureincloud_python_sdk/models/get_supplier_response.py index c1b92f0b..b6f91be3 100644 --- a/fattureincloud_python_sdk/models/get_supplier_response.py +++ b/fattureincloud_python_sdk/models/get_supplier_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/get_tax_profile_response.py b/fattureincloud_python_sdk/models/get_tax_profile_response.py new file mode 100644 index 00000000..47a81a64 --- /dev/null +++ b/fattureincloud_python_sdk/models/get_tax_profile_response.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.2 + 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.tax_profile import TaxProfile +from typing import Optional, Set +from typing_extensions import Self + + +class GetTaxProfileResponse(BaseModel): + """ + GetTaxProfileResponse + """ # noqa: E501 + + data: Optional[TaxProfile] = 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 GetTaxProfileResponse 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 GetTaxProfileResponse from a dict""" + if obj is None: + return None + + 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 + ) + } + ) + 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 d2f253fa..bdd5d66b 100644 --- a/fattureincloud_python_sdk/models/get_user_info_response.py +++ b/fattureincloud_python_sdk/models/get_user_info_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 d03338ec..14732e41 100644 --- a/fattureincloud_python_sdk/models/get_user_info_response_email_confirmation_state.py +++ b/fattureincloud_python_sdk/models/get_user_info_response_email_confirmation_state.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 3a2ecdc2..8aeffcbb 100644 --- a/fattureincloud_python_sdk/models/get_user_info_response_info.py +++ b/fattureincloud_python_sdk/models/get_user_info_response_info.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/get_vat_type_response.py b/fattureincloud_python_sdk/models/get_vat_type_response.py index 2f725aea..e970cf86 100644 --- a/fattureincloud_python_sdk/models/get_vat_type_response.py +++ b/fattureincloud_python_sdk/models/get_vat_type_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/get_webhooks_subscription_response.py b/fattureincloud_python_sdk/models/get_webhooks_subscription_response.py index b6545be1..5aa6de36 100644 --- a/fattureincloud_python_sdk/models/get_webhooks_subscription_response.py +++ b/fattureincloud_python_sdk/models/get_webhooks_subscription_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/issued_document.py b/fattureincloud_python_sdk/models/issued_document.py index dbf8b07a..f865e4be 100644 --- a/fattureincloud_python_sdk/models/issued_document.py +++ b/fattureincloud_python_sdk/models/issued_document.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ class IssuedDocument(BaseModel): id: Optional[StrictInt] = Field(default=None, description="Issued document id") entity: Optional[Entity] = None - type: Optional[IssuedDocumentType] = None + type: Optional[IssuedDocumentType] = IssuedDocumentType.INVOICE number: Optional[StrictInt] = Field( default=None, description="Issued document number [If not specified, next number is used]", @@ -78,7 +78,7 @@ class IssuedDocument(BaseModel): currency: Optional[Currency] = None language: Optional[Language] = None subject: Optional[StrictStr] = Field( - default=None, description="Issued document subject" + default=None, description="Issued document subject [not shown on the PDF]" ) visible_subject: Optional[StrictStr] = Field( default=None, description="Issued document visible subject" @@ -187,7 +187,7 @@ class IssuedDocument(BaseModel): show_payment_method: Optional[StrictBool] = Field( default=None, description="Show the payment method details on the document" ) - show_totals: Optional[ShowTotalsMode] = None + show_totals: Optional[ShowTotalsMode] = ShowTotalsMode.ALL show_notification_button: Optional[StrictBool] = Field( default=None, description="Show notification button in the PDF" ) @@ -504,16 +504,16 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in items_list (list) _items = [] if self.items_list: - for _item in self.items_list: - if _item: - _items.append(_item.to_dict()) + for _item_items_list in self.items_list: + if _item_items_list: + _items.append(_item_items_list.to_dict()) _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 in self.payments_list: - if _item: - _items.append(_item.to_dict()) + 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 template if self.template: @@ -546,7 +546,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("entity") is not None else None ), - "type": obj.get("type"), + "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"), @@ -637,7 +641,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "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"), + "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"), diff --git a/fattureincloud_python_sdk/models/issued_document_ei_data.py b/fattureincloud_python_sdk/models/issued_document_ei_data.py index c63e7d4d..1d4e7309 100644 --- a/fattureincloud_python_sdk/models/issued_document_ei_data.py +++ b/fattureincloud_python_sdk/models/issued_document_ei_data.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/issued_document_extra_data.py b/fattureincloud_python_sdk/models/issued_document_extra_data.py index 8a541c0c..56ec7450 100644 --- a/fattureincloud_python_sdk/models/issued_document_extra_data.py +++ b/fattureincloud_python_sdk/models/issued_document_extra_data.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 9058eae6..8f196e24 100644 --- a/fattureincloud_python_sdk/models/issued_document_items_list_item.py +++ b/fattureincloud_python_sdk/models/issued_document_items_list_item.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/issued_document_options.py b/fattureincloud_python_sdk/models/issued_document_options.py index a961b2c9..46e3bc9c 100644 --- a/fattureincloud_python_sdk/models/issued_document_options.py +++ b/fattureincloud_python_sdk/models/issued_document_options.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 6e01671f..9b18edaa 100644 --- a/fattureincloud_python_sdk/models/issued_document_payments_list_item.py +++ b/fattureincloud_python_sdk/models/issued_document_payments_list_item.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -44,7 +44,7 @@ class IssuedDocumentPaymentsListItem(BaseModel): amount: Optional[Union[StrictFloat, StrictInt]] = Field( default=None, description="Issued document payment amount" ) - status: Optional[IssuedDocumentStatus] = None + status: Optional[IssuedDocumentStatus] = IssuedDocumentStatus.NOT_PAID payment_account: Optional[PaymentAccount] = None paid_date: Optional[date] = Field( default=None, @@ -125,7 +125,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "id": obj.get("id"), "due_date": obj.get("due_date"), "amount": obj.get("amount"), - "status": obj.get("status"), + "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 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 115dfb1b..5850d2a5 100644 --- a/fattureincloud_python_sdk/models/issued_document_payments_list_item_payment_terms.py +++ b/fattureincloud_python_sdk/models/issued_document_payments_list_item_payment_terms.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -34,7 +34,7 @@ class IssuedDocumentPaymentsListItemPaymentTerms(BaseModel): default=None, description="Issued document payment number of days by which the payment must be made", ) - type: Optional[PaymentTermsType] = None + type: Optional[PaymentTermsType] = PaymentTermsType.STANDARD __properties: ClassVar[List[str]] = ["days", "type"] model_config = ConfigDict( @@ -85,5 +85,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({"days": obj.get("days"), "type": obj.get("type")}) + _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 a03281d2..d271cd3e 100644 --- a/fattureincloud_python_sdk/models/issued_document_pre_create_info.py +++ b/fattureincloud_python_sdk/models/issued_document_pre_create_info.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -146,58 +146,58 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in currencies_list (list) _items = [] if self.currencies_list: - for _item in self.currencies_list: - if _item: - _items.append(_item.to_dict()) + for _item_currencies_list in self.currencies_list: + if _item_currencies_list: + _items.append(_item_currencies_list.to_dict()) _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 in self.templates_list: - if _item: - _items.append(_item.to_dict()) + for _item_templates_list in self.templates_list: + if _item_templates_list: + _items.append(_item_templates_list.to_dict()) _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 in self.dn_templates_list: - if _item: - _items.append(_item.to_dict()) + 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 # 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 in self.ai_templates_list: - if _item: - _items.append(_item.to_dict()) + 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 # 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 in self.payment_methods_list: - if _item: - _items.append(_item.to_dict()) + 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 # 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 in self.payment_accounts_list: - if _item: - _items.append(_item.to_dict()) + 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 # 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 in self.vat_types_list: - if _item: - _items.append(_item.to_dict()) + 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 # override the default output from pydantic by calling `to_dict()` of each item in languages_list (list) _items = [] if self.languages_list: - for _item in self.languages_list: - if _item: - _items.append(_item.to_dict()) + for _item_languages_list in self.languages_list: + if _item_languages_list: + _items.append(_item_languages_list.to_dict()) _dict["languages_list"] = _items return _dict 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 0567feba..b7175caf 100644 --- a/fattureincloud_python_sdk/models/issued_document_pre_create_info_default_values.py +++ b/fattureincloud_python_sdk/models/issued_document_pre_create_info_default_values.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 de179431..a05c692a 100644 --- a/fattureincloud_python_sdk/models/issued_document_pre_create_info_extra_data_default_values.py +++ b/fattureincloud_python_sdk/models/issued_document_pre_create_info_extra_data_default_values.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 1d4592c7..b3a3a382 100644 --- a/fattureincloud_python_sdk/models/issued_document_pre_create_info_items_default_values.py +++ b/fattureincloud_python_sdk/models/issued_document_pre_create_info_items_default_values.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/issued_document_status.py b/fattureincloud_python_sdk/models/issued_document_status.py index dc5ccc3f..312588b2 100644 --- a/fattureincloud_python_sdk/models/issued_document_status.py +++ b/fattureincloud_python_sdk/models/issued_document_status.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/issued_document_totals.py b/fattureincloud_python_sdk/models/issued_document_totals.py index 4d6424db..56441797 100644 --- a/fattureincloud_python_sdk/models/issued_document_totals.py +++ b/fattureincloud_python_sdk/models/issued_document_totals.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,6 +18,7 @@ import re # noqa: F401 import json +from fattureincloud_python_sdk.models.vat_item import VatItem from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set @@ -141,9 +142,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each value in vat_list (dict) _field_dict = {} if self.vat_list: - for _key in self.vat_list: - if self.vat_list[_key]: - _field_dict[_key] = self.vat_list[_key].to_dict() + 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 return _dict diff --git a/fattureincloud_python_sdk/models/issued_document_type.py b/fattureincloud_python_sdk/models/issued_document_type.py index 19ffee14..7bb6df70 100644 --- a/fattureincloud_python_sdk/models/issued_document_type.py +++ b/fattureincloud_python_sdk/models/issued_document_type.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/join_issued_documents_response.py b/fattureincloud_python_sdk/models/join_issued_documents_response.py index 63cf7ca9..1f7b4232 100644 --- a/fattureincloud_python_sdk/models/join_issued_documents_response.py +++ b/fattureincloud_python_sdk/models/join_issued_documents_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/language.py b/fattureincloud_python_sdk/models/language.py index c9a456f6..cb6d1d1e 100644 --- a/fattureincloud_python_sdk/models/language.py +++ b/fattureincloud_python_sdk/models/language.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/list_archive_categories_response.py b/fattureincloud_python_sdk/models/list_archive_categories_response.py index a0bca4e7..e80a144c 100644 --- a/fattureincloud_python_sdk/models/list_archive_categories_response.py +++ b/fattureincloud_python_sdk/models/list_archive_categories_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/list_archive_documents_response.py b/fattureincloud_python_sdk/models/list_archive_documents_response.py index 4f300c5f..98302ce0 100644 --- a/fattureincloud_python_sdk/models/list_archive_documents_response.py +++ b/fattureincloud_python_sdk/models/list_archive_documents_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -115,9 +115,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict 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 cc6d4a8d..cdba0334 100644 --- a/fattureincloud_python_sdk/models/list_archive_documents_response_page.py +++ b/fattureincloud_python_sdk/models/list_archive_documents_response_page.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -73,9 +73,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/list_cashbook_entries_response.py b/fattureincloud_python_sdk/models/list_cashbook_entries_response.py index 1fb970b7..68b61a4d 100644 --- a/fattureincloud_python_sdk/models/list_cashbook_entries_response.py +++ b/fattureincloud_python_sdk/models/list_cashbook_entries_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -71,9 +71,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/list_cities_response.py b/fattureincloud_python_sdk/models/list_cities_response.py index 72e0dd6b..3283a1cf 100644 --- a/fattureincloud_python_sdk/models/list_cities_response.py +++ b/fattureincloud_python_sdk/models/list_cities_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -71,9 +71,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/list_clients_response.py b/fattureincloud_python_sdk/models/list_clients_response.py index ec45c054..b544a649 100644 --- a/fattureincloud_python_sdk/models/list_clients_response.py +++ b/fattureincloud_python_sdk/models/list_clients_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -117,9 +117,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/list_clients_response_page.py b/fattureincloud_python_sdk/models/list_clients_response_page.py index 84b42b8d..510aa197 100644 --- a/fattureincloud_python_sdk/models/list_clients_response_page.py +++ b/fattureincloud_python_sdk/models/list_clients_response_page.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -73,9 +73,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/list_cost_centers_response.py b/fattureincloud_python_sdk/models/list_cost_centers_response.py index 0309629a..87cf670d 100644 --- a/fattureincloud_python_sdk/models/list_cost_centers_response.py +++ b/fattureincloud_python_sdk/models/list_cost_centers_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/list_countries_response.py b/fattureincloud_python_sdk/models/list_countries_response.py index 241dd5a4..96b77441 100644 --- a/fattureincloud_python_sdk/models/list_countries_response.py +++ b/fattureincloud_python_sdk/models/list_countries_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/list_currencies_response.py b/fattureincloud_python_sdk/models/list_currencies_response.py index 20ee2ddd..8983d759 100644 --- a/fattureincloud_python_sdk/models/list_currencies_response.py +++ b/fattureincloud_python_sdk/models/list_currencies_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -71,9 +71,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict 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 fce027cf..373dde4b 100644 --- a/fattureincloud_python_sdk/models/list_delivery_notes_default_causals_response.py +++ b/fattureincloud_python_sdk/models/list_delivery_notes_default_causals_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/list_detailed_countries_response.py b/fattureincloud_python_sdk/models/list_detailed_countries_response.py index f7dbde4c..bb60e968 100644 --- a/fattureincloud_python_sdk/models/list_detailed_countries_response.py +++ b/fattureincloud_python_sdk/models/list_detailed_countries_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -73,9 +73,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/list_emails_response.py b/fattureincloud_python_sdk/models/list_emails_response.py index 117b2361..a3a71b42 100644 --- a/fattureincloud_python_sdk/models/list_emails_response.py +++ b/fattureincloud_python_sdk/models/list_emails_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -117,9 +117,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/list_emails_response_page.py b/fattureincloud_python_sdk/models/list_emails_response_page.py index 1ee93f06..9ac7e1c7 100644 --- a/fattureincloud_python_sdk/models/list_emails_response_page.py +++ b/fattureincloud_python_sdk/models/list_emails_response_page.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -73,9 +73,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/list_f24_response.py b/fattureincloud_python_sdk/models/list_f24_response.py index c46508f1..c2462054 100644 --- a/fattureincloud_python_sdk/models/list_f24_response.py +++ b/fattureincloud_python_sdk/models/list_f24_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -120,9 +120,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items # override the default output from pydantic by calling `to_dict()` of aggregated_data if self.aggregated_data: 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 fe36e09c..9e2b03ef 100644 --- a/fattureincloud_python_sdk/models/list_f24_response_aggregated_data.py +++ b/fattureincloud_python_sdk/models/list_f24_response_aggregated_data.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/list_f24_response_aggregation.py b/fattureincloud_python_sdk/models/list_f24_response_aggregation.py index 1791ced1..66821937 100644 --- a/fattureincloud_python_sdk/models/list_f24_response_aggregation.py +++ b/fattureincloud_python_sdk/models/list_f24_response_aggregation.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/list_f24_response_page.py b/fattureincloud_python_sdk/models/list_f24_response_page.py index 0311f30f..0248a29a 100644 --- a/fattureincloud_python_sdk/models/list_f24_response_page.py +++ b/fattureincloud_python_sdk/models/list_f24_response_page.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -73,9 +73,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/list_issued_documents_response.py b/fattureincloud_python_sdk/models/list_issued_documents_response.py index 5c6cf159..b5d36adf 100644 --- a/fattureincloud_python_sdk/models/list_issued_documents_response.py +++ b/fattureincloud_python_sdk/models/list_issued_documents_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -117,9 +117,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict 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 de084637..352da605 100644 --- a/fattureincloud_python_sdk/models/list_issued_documents_response_page.py +++ b/fattureincloud_python_sdk/models/list_issued_documents_response_page.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -73,9 +73,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/list_languages_response.py b/fattureincloud_python_sdk/models/list_languages_response.py index 1c2133fc..dc04fec4 100644 --- a/fattureincloud_python_sdk/models/list_languages_response.py +++ b/fattureincloud_python_sdk/models/list_languages_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -71,9 +71,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/list_payment_accounts_response.py b/fattureincloud_python_sdk/models/list_payment_accounts_response.py index a2f38e8e..11c750ce 100644 --- a/fattureincloud_python_sdk/models/list_payment_accounts_response.py +++ b/fattureincloud_python_sdk/models/list_payment_accounts_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -71,9 +71,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/list_payment_methods_response.py b/fattureincloud_python_sdk/models/list_payment_methods_response.py index e9bd25f6..ef836b64 100644 --- a/fattureincloud_python_sdk/models/list_payment_methods_response.py +++ b/fattureincloud_python_sdk/models/list_payment_methods_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -71,9 +71,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/list_product_categories_response.py b/fattureincloud_python_sdk/models/list_product_categories_response.py index 41748011..a2bf345b 100644 --- a/fattureincloud_python_sdk/models/list_product_categories_response.py +++ b/fattureincloud_python_sdk/models/list_product_categories_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/list_products_response.py b/fattureincloud_python_sdk/models/list_products_response.py index 5054f066..d811efef 100644 --- a/fattureincloud_python_sdk/models/list_products_response.py +++ b/fattureincloud_python_sdk/models/list_products_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -117,9 +117,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/list_products_response_page.py b/fattureincloud_python_sdk/models/list_products_response_page.py index 516e3f4d..9c3ee71c 100644 --- a/fattureincloud_python_sdk/models/list_products_response_page.py +++ b/fattureincloud_python_sdk/models/list_products_response_page.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -73,9 +73,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/list_receipts_response.py b/fattureincloud_python_sdk/models/list_receipts_response.py index 2594eb8f..a3dd11f0 100644 --- a/fattureincloud_python_sdk/models/list_receipts_response.py +++ b/fattureincloud_python_sdk/models/list_receipts_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -115,9 +115,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/list_receipts_response_page.py b/fattureincloud_python_sdk/models/list_receipts_response_page.py index 647eb3ca..465a26d7 100644 --- a/fattureincloud_python_sdk/models/list_receipts_response_page.py +++ b/fattureincloud_python_sdk/models/list_receipts_response_page.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -73,9 +73,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict 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 66ff1df1..78335499 100644 --- a/fattureincloud_python_sdk/models/list_received_document_categories_response.py +++ b/fattureincloud_python_sdk/models/list_received_document_categories_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/list_received_documents_response.py b/fattureincloud_python_sdk/models/list_received_documents_response.py index 5e428b1c..09f7f9c5 100644 --- a/fattureincloud_python_sdk/models/list_received_documents_response.py +++ b/fattureincloud_python_sdk/models/list_received_documents_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -115,9 +115,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict 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 3e1a8d37..047dbaba 100644 --- a/fattureincloud_python_sdk/models/list_received_documents_response_page.py +++ b/fattureincloud_python_sdk/models/list_received_documents_response_page.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -73,9 +73,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/list_revenue_centers_response.py b/fattureincloud_python_sdk/models/list_revenue_centers_response.py index b866eb0a..9dd04b17 100644 --- a/fattureincloud_python_sdk/models/list_revenue_centers_response.py +++ b/fattureincloud_python_sdk/models/list_revenue_centers_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/list_suppliers_response.py b/fattureincloud_python_sdk/models/list_suppliers_response.py index ae452f26..5b89ebd9 100644 --- a/fattureincloud_python_sdk/models/list_suppliers_response.py +++ b/fattureincloud_python_sdk/models/list_suppliers_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -117,9 +117,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/list_suppliers_response_page.py b/fattureincloud_python_sdk/models/list_suppliers_response_page.py index feff4fc2..00e00210 100644 --- a/fattureincloud_python_sdk/models/list_suppliers_response_page.py +++ b/fattureincloud_python_sdk/models/list_suppliers_response_page.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -73,9 +73,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/list_templates_response.py b/fattureincloud_python_sdk/models/list_templates_response.py index 3c73a15f..be22f48d 100644 --- a/fattureincloud_python_sdk/models/list_templates_response.py +++ b/fattureincloud_python_sdk/models/list_templates_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -71,9 +71,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict 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 496b64cd..e3be635f 100644 --- a/fattureincloud_python_sdk/models/list_units_of_measure_response.py +++ b/fattureincloud_python_sdk/models/list_units_of_measure_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/list_user_companies_response.py b/fattureincloud_python_sdk/models/list_user_companies_response.py index fce26c3f..213ffc53 100644 --- a/fattureincloud_python_sdk/models/list_user_companies_response.py +++ b/fattureincloud_python_sdk/models/list_user_companies_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 14d7dd61..c943aa8c 100644 --- a/fattureincloud_python_sdk/models/list_user_companies_response_data.py +++ b/fattureincloud_python_sdk/models/list_user_companies_response_data.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -73,9 +73,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in companies (list) _items = [] if self.companies: - for _item in self.companies: - if _item: - _items.append(_item.to_dict()) + for _item_companies in self.companies: + if _item_companies: + _items.append(_item_companies.to_dict()) _dict["companies"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/list_vat_types_response.py b/fattureincloud_python_sdk/models/list_vat_types_response.py index 366afb93..f36f07ff 100644 --- a/fattureincloud_python_sdk/models/list_vat_types_response.py +++ b/fattureincloud_python_sdk/models/list_vat_types_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -71,9 +71,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/list_webhooks_subscriptions_response.py b/fattureincloud_python_sdk/models/list_webhooks_subscriptions_response.py index 7f941131..212192a7 100644 --- a/fattureincloud_python_sdk/models/list_webhooks_subscriptions_response.py +++ b/fattureincloud_python_sdk/models/list_webhooks_subscriptions_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -73,9 +73,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict["data"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/modify_archive_document_request.py b/fattureincloud_python_sdk/models/modify_archive_document_request.py index 51e578a7..53f98081 100644 --- a/fattureincloud_python_sdk/models/modify_archive_document_request.py +++ b/fattureincloud_python_sdk/models/modify_archive_document_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_archive_document_response.py b/fattureincloud_python_sdk/models/modify_archive_document_response.py index 7e6b44b4..ac80066d 100644 --- a/fattureincloud_python_sdk/models/modify_archive_document_response.py +++ b/fattureincloud_python_sdk/models/modify_archive_document_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_cashbook_entry_request.py b/fattureincloud_python_sdk/models/modify_cashbook_entry_request.py index bf413ada..1d873c1f 100644 --- a/fattureincloud_python_sdk/models/modify_cashbook_entry_request.py +++ b/fattureincloud_python_sdk/models/modify_cashbook_entry_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_cashbook_entry_response.py b/fattureincloud_python_sdk/models/modify_cashbook_entry_response.py index 1b2ff32e..b4803abd 100644 --- a/fattureincloud_python_sdk/models/modify_cashbook_entry_response.py +++ b/fattureincloud_python_sdk/models/modify_cashbook_entry_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_client_request.py b/fattureincloud_python_sdk/models/modify_client_request.py index 24d210e0..7947e0ea 100644 --- a/fattureincloud_python_sdk/models/modify_client_request.py +++ b/fattureincloud_python_sdk/models/modify_client_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_client_response.py b/fattureincloud_python_sdk/models/modify_client_response.py index 88983a99..3e43e44d 100644 --- a/fattureincloud_python_sdk/models/modify_client_response.py +++ b/fattureincloud_python_sdk/models/modify_client_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_f24_request.py b/fattureincloud_python_sdk/models/modify_f24_request.py index 89a5ad55..22e88580 100644 --- a/fattureincloud_python_sdk/models/modify_f24_request.py +++ b/fattureincloud_python_sdk/models/modify_f24_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_f24_response.py b/fattureincloud_python_sdk/models/modify_f24_response.py index 3811cc5b..f1513827 100644 --- a/fattureincloud_python_sdk/models/modify_f24_response.py +++ b/fattureincloud_python_sdk/models/modify_f24_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_issued_document_request.py b/fattureincloud_python_sdk/models/modify_issued_document_request.py index 9af02150..addfa4ed 100644 --- a/fattureincloud_python_sdk/models/modify_issued_document_request.py +++ b/fattureincloud_python_sdk/models/modify_issued_document_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_issued_document_response.py b/fattureincloud_python_sdk/models/modify_issued_document_response.py index 23084d5a..31e2aa27 100644 --- a/fattureincloud_python_sdk/models/modify_issued_document_response.py +++ b/fattureincloud_python_sdk/models/modify_issued_document_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_payment_account_request.py b/fattureincloud_python_sdk/models/modify_payment_account_request.py index 5da9da45..2564b2cf 100644 --- a/fattureincloud_python_sdk/models/modify_payment_account_request.py +++ b/fattureincloud_python_sdk/models/modify_payment_account_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_payment_account_response.py b/fattureincloud_python_sdk/models/modify_payment_account_response.py index 24f369de..2a4193b1 100644 --- a/fattureincloud_python_sdk/models/modify_payment_account_response.py +++ b/fattureincloud_python_sdk/models/modify_payment_account_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_payment_method_request.py b/fattureincloud_python_sdk/models/modify_payment_method_request.py index 22e63bc7..ded88007 100644 --- a/fattureincloud_python_sdk/models/modify_payment_method_request.py +++ b/fattureincloud_python_sdk/models/modify_payment_method_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_payment_method_response.py b/fattureincloud_python_sdk/models/modify_payment_method_response.py index 3f2fde40..4802607a 100644 --- a/fattureincloud_python_sdk/models/modify_payment_method_response.py +++ b/fattureincloud_python_sdk/models/modify_payment_method_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_product_request.py b/fattureincloud_python_sdk/models/modify_product_request.py index d7f1cf47..edf75685 100644 --- a/fattureincloud_python_sdk/models/modify_product_request.py +++ b/fattureincloud_python_sdk/models/modify_product_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_product_response.py b/fattureincloud_python_sdk/models/modify_product_response.py index f7010749..6e8db5bc 100644 --- a/fattureincloud_python_sdk/models/modify_product_response.py +++ b/fattureincloud_python_sdk/models/modify_product_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_receipt_request.py b/fattureincloud_python_sdk/models/modify_receipt_request.py index 16ce1327..b6e7feda 100644 --- a/fattureincloud_python_sdk/models/modify_receipt_request.py +++ b/fattureincloud_python_sdk/models/modify_receipt_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_receipt_response.py b/fattureincloud_python_sdk/models/modify_receipt_response.py index 4906fcb9..5f1949f1 100644 --- a/fattureincloud_python_sdk/models/modify_receipt_response.py +++ b/fattureincloud_python_sdk/models/modify_receipt_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_received_document_request.py b/fattureincloud_python_sdk/models/modify_received_document_request.py index fb3df1b2..73fda44b 100644 --- a/fattureincloud_python_sdk/models/modify_received_document_request.py +++ b/fattureincloud_python_sdk/models/modify_received_document_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_received_document_response.py b/fattureincloud_python_sdk/models/modify_received_document_response.py index 1f5a98ab..11d51cb4 100644 --- a/fattureincloud_python_sdk/models/modify_received_document_response.py +++ b/fattureincloud_python_sdk/models/modify_received_document_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_supplier_request.py b/fattureincloud_python_sdk/models/modify_supplier_request.py index 051794eb..7bd39948 100644 --- a/fattureincloud_python_sdk/models/modify_supplier_request.py +++ b/fattureincloud_python_sdk/models/modify_supplier_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_supplier_response.py b/fattureincloud_python_sdk/models/modify_supplier_response.py index d6204fc3..58289a5d 100644 --- a/fattureincloud_python_sdk/models/modify_supplier_response.py +++ b/fattureincloud_python_sdk/models/modify_supplier_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_vat_type_request.py b/fattureincloud_python_sdk/models/modify_vat_type_request.py index ad71a8d1..541a3cb8 100644 --- a/fattureincloud_python_sdk/models/modify_vat_type_request.py +++ b/fattureincloud_python_sdk/models/modify_vat_type_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_vat_type_response.py b/fattureincloud_python_sdk/models/modify_vat_type_response.py index 8d7559c9..0ca41eaf 100644 --- a/fattureincloud_python_sdk/models/modify_vat_type_response.py +++ b/fattureincloud_python_sdk/models/modify_vat_type_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_webhooks_subscription_request.py b/fattureincloud_python_sdk/models/modify_webhooks_subscription_request.py index 37ca7339..4a537bda 100644 --- a/fattureincloud_python_sdk/models/modify_webhooks_subscription_request.py +++ b/fattureincloud_python_sdk/models/modify_webhooks_subscription_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/modify_webhooks_subscription_response.py b/fattureincloud_python_sdk/models/modify_webhooks_subscription_response.py index 13076745..828d081a 100644 --- a/fattureincloud_python_sdk/models/modify_webhooks_subscription_response.py +++ b/fattureincloud_python_sdk/models/modify_webhooks_subscription_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/monthly_total.py b/fattureincloud_python_sdk/models/monthly_total.py index 434e4de4..07820f84 100644 --- a/fattureincloud_python_sdk/models/monthly_total.py +++ b/fattureincloud_python_sdk/models/monthly_total.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/original_document_type.py b/fattureincloud_python_sdk/models/original_document_type.py index df6461a1..8044c610 100644 --- a/fattureincloud_python_sdk/models/original_document_type.py +++ b/fattureincloud_python_sdk/models/original_document_type.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/pagination.py b/fattureincloud_python_sdk/models/pagination.py index ed13eb4d..536c381e 100644 --- a/fattureincloud_python_sdk/models/pagination.py +++ b/fattureincloud_python_sdk/models/pagination.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/payment_account.py b/fattureincloud_python_sdk/models/payment_account.py index fe257738..e8ba6dc1 100644 --- a/fattureincloud_python_sdk/models/payment_account.py +++ b/fattureincloud_python_sdk/models/payment_account.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -32,7 +32,7 @@ class PaymentAccount(BaseModel): id: Optional[StrictInt] = Field(default=None, description="Payment account id") name: Optional[StrictStr] = Field(default=None, description="Payment account name") - type: Optional[PaymentAccountType] = None + 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") @@ -101,7 +101,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: { "id": obj.get("id"), "name": obj.get("name"), - "type": obj.get("type"), + "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"), diff --git a/fattureincloud_python_sdk/models/payment_account_type.py b/fattureincloud_python_sdk/models/payment_account_type.py index 8a1a8361..132e1d90 100644 --- a/fattureincloud_python_sdk/models/payment_account_type.py +++ b/fattureincloud_python_sdk/models/payment_account_type.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/payment_method.py b/fattureincloud_python_sdk/models/payment_method.py index ff1b77e1..c284e2fe 100644 --- a/fattureincloud_python_sdk/models/payment_method.py +++ b/fattureincloud_python_sdk/models/payment_method.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -35,7 +35,7 @@ class PaymentMethod(BaseModel): id: Optional[StrictInt] = Field(default=None, description="Payment method id") name: Optional[StrictStr] = Field(default=None, description="Payment method name") - type: Optional[PaymentMethodType] = None + type: Optional[PaymentMethodType] = PaymentMethodType.STANDARD is_default: Optional[StrictBool] = Field( default=None, description="Payment method is default" ) @@ -111,9 +111,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in details (list) _items = [] if self.details: - for _item in self.details: - if _item: - _items.append(_item.to_dict()) + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) _dict["details"] = _items return _dict @@ -130,7 +130,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: { "id": obj.get("id"), "name": obj.get("name"), - "type": obj.get("type"), + "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"]) diff --git a/fattureincloud_python_sdk/models/payment_method_details.py b/fattureincloud_python_sdk/models/payment_method_details.py index 00022c7b..ce15aedb 100644 --- a/fattureincloud_python_sdk/models/payment_method_details.py +++ b/fattureincloud_python_sdk/models/payment_method_details.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/payment_method_type.py b/fattureincloud_python_sdk/models/payment_method_type.py index b4f470be..dcf907d6 100644 --- a/fattureincloud_python_sdk/models/payment_method_type.py +++ b/fattureincloud_python_sdk/models/payment_method_type.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/payment_terms_type.py b/fattureincloud_python_sdk/models/payment_terms_type.py index 8409515b..ce7bc87e 100644 --- a/fattureincloud_python_sdk/models/payment_terms_type.py +++ b/fattureincloud_python_sdk/models/payment_terms_type.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/permission_level.py b/fattureincloud_python_sdk/models/permission_level.py index e4fde0e9..ed1a1449 100644 --- a/fattureincloud_python_sdk/models/permission_level.py +++ b/fattureincloud_python_sdk/models/permission_level.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/permissions.py b/fattureincloud_python_sdk/models/permissions.py index aa09d43c..bce09a16 100644 --- a/fattureincloud_python_sdk/models/permissions.py +++ b/fattureincloud_python_sdk/models/permissions.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 5a03bd9c..9d299561 100644 --- a/fattureincloud_python_sdk/models/permissions_fic_issued_documents_detailed.py +++ b/fattureincloud_python_sdk/models/permissions_fic_issued_documents_detailed.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/product.py b/fattureincloud_python_sdk/models/product.py index e9eed58d..6e743020 100644 --- a/fattureincloud_python_sdk/models/product.py +++ b/fattureincloud_python_sdk/models/product.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/receipt.py b/fattureincloud_python_sdk/models/receipt.py index 8e1f0133..462daa69 100644 --- a/fattureincloud_python_sdk/models/receipt.py +++ b/fattureincloud_python_sdk/models/receipt.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -141,9 +141,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in items_list (list) _items = [] if self.items_list: - for _item in self.items_list: - if _item: - _items.append(_item.to_dict()) + for _item_items_list in self.items_list: + if _item_items_list: + _items.append(_item_items_list.to_dict()) _dict["items_list"] = _items return _dict diff --git a/fattureincloud_python_sdk/models/receipt_items_list_item.py b/fattureincloud_python_sdk/models/receipt_items_list_item.py index 494c915b..bad22800 100644 --- a/fattureincloud_python_sdk/models/receipt_items_list_item.py +++ b/fattureincloud_python_sdk/models/receipt_items_list_item.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/receipt_pre_create_info.py b/fattureincloud_python_sdk/models/receipt_pre_create_info.py index 985a1033..65da763c 100644 --- a/fattureincloud_python_sdk/models/receipt_pre_create_info.py +++ b/fattureincloud_python_sdk/models/receipt_pre_create_info.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -96,16 +96,16 @@ def to_dict(self) -> Dict[str, Any]: # 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 in self.payment_accounts_list: - if _item: - _items.append(_item.to_dict()) + 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 # 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 in self.vat_types_list: - if _item: - _items.append(_item.to_dict()) + 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 return _dict diff --git a/fattureincloud_python_sdk/models/receipt_type.py b/fattureincloud_python_sdk/models/receipt_type.py index 61eede5f..f1b097c4 100644 --- a/fattureincloud_python_sdk/models/receipt_type.py +++ b/fattureincloud_python_sdk/models/receipt_type.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/received_document.py b/fattureincloud_python_sdk/models/received_document.py index 08059313..a7b98eff 100644 --- a/fattureincloud_python_sdk/models/received_document.py +++ b/fattureincloud_python_sdk/models/received_document.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -48,7 +48,7 @@ class ReceivedDocument(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Received document id") - type: Optional[ReceivedDocumentType] = None + type: Optional[ReceivedDocumentType] = ReceivedDocumentType.EXPENSE entity: Optional[Entity] = None var_date: Optional[date] = Field( default=None, @@ -222,16 +222,16 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in items_list (list) _items = [] if self.items_list: - for _item in self.items_list: - if _item: - _items.append(_item.to_dict()) + for _item_items_list in self.items_list: + if _item_items_list: + _items.append(_item_items_list.to_dict()) _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 in self.payments_list: - if _item: - _items.append(_item.to_dict()) + for _item_payments_list in self.payments_list: + if _item_payments_list: + _items.append(_item_payments_list.to_dict()) _dict["payments_list"] = _items return _dict @@ -247,7 +247,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { "id": obj.get("id"), - "type": obj.get("type"), + "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 diff --git a/fattureincloud_python_sdk/models/received_document_info.py b/fattureincloud_python_sdk/models/received_document_info.py index 237925a8..c3394461 100644 --- a/fattureincloud_python_sdk/models/received_document_info.py +++ b/fattureincloud_python_sdk/models/received_document_info.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -111,23 +111,23 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in currencies_list (list) _items = [] if self.currencies_list: - for _item in self.currencies_list: - if _item: - _items.append(_item.to_dict()) + for _item_currencies_list in self.currencies_list: + if _item_currencies_list: + _items.append(_item_currencies_list.to_dict()) _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 in self.payment_accounts_list: - if _item: - _items.append(_item.to_dict()) + 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 # 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 in self.vat_types_list: - if _item: - _items.append(_item.to_dict()) + 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 return _dict 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 32799385..f5f7d718 100644 --- a/fattureincloud_python_sdk/models/received_document_info_default_values.py +++ b/fattureincloud_python_sdk/models/received_document_info_default_values.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 021d9c4f..d85ec161 100644 --- a/fattureincloud_python_sdk/models/received_document_info_items_default_values.py +++ b/fattureincloud_python_sdk/models/received_document_info_items_default_values.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 5c2af779..104e6585 100644 --- a/fattureincloud_python_sdk/models/received_document_items_list_item.py +++ b/fattureincloud_python_sdk/models/received_document_items_list_item.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 07541c06..ed44425e 100644 --- a/fattureincloud_python_sdk/models/received_document_payments_list_item.py +++ b/fattureincloud_python_sdk/models/received_document_payments_list_item.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 e60aa93a..78535db3 100644 --- a/fattureincloud_python_sdk/models/received_document_payments_list_item_payment_terms.py +++ b/fattureincloud_python_sdk/models/received_document_payments_list_item_payment_terms.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -34,7 +34,7 @@ class ReceivedDocumentPaymentsListItemPaymentTerms(BaseModel): default=None, description="Received document payment number of days by which the payment must be made", ) - type: Optional[PaymentTermsType] = None + type: Optional[PaymentTermsType] = PaymentTermsType.STANDARD __properties: ClassVar[List[str]] = ["days", "type"] model_config = ConfigDict( @@ -85,5 +85,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({"days": obj.get("days"), "type": obj.get("type")}) + _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 4fbda5ed..be7c458e 100644 --- a/fattureincloud_python_sdk/models/received_document_totals.py +++ b/fattureincloud_python_sdk/models/received_document_totals.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/received_document_type.py b/fattureincloud_python_sdk/models/received_document_type.py index 6ba17da9..72d2514e 100644 --- a/fattureincloud_python_sdk/models/received_document_type.py +++ b/fattureincloud_python_sdk/models/received_document_type.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -30,6 +30,7 @@ class ReceivedDocumentType(str, Enum): 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: diff --git a/fattureincloud_python_sdk/models/schedule_email_request.py b/fattureincloud_python_sdk/models/schedule_email_request.py index bba83af0..9ef53781 100644 --- a/fattureincloud_python_sdk/models/schedule_email_request.py +++ b/fattureincloud_python_sdk/models/schedule_email_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/send_e_invoice_request.py b/fattureincloud_python_sdk/models/send_e_invoice_request.py index a558e17a..aad18e30 100644 --- a/fattureincloud_python_sdk/models/send_e_invoice_request.py +++ b/fattureincloud_python_sdk/models/send_e_invoice_request.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 2c77ae8b..1d6657e3 100644 --- a/fattureincloud_python_sdk/models/send_e_invoice_request_data.py +++ b/fattureincloud_python_sdk/models/send_e_invoice_request_data.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 c42f44d8..8a6a955f 100644 --- a/fattureincloud_python_sdk/models/send_e_invoice_request_options.py +++ b/fattureincloud_python_sdk/models/send_e_invoice_request_options.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/send_e_invoice_response.py b/fattureincloud_python_sdk/models/send_e_invoice_response.py index 9aae7831..43c370e5 100644 --- a/fattureincloud_python_sdk/models/send_e_invoice_response.py +++ b/fattureincloud_python_sdk/models/send_e_invoice_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 780694e3..a600675b 100644 --- a/fattureincloud_python_sdk/models/send_e_invoice_response_data.py +++ b/fattureincloud_python_sdk/models/send_e_invoice_response_data.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/sender_email.py b/fattureincloud_python_sdk/models/sender_email.py index 12cb05c0..3405c98b 100644 --- a/fattureincloud_python_sdk/models/sender_email.py +++ b/fattureincloud_python_sdk/models/sender_email.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/show_totals_mode.py b/fattureincloud_python_sdk/models/show_totals_mode.py index 84f56341..c3e2f8ff 100644 --- a/fattureincloud_python_sdk/models/show_totals_mode.py +++ b/fattureincloud_python_sdk/models/show_totals_mode.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/supplier.py b/fattureincloud_python_sdk/models/supplier.py index 71c00447..bae6ff40 100644 --- a/fattureincloud_python_sdk/models/supplier.py +++ b/fattureincloud_python_sdk/models/supplier.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/supplier_type.py b/fattureincloud_python_sdk/models/supplier_type.py index 5132b554..b478831e 100644 --- a/fattureincloud_python_sdk/models/supplier_type.py +++ b/fattureincloud_python_sdk/models/supplier_type.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/tax_profile.py b/fattureincloud_python_sdk/models/tax_profile.py new file mode 100644 index 00000000..a43bbdd4 --- /dev/null +++ b/fattureincloud_python_sdk/models/tax_profile.py @@ -0,0 +1,206 @@ +# 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.2 + 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, + 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" + ) + 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" + ) + 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", + ] + + 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 TaxProfile 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 default_vat + if self.default_vat: + _dict["default_vat"] = self.default_vat.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TaxProfile from a dict""" + if obj is None: + return None + + 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 + ), + } + ) + return _obj diff --git a/fattureincloud_python_sdk/models/transform_issued_document_response.py b/fattureincloud_python_sdk/models/transform_issued_document_response.py index 12792624..ed32e565 100644 --- a/fattureincloud_python_sdk/models/transform_issued_document_response.py +++ b/fattureincloud_python_sdk/models/transform_issued_document_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/upload_archive_attachment_response.py b/fattureincloud_python_sdk/models/upload_archive_attachment_response.py index 9d1f463d..897f181b 100644 --- a/fattureincloud_python_sdk/models/upload_archive_attachment_response.py +++ b/fattureincloud_python_sdk/models/upload_archive_attachment_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/upload_f24_attachment_response.py b/fattureincloud_python_sdk/models/upload_f24_attachment_response.py index d338a763..8de89a2e 100644 --- a/fattureincloud_python_sdk/models/upload_f24_attachment_response.py +++ b/fattureincloud_python_sdk/models/upload_f24_attachment_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 921abb57..69e4ad2a 100644 --- a/fattureincloud_python_sdk/models/upload_issued_document_attachment_response.py +++ b/fattureincloud_python_sdk/models/upload_issued_document_attachment_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 78a42f6c..62688efc 100644 --- a/fattureincloud_python_sdk/models/upload_received_document_attachment_response.py +++ b/fattureincloud_python_sdk/models/upload_received_document_attachment_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/user.py b/fattureincloud_python_sdk/models/user.py index 58a793ff..5387e637 100644 --- a/fattureincloud_python_sdk/models/user.py +++ b/fattureincloud_python_sdk/models/user.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/user_company_role.py b/fattureincloud_python_sdk/models/user_company_role.py index 95bf9cd6..d7c51064 100644 --- a/fattureincloud_python_sdk/models/user_company_role.py +++ b/fattureincloud_python_sdk/models/user_company_role.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/vat_item.py b/fattureincloud_python_sdk/models/vat_item.py index 2bc4ce36..8dd98c6a 100644 --- a/fattureincloud_python_sdk/models/vat_item.py +++ b/fattureincloud_python_sdk/models/vat_item.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/vat_kind.py b/fattureincloud_python_sdk/models/vat_kind.py index 9269ecc5..1abdaba7 100644 --- a/fattureincloud_python_sdk/models/vat_kind.py +++ b/fattureincloud_python_sdk/models/vat_kind.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -27,7 +27,6 @@ class VatKind(str, Enum): """ allowed enum values """ - NULL = "null" I = "I" D = "D" S = "S" diff --git a/fattureincloud_python_sdk/models/vat_type.py b/fattureincloud_python_sdk/models/vat_type.py index 0d761390..50208719 100644 --- a/fattureincloud_python_sdk/models/vat_type.py +++ b/fattureincloud_python_sdk/models/vat_type.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -62,6 +62,9 @@ class VatType(BaseModel): 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", @@ -72,6 +75,7 @@ class VatType(BaseModel): "ei_description", "editable", "is_disabled", + "default", ] model_config = ConfigDict( @@ -138,6 +142,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "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 d6f232f3..e608de5f 100644 --- a/fattureincloud_python_sdk/models/verify_e_invoice_xml_error_response.py +++ b/fattureincloud_python_sdk/models/verify_e_invoice_xml_error_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 f4788c0e..24e67a53 100644 --- a/fattureincloud_python_sdk/models/verify_e_invoice_xml_error_response_error.py +++ b/fattureincloud_python_sdk/models/verify_e_invoice_xml_error_response_error.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 761825fc..6bdbc163 100644 --- a/fattureincloud_python_sdk/models/verify_e_invoice_xml_error_response_error_validation_result.py +++ b/fattureincloud_python_sdk/models/verify_e_invoice_xml_error_response_error_validation_result.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 6b3807be..51c56633 100644 --- a/fattureincloud_python_sdk/models/verify_e_invoice_xml_error_response_extra.py +++ b/fattureincloud_python_sdk/models/verify_e_invoice_xml_error_response_extra.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 7ebe135d..3a697a52 100644 --- a/fattureincloud_python_sdk/models/verify_e_invoice_xml_response.py +++ b/fattureincloud_python_sdk/models/verify_e_invoice_xml_response.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) 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 a6d80a7b..656d1b23 100644 --- a/fattureincloud_python_sdk/models/verify_e_invoice_xml_response_data.py +++ b/fattureincloud_python_sdk/models/verify_e_invoice_xml_response_data.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/webhooks_subscription.py b/fattureincloud_python_sdk/models/webhooks_subscription.py index c8b25693..9a2a6914 100644 --- a/fattureincloud_python_sdk/models/webhooks_subscription.py +++ b/fattureincloud_python_sdk/models/webhooks_subscription.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/webhooks_subscription_config.py b/fattureincloud_python_sdk/models/webhooks_subscription_config.py index 495c8e8b..d68dd334 100644 --- a/fattureincloud_python_sdk/models/webhooks_subscription_config.py +++ b/fattureincloud_python_sdk/models/webhooks_subscription_config.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/models/webhooks_subscription_mapping.py b/fattureincloud_python_sdk/models/webhooks_subscription_mapping.py index 49ff3d24..7a636d63 100644 --- a/fattureincloud_python_sdk/models/webhooks_subscription_mapping.py +++ b/fattureincloud_python_sdk/models/webhooks_subscription_mapping.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/fattureincloud_python_sdk/oauth2/oauth2.py b/fattureincloud_python_sdk/oauth2/oauth2.py index 7ae1595b..2c9ae8c6 100644 --- a/fattureincloud_python_sdk/oauth2/oauth2.py +++ b/fattureincloud_python_sdk/oauth2/oauth2.py @@ -15,7 +15,7 @@ def __init__( self._http = urllib3.PoolManager() self.client_id = client_id self.base_uri = base_uri - + def execute_post(self, uri: str, data: Dict[str, str]): body = json.dumps(data).encode("utf-8") @@ -24,9 +24,7 @@ def execute_post(self, uri: str, data: Dict[str, str]): ) res = json.loads(resp.data.decode("utf-8")) if resp.status != 200: - raise OAuth2Error( - resp.status, res["error"], res["error_description"] - ) + raise OAuth2Error(resp.status, res["error"], res["error_description"]) return res @staticmethod @@ -36,6 +34,7 @@ def _get_scope_str(scopes: Iterable[Scope]): return " ".join(map(lambda x: x.value, scopes)) + class OAuth2AuthorizationCodeManager(OAuth2Manager): def __init__( self, @@ -108,7 +107,8 @@ def refresh_token(self, refresh_token: str): res["refresh_token"], res["expires_in"], ) - + + class OAuth2DeviceCodeManager(OAuth2Manager): def __init__( self, @@ -171,14 +171,22 @@ def refresh_token(self, refresh_token: str): res["expires_in"], ) + class OAuth2AuthorizationCodeParams: def __init__(self, authorization_code: str, state: str): self.authorization_code = authorization_code self.state = state + class OAuth2DeviceCodeResponse: def __init__( - self, device_code: str, user_code: str, scope: Dict[str, str], verification_uri: str, interval: int, expires_in: int + self, + device_code: str, + user_code: str, + scope: Dict[str, str], + verification_uri: str, + interval: int, + expires_in: int, ): self.device_code = device_code self.user_code = user_code @@ -187,6 +195,7 @@ def __init__( self.interval = interval self.expires_in = expires_in + class OAuth2TokenResponse: def __init__( self, token_type: str, access_token: str, refresh_token: str, expires_in: int diff --git a/fattureincloud_python_sdk/rest.py b/fattureincloud_python_sdk/rest.py index 7e44b497..b5d8f335 100644 --- a/fattureincloud_python_sdk/rest.py +++ b/fattureincloud_python_sdk/rest.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -212,7 +212,9 @@ def request( headers=headers, preload_content=False, ) - elif headers["Content-Type"] == "text/plain" 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, diff --git a/pyproject.toml b/pyproject.toml index fdb00b86..46aecdac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "fattureincloud_python_sdk" -version = "2.1.0" +version = "2.1.1" description = "Fatture in Cloud API v2 - API Reference" authors = ["Fatture in Cloud "] license = "MIT" @@ -10,19 +10,20 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "Fatture in Cloud API v2 - API Refer include = ["fattureincloud_python_sdk/py.typed"] [tool.poetry.dependencies] -python = "^3.7" +python = "^3.8" -urllib3 = ">= 1.25.3" -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" [tool.poetry.dev-dependencies] -pytest = ">=7.2.1" -tox = ">=3.9.0" -flake8 = ">=4.0.0" -types-python-dateutil = ">=2.8.19.14" -mypy = "1.4.1" +pytest = ">= 7.2.1" +pytest-cov = ">= 2.8.1" +tox = ">= 3.9.0" +flake8 = ">= 4.0.0" +types-python-dateutil = ">= 2.8.19.14" +mypy = ">= 1.5" [build-system] diff --git a/requirements.txt b/requirements.txt index 68450a4a..7702b503 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,4 @@ -python_dateutil >= 2.5.3 -setuptools >= 21.0.0 -urllib3 >= 1.26.8, < 2.1.0 +urllib3 >= 1.26.8, < 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 c4668f54..d02565a7 100644 --- a/sdk-version.yaml +++ b/sdk-version.yaml @@ -1,2 +1,2 @@ info: - version: 2.1.0 + version: 2.1.1 diff --git a/setup.py b/setup.py index 825c6af1..6d275068 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. - The version of the OpenAPI document: 2.1.0 + The version of the OpenAPI document: 2.1.2 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,11 +22,11 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "fattureincloud-python-sdk" -VERSION = "2.1.0" -PYTHON_REQUIRES = ">=3.7" +VERSION = "2.1.1" +PYTHON_REQUIRES = ">= 3.7" REQUIRES = [ - "urllib3 >= 1.26.8, < 2.1.0", - "python-dateutil", + "urllib3 >= 1.26.8, < 3.0.0", + "python-dateutil >= 2.8.2", "pydantic >= 2", "typing-extensions >= 4.7.1", ] diff --git a/test-requirements.txt b/test-requirements.txt index 8e6d8cb1..e98555c1 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,5 +1,6 @@ -pytest~=7.1.3 -pytest-cov>=2.8.1 -pytest-randomly>=3.12.0 -mypy>=1.4.1 -types-python-dateutil>=2.8.19 +pytest >= 7.2.1 +pytest-cov >= 2.8.1 +tox >= 3.9.0 +flake8 >= 4.0.0 +types-python-dateutil >= 2.8.19.14 +mypy >= 1.5 diff --git a/test/test_cashbook_api.py b/test/test_cashbook_api.py index d5d96e64..8795a0c4 100644 --- a/test/test_cashbook_api.py +++ b/test/test_cashbook_api.py @@ -54,7 +54,7 @@ def tearDown(self): def test_create_cashbook_entry(self): resp = { "status": 200, - "data": b'{"data": {"id": "1", "date": "2022-02-02", "description": "description", "kind": "cashbook", "type": "in", "entity_name": "name", "document": {"id": 1, "path": "/path", "type": "doc"}, "amount_in": 10.0, "payment_account_in": {"id": 1, "name": "banca"}}}', + "data": b'{"data": {"id": "1", "date": "2022-02-02", "description": "description", "kind": "cashbook", "type": "in", "entity_name": "name", "document": {"id": 1, "path": "/path", "type": "doc"}, "amount_in": 10.0, "payment_account_in": {"id": 1, "name": "banca", "type": "standard"}}}', "reason": "OK", } @@ -98,7 +98,7 @@ def test_delete_cashbook_entry(self): def test_get_cashbook_entry(self): resp = { "status": 200, - "data": b'{"data": {"id": "1", "date": "2022-02-02", "description": "description", "kind": "cashbook", "type": "in", "entity_name": "name", "document": {"id": 1, "path": "/path", "type": "doc"}, "amount_in": 10.0, "payment_account_in": {"id": 1, "name": "banca"}}}', + "data": b'{"data": {"id": "1", "date": "2022-02-02", "description": "description", "kind": "cashbook", "type": "in", "entity_name": "name", "document": {"id": 1, "path": "/path", "type": "doc"}, "amount_in": 10.0, "payment_account_in": {"id": 1, "name": "banca", "type": "standard"}}}', "reason": "OK", } @@ -129,7 +129,7 @@ def test_get_cashbook_entry(self): def test_list_cashbook_entries(self): resp = { "status": 200, - "data": b'{"data": [{"id": "1", "date": "2022-02-02", "description": "description", "kind": "cashbook", "type": "in", "entity_name": "name", "document": {"id": 1, "path": "/path", "type": "doc"}, "amount_in": 10.0, "payment_account_in": {"id": 1, "name": "banca"}}], "current_page": 10, "first_page_url": "http://url.com", "last_page": 10, "last_page_url": "http://url.com", "next_page_url": "http://url.com", "path": "http://url.com", "per_page": 10, "prev_page_url": "http://url.com", "to": 10, "total": 10}', + "data": b'{"data": [{"id": "1", "date": "2022-02-02", "description": "description", "kind": "cashbook", "type": "in", "entity_name": "name", "document": {"id": 1, "path": "/path", "type": "doc"}, "amount_in": 10.0, "payment_account_in": {"id": 1, "name": "banca", "type": "standard"}}], "current_page": 10, "first_page_url": "http://url.com", "last_page": 10, "last_page_url": "http://url.com", "next_page_url": "http://url.com", "path": "http://url.com", "per_page": 10, "prev_page_url": "http://url.com", "to": 10, "total": 10}', "reason": "OK", } @@ -172,7 +172,7 @@ def test_list_cashbook_entries(self): def test_modify_cashbook_entry(self): resp = { "status": 200, - "data": b'{"data": {"id": "1", "date": "2022-02-02", "description": "description", "kind": "cashbook", "type": "in", "entity_name": "name", "document": {"id": 1, "path": "/path", "type": "doc"}, "amount_in": 10.0, "payment_account_in": {"id": 1, "name": "banca"}}}', + "data": b'{"data": {"id": "1", "date": "2022-02-02", "description": "description", "kind": "cashbook", "type": "in", "entity_name": "name", "document": {"id": 1, "path": "/path", "type": "doc"}, "amount_in": 10.0, "payment_account_in": {"id": 1, "name": "banca", "type": "standard"}}}', "reason": "OK", } diff --git a/test/test_cashbook_entry.py b/test/test_cashbook_entry.py index 1354ebcf..c2c7702f 100644 --- a/test/test_cashbook_entry.py +++ b/test/test_cashbook_entry.py @@ -54,7 +54,7 @@ def testCashbookEntry(self): amount_out=0.0, payment_account_out=PaymentAccount(id=1, name="banca"), ) - expected_json = '{"id": "1", "date": "2022-02-02", "description": "description", "kind": "cashbook", "type": "in", "entity_name": "name", "document": {"id": 1, "type": "doc", "path": "/path"}, "amount_in": 10.0, "payment_account_in": {"id": 1, "name": "banca"}, "amount_out": 0.0, "payment_account_out": {"id": 1, "name": "banca"}}' + expected_json = '{"id": "1", "date": "2022-02-02", "description": "description", "kind": "cashbook", "type": "in", "entity_name": "name", "document": {"id": 1, "type": "doc", "path": "/path"}, "amount_in": 10.0, "payment_account_in": {"id": 1, "name": "banca", "type": "standard"}, "amount_out": 0.0, "payment_account_out": {"id": 1, "name": "banca", "type": "standard"}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_create_cashbook_entry_request.py b/test/test_create_cashbook_entry_request.py index 04091442..3abc7848 100644 --- a/test/test_create_cashbook_entry_request.py +++ b/test/test_create_cashbook_entry_request.py @@ -53,7 +53,7 @@ def testCreateCashbookEntryRequest(self): payment_account_in=PaymentAccount(id=1, name="banca"), ) ) - expected_json = '{"data": {"id": "1", "date": "2022-02-02", "description": "description", "kind": "cashbook", "type": "in", "entity_name": "name", "document": {"id": 1, "type": "doc", "path": "/path"}, "amount_in": 10.0, "payment_account_in": {"id": 1, "name": "banca"}}}' + expected_json = '{"data": {"id": "1", "date": "2022-02-02", "description": "description", "kind": "cashbook", "type": "in", "entity_name": "name", "document": {"id": 1, "type": "doc", "path": "/path"}, "amount_in": 10.0, "payment_account_in": {"id": 1, "name": "banca", "type": "standard"}}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_create_cashbook_entry_response.py b/test/test_create_cashbook_entry_response.py index c14fd3ad..fe8fb72c 100644 --- a/test/test_create_cashbook_entry_response.py +++ b/test/test_create_cashbook_entry_response.py @@ -55,7 +55,7 @@ def testCreateCashbookEntryResponse(self): payment_account_out=PaymentAccount(id=1, name="banca"), ) ) - expected_json = '{"data": {"id": "1", "date": "2022-02-02", "description": "description", "kind": "cashbook", "type": "in", "entity_name": "name", "document": {"id": 1, "type": "doc", "path": "/path"}, "amount_in": 10.0, "payment_account_in": {"id": 1, "name": "banca"}, "amount_out": 0.0, "payment_account_out": {"id": 1, "name": "banca"}}}' + expected_json = '{"data": {"id": "1", "date": "2022-02-02", "description": "description", "kind": "cashbook", "type": "in", "entity_name": "name", "document": {"id": 1, "type": "doc", "path": "/path"}, "amount_in": 10.0, "payment_account_in": {"id": 1, "name": "banca", "type": "standard"}, "amount_out": 0.0, "payment_account_out": {"id": 1, "name": "banca", "type": "standard"}}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_create_issued_document_request.py b/test/test_create_issued_document_request.py index 2d138ca8..e32983c8 100644 --- a/test/test_create_issued_document_request.py +++ b/test/test_create_issued_document_request.py @@ -58,7 +58,7 @@ def testCreateIssuedDocumentRequest(self): amount_global_cassa_taxable=3.14, ) ) - expected_json = '{"data": {"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14}}' + expected_json = '{"data": {"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14, "show_totals": "all"}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_create_issued_document_response.py b/test/test_create_issued_document_response.py index a31895b3..65dca141 100644 --- a/test/test_create_issued_document_response.py +++ b/test/test_create_issued_document_response.py @@ -58,7 +58,7 @@ def testCreateIssuedDocumentResponse(self): amount_global_cassa_taxable=3.14, ) ) - expected_json = '{"data": {"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14}}' + expected_json = '{"data": {"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14, "show_totals": "all"}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_create_received_document_request.py b/test/test_create_received_document_request.py index f1b264f5..c7109794 100644 --- a/test/test_create_received_document_request.py +++ b/test/test_create_received_document_request.py @@ -100,7 +100,7 @@ def testCreateReceivedDocumentRequest(self): ], ), ) - expected_json = '{"pending_id": 1, "data": {"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}}' + expected_json = '{"pending_id": 1, "data": {"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example", "default_payment_terms_type": "standard"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_create_received_document_response.py b/test/test_create_received_document_response.py index f50e2980..febf2790 100644 --- a/test/test_create_received_document_response.py +++ b/test/test_create_received_document_response.py @@ -90,7 +90,7 @@ def testCreateReceivedDocumentResponse(self): ], ) ) - expected_json = '{"data": {"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}}' + expected_json = '{"data": {"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example", "default_payment_terms_type": "standard"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_email.py b/test/test_email.py index 8ae71745..c5a7641e 100644 --- a/test/test_email.py +++ b/test/test_email.py @@ -39,9 +39,7 @@ def testEmail(self): model = Email( id=1, status=EmailStatus("sent"), - sent_date=datetime.datetime.strptime( - "2022-07-17 13:53:12", "%Y-%m-%d %H:%M:%S" - ), + sent_date="2022-07-17 13:53:12", errors_count=0, error_log="", from_email="test@mail.it", @@ -58,7 +56,7 @@ def testEmail(self): kind="Fatture", attachments=[], ) - expected_json = '{"id": 1, "status": "sent", "sent_date": "2022-07-17T13:53:12", "errors_count": 0, "error_log": "", "from_email": "test@mail.it", "from_name": "Test mail", "to_email": "mail@test.it", "to_name": "Mario", "subject": "Test", "content": "Test send email", "copy_to": "", "recipient_status": "unknown", "recipient_date": "2022-07-17T13:53:12", "kind": "Fatture", "attachments": []}' + expected_json = '{"id": 1, "status": "sent", "sent_date": "2022-07-17 13:53:12", "errors_count": 0, "error_log": "", "from_email": "test@mail.it", "from_name": "Test mail", "to_email": "mail@test.it", "to_name": "Mario", "subject": "Test", "content": "Test send email", "copy_to": "", "recipient_status": "unknown", "recipient_date": "2022-07-17T13:53:12", "kind": "Fatture", "attachments": []}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_emails_api.py b/test/test_emails_api.py index b87409d7..d1217ac7 100644 --- a/test/test_emails_api.py +++ b/test/test_emails_api.py @@ -32,7 +32,7 @@ def tearDown(self): def test_list_emails(self): resp = { "status": 200, - "data": b'{"data": [{"id": 1, "status": "sent", "sent_date": "2022-07-17T13:53:12", "errors_count": 0, "error_log": "", "from_email": "test@mail.it", "from_name": "Test mail", "to_email": "mail@test.it", "to_name": "Mario", "subject": "Test", "content": "Test send email", "copy_to": "", "recipient_status": "unknown", "recipient_date": "2022-07-17T13:53:12", "kind": "Fatture", "attachments": []}, {"id": 2, "status": "sent", "sent_date": "2022-07-17T13:53:12", "errors_count": 0, "error_log": "", "from_email": "test@mail.it", "from_name": "Test mail", "to_email": "mail@test.it", "to_name": "Mario", "subject": "Test", "content": "Test send email", "copy_to": "", "recipient_status": "unknown", "recipient_date": "2022-07-17T13:53:12", "kind": "Fatture", "attachments": []}], "current_page": 10, "first_page_url": "http://url.com", "last_page": 10, "last_page_url": "http://url.com", "next_page_url": "http://url.com", "path": "http://url.com", "per_page": 10, "prev_page_url": "http://url.com", "to": 10, "total": 10}', + "data": b'{"data": [{"id": 1, "status": "sent", "sent_date": "2022-07-17 13:53:12", "errors_count": 0, "error_log": "", "from_email": "test@mail.it", "from_name": "Test mail", "to_email": "mail@test.it", "to_name": "Mario", "subject": "Test", "content": "Test send email", "copy_to": "", "recipient_status": "unknown", "recipient_date": "2022-07-17T13:53:12", "kind": "Fatture", "attachments": []}, {"id": 2, "status": "sent", "sent_date": "2022-07-17 13:53:12", "errors_count": 0, "error_log": "", "from_email": "test@mail.it", "from_name": "Test mail", "to_email": "mail@test.it", "to_name": "Mario", "subject": "Test", "content": "Test send email", "copy_to": "", "recipient_status": "unknown", "recipient_date": "2022-07-17T13:53:12", "kind": "Fatture", "attachments": []}], "current_page": 10, "first_page_url": "http://url.com", "last_page": 10, "last_page_url": "http://url.com", "next_page_url": "http://url.com", "path": "http://url.com", "per_page": 10, "prev_page_url": "http://url.com", "to": 10, "total": 10}', "reason": "OK", } @@ -48,9 +48,7 @@ def test_list_emails(self): Email( id=2, status=EmailStatus("sent"), - sent_date=datetime.datetime.strptime( - "2022-07-17 13:53:12", "%Y-%m-%d %H:%M:%S" - ), + sent_date="2022-07-17 13:53:12", errors_count=0, error_log="", from_email="test@mail.it", @@ -70,9 +68,7 @@ def test_list_emails(self): Email( id=2, status=EmailStatus("sent"), - sent_date=datetime.datetime.strptime( - "2022-07-17 13:53:12", "%Y-%m-%d %H:%M:%S" - ), + sent_date="2022-07-17 13:53:12", errors_count=0, error_log="", from_email="test@mail.it", diff --git a/test/test_get_cashbook_entry_response.py b/test/test_get_cashbook_entry_response.py index f8ef4ec9..d2f5ab6e 100644 --- a/test/test_get_cashbook_entry_response.py +++ b/test/test_get_cashbook_entry_response.py @@ -53,7 +53,7 @@ def testGetCashbookEntryResponse(self): payment_account_in=PaymentAccount(id=1, name="banca"), ) ) - expected_json = '{"data": {"id": "1", "date": "2022-02-02", "description": "description", "kind": "cashbook", "type": "in", "entity_name": "name", "document": {"id": 1, "type": "doc", "path": "/path"}, "amount_in": 10.0, "payment_account_in": {"id": 1, "name": "banca"}}}' + expected_json = '{"data": {"id": "1", "date": "2022-02-02", "description": "description", "kind": "cashbook", "type": "in", "entity_name": "name", "document": {"id": 1, "type": "doc", "path": "/path"}, "amount_in": 10.0, "payment_account_in": {"id": 1, "name": "banca", "type": "standard"}}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_get_existing_issued_document_totals_request.py b/test/test_get_existing_issued_document_totals_request.py index 8eb1ebc1..89b5ea65 100644 --- a/test/test_get_existing_issued_document_totals_request.py +++ b/test/test_get_existing_issued_document_totals_request.py @@ -58,7 +58,7 @@ def testGetExistingIssuedDocumentTotalsRequest(self): amount_global_cassa_taxable=3.14, ) ) - expected_json = '{"data": {"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14}}' + expected_json = '{"data": {"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14, "show_totals": "all"}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_get_existing_received_document_totals_request.py b/test/test_get_existing_received_document_totals_request.py index 26f5e3ee..f1116e06 100644 --- a/test/test_get_existing_received_document_totals_request.py +++ b/test/test_get_existing_received_document_totals_request.py @@ -90,7 +90,7 @@ def testGetExistingReceivedDocumentTotalsRequest(self): ], ) ) - expected_json = '{"data": {"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}}' + expected_json = '{"data": {"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example", "default_payment_terms_type": "standard"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_get_issued_document_response.py b/test/test_get_issued_document_response.py index 486e93fc..0f5b9383 100644 --- a/test/test_get_issued_document_response.py +++ b/test/test_get_issued_document_response.py @@ -58,7 +58,7 @@ def testGetIssuedDocumentResponse(self): amount_global_cassa_taxable=3.14, ) ) - expected_json = '{"data": {"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14}}' + expected_json = '{"data": {"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14, "show_totals": "all"}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_get_new_issued_document_totals_request.py b/test/test_get_new_issued_document_totals_request.py index 1c9a00c4..3562416d 100644 --- a/test/test_get_new_issued_document_totals_request.py +++ b/test/test_get_new_issued_document_totals_request.py @@ -58,7 +58,7 @@ def testGetNewIssuedDocumentTotalsRequest(self): amount_global_cassa_taxable=3.14, ) ) - expected_json = '{"data": {"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14}}' + expected_json = '{"data": {"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14, "show_totals": "all"}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_get_new_received_document_totals_request.py b/test/test_get_new_received_document_totals_request.py index 67b6b644..88779766 100644 --- a/test/test_get_new_received_document_totals_request.py +++ b/test/test_get_new_received_document_totals_request.py @@ -90,7 +90,7 @@ def testGetNewReceivedDocumentTotalsRequest(self): ], ) ) - expected_json = '{"data": {"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}}' + expected_json = '{"data": {"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example", "default_payment_terms_type": "standard"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_get_receipt_pre_create_info_response.py b/test/test_get_receipt_pre_create_info_response.py index e7fd0be1..08dc04b7 100644 --- a/test/test_get_receipt_pre_create_info_response.py +++ b/test/test_get_receipt_pre_create_info_response.py @@ -48,7 +48,7 @@ def testGetReceiptPreCreateInfoResponse(self): ) ) - expected_json = '{"data": {"numerations_list": ["a/", "b/"], "rc_centers_list": ["bg", "mi"], "payment_accounts_list": [{"id": 1, "name": "bank"}], "categories_list": ["cat5", "cat6"], "vat_types_list": [{"value": 22.0}]}}' + expected_json = '{"data": {"numerations_list": ["a/", "b/"], "rc_centers_list": ["bg", "mi"], "payment_accounts_list": [{"id": 1, "name": "bank", "type": "standard"}], "categories_list": ["cat5", "cat6"], "vat_types_list": [{"value": 22.0}]}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_get_received_document_pre_create_info_response.py b/test/test_get_received_document_pre_create_info_response.py index 93417dcd..17319e63 100644 --- a/test/test_get_received_document_pre_create_info_response.py +++ b/test/test_get_received_document_pre_create_info_response.py @@ -52,7 +52,7 @@ def testGetReceivedDocumentPreCreateInfoResponse(self): vat_types_list=[VatType(value=22.0)], ) ) - expected_json = '{"data": {"default_values": {"detailed": true}, "items_default_values": {"vat": 22.0}, "countries_list": ["IT", "US"], "categories_list": ["cat5", "cat6"], "payment_accounts_list": [{"id": 1, "name": "bank"}], "vat_types_list": [{"value": 22.0}]}}' + expected_json = '{"data": {"default_values": {"detailed": true}, "items_default_values": {"vat": 22.0}, "countries_list": ["IT", "US"], "categories_list": ["cat5", "cat6"], "payment_accounts_list": [{"id": 1, "name": "bank", "type": "standard"}], "vat_types_list": [{"value": 22.0}]}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_get_received_document_response.py b/test/test_get_received_document_response.py index d3b72756..d4db2ff0 100644 --- a/test/test_get_received_document_response.py +++ b/test/test_get_received_document_response.py @@ -90,7 +90,7 @@ def testGetReceivedDocumentResponse(self): ], ) ) - expected_json = '{"data": {"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}}' + expected_json = '{"data": {"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example", "default_payment_terms_type": "standard"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_get_tax_profile_response.py b/test/test_get_tax_profile_response.py new file mode 100644 index 00000000..dee01c5d --- /dev/null +++ b/test/test_get_tax_profile_response.py @@ -0,0 +1,87 @@ +# 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.2 + 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_tax_profile_response import ( + GetTaxProfileResponse, +) + + +class TestGetTaxProfileResponse(unittest.TestCase): + """GetTaxProfileResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTaxProfileResponse: + """Test GetTaxProfileResponse + 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 `GetTaxProfileResponse` + """ + model = GetTaxProfileResponse() + if include_optional: + return GetTaxProfileResponse( + data = fattureincloud_python_sdk.models.tax_profile.TaxProfile( + company_type = '', + company_subtype = '', + profession = '', + regime = '', + rivalsa_name = '', + default_rivalsa = 1.337, + cassa_name = '', + default_cassa = 1.337, + default_cassa_taxable = 1.337, + cassa2_name = '', + default_cassa2 = 1.337, + default_cassa2_taxable = 1.337, + default_withholding_tax = 1.337, + default_withholding_tax_taxable = 1.337, + default_other_withholding_tax = 1.337, + enasarco = True, + enasarco_type = '', + contributions_percentage = 1.337, + profit_coefficient = 1.337, + med = True, + default_vat = fattureincloud_python_sdk.models.vat_type.VatType( + id = 56, + value = 22, + description = 'Non imponibile art. 123', + notes = 'IVA non imponibile ai sensi dell'articolo 123, comma 2', + e_invoice = True, + ei_type = '2', + ei_description = '', + editable = True, + is_disabled = True, + default = True, ), ) + ) + else: + return GetTaxProfileResponse( + ) + """ + + def testGetTaxProfileResponse(self): + """Test GetTaxProfileResponse""" + # 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_issued_document.py b/test/test_issued_document.py index d7cb0b19..40c2463e 100644 --- a/test/test_issued_document.py +++ b/test/test_issued_document.py @@ -81,7 +81,7 @@ def testIssuedDocument(self): global_cassa_taxable=0.0, amount_global_cassa_taxable=3.14, ) - expected_json = '{"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14}' + expected_json = '{"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14, "show_totals": "all"}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_issued_documents_api.py b/test/test_issued_documents_api.py index 30a46976..fb45660f 100644 --- a/test/test_issued_documents_api.py +++ b/test/test_issued_documents_api.py @@ -88,7 +88,7 @@ def tearDown(self): def test_create_issued_document(self): resp = { "status": 200, - "data": b'{"data": {"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14}}', + "data": b'{"data": {"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14, "show_totals": "all"}}', "reason": "OK", } @@ -221,7 +221,7 @@ def test_get_existing_issued_document_totals(self): def test_get_issued_document(self): resp = { "status": 200, - "data": b'{"data": {"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14}}', + "data": b'{"data": {"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14, "show_totals": "all"}}', "reason": "OK", } @@ -334,7 +334,7 @@ def test_get_new_issued_document_totals(self): def test_list_issued_documents(self): resp = { "status": 200, - "data": b'{"data": [{"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14},{"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14}]}', + "data": b'{"data": [{"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14, "show_totals": "all"},{"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14, "show_totals": "all"}]}', "reason": "OK", } @@ -399,7 +399,7 @@ def test_list_issued_documents(self): def test_modify_issued_document(self): resp = { "status": 200, - "data": b'{"data": {"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14}}', + "data": b'{"data": {"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14, "show_totals": "all"}}', "reason": "OK", } @@ -473,7 +473,7 @@ def test_upload_issued_document_attachment(self): def test_transform_issued_document(self): resp = { "status": 200, - "data": b'{"data": {"id": 1, "type": "invoice", "entity": {"id": 54321, "name": "Mary Red S.r.L.", "vat_number": "IT05432181211", "tax_code": "IT05432181211", "address_street": "Corso impero, 66", "address_postal_code": "20900", "address_city": "Milano", "address_province": "MI", "address_extra": "", "country": "Italia", "certified_email": "mary@pec.red.com", "ei_code": "ABCXCR1"}, "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14}, "options": {"create_from": ["12345"], "keep_copy": true}}', + "data": b'{"data": {"id": 1, "type": "invoice", "entity": {"id": 54321, "name": "Mary Red S.r.L.", "vat_number": "IT05432181211", "tax_code": "IT05432181211", "address_street": "Corso impero, 66", "address_postal_code": "20900", "address_city": "Milano", "address_province": "MI", "address_extra": "", "country": "Italia", "certified_email": "mary@pec.red.com", "ei_code": "ABCXCR1"}, "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14, "show_totals": "all"}, "options": {"create_from": ["12345"], "keep_copy": true}}', "reason": "OK", } @@ -528,7 +528,7 @@ def test_transform_issued_document(self): def test_join_issued_documents(self): resp = { "status": 200, - "data": b'{"data": {"id": 1, "type": "invoice", "entity": {"id": 54321, "name": "Mary Red S.r.L.", "vat_number": "IT05432181211", "tax_code": "IT05432181211", "address_street": "Corso impero, 66", "address_postal_code": "20900", "address_city": "Milano", "address_province": "MI", "address_extra": "", "country": "Italia", "certified_email": "mary@pec.red.com", "ei_code": "ABCXCR1"}, "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14}, "options": {"create_from": ["12345", "54321"]}}', + "data": b'{"data": {"id": 1, "type": "invoice", "entity": {"id": 54321, "name": "Mary Red S.r.L.", "vat_number": "IT05432181211", "tax_code": "IT05432181211", "address_street": "Corso impero, 66", "address_postal_code": "20900", "address_city": "Milano", "address_province": "MI", "address_extra": "", "country": "Italia", "certified_email": "mary@pec.red.com", "ei_code": "ABCXCR1"}, "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14, "show_totals": "all"}, "options": {"create_from": ["12345", "54321"]}}', "reason": "OK", } diff --git a/test/test_join_issued_documents_response.py b/test/test_join_issued_documents_response.py index 865d8022..30edf11b 100644 --- a/test/test_join_issued_documents_response.py +++ b/test/test_join_issued_documents_response.py @@ -79,7 +79,7 @@ def testJoinIssuedDocumentsResponse(self): ), options=IssuedDocumentOptions(create_from=["12345", "54321"]), ) - expected_json = '{"data": {"id": 1, "entity": {"id": 54321, "name": "Mary Red S.r.L.", "vat_number": "IT05432181211", "tax_code": "IT05432181211", "address_street": "Corso impero, 66", "address_postal_code": "20900", "address_city": "Milano", "address_province": "MI", "address_extra": "", "country": "Italia", "certified_email": "mary@pec.red.com", "ei_code": "ABCXCR1"}, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14}, "options": {"create_from": ["12345", "54321"]}}' + expected_json = '{"data": {"id": 1, "entity": {"id": 54321, "name": "Mary Red S.r.L.", "vat_number": "IT05432181211", "tax_code": "IT05432181211", "address_street": "Corso impero, 66", "address_postal_code": "20900", "address_city": "Milano", "address_province": "MI", "address_extra": "", "country": "Italia", "certified_email": "mary@pec.red.com", "default_payment_terms_type": "standard", "ei_code": "ABCXCR1"}, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14, "show_totals": "all"}, "options": {"create_from": ["12345", "54321"]}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_list_cashbook_entries_response.py b/test/test_list_cashbook_entries_response.py index 067ac9ed..5d0cb406 100644 --- a/test/test_list_cashbook_entries_response.py +++ b/test/test_list_cashbook_entries_response.py @@ -55,7 +55,7 @@ def testListCashbookEntriesResponse(self): ) ] ) - expected_json = '{"data": [{"id": "1", "date": "2022-02-02", "description": "description", "kind": "cashbook", "type": "in", "entity_name": "name", "document": {"id": 1, "type": "doc", "path": "/path"}, "amount_in": 10.0, "payment_account_in": {"id": 1, "name": "banca"}}]}' + expected_json = '{"data": [{"id": "1", "date": "2022-02-02", "description": "description", "kind": "cashbook", "type": "in", "entity_name": "name", "document": {"id": 1, "type": "doc", "path": "/path"}, "amount_in": 10.0, "payment_account_in": {"id": 1, "name": "banca", "type": "standard"}}]}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_list_emails_response.py b/test/test_list_emails_response.py index 1d5bc8ad..51e37a86 100644 --- a/test/test_list_emails_response.py +++ b/test/test_list_emails_response.py @@ -45,9 +45,7 @@ def testListEmailsResponse(self): Email( id=1, status=EmailStatus("sent"), - sent_date=datetime.datetime.strptime( - "2022-07-17 13:53:12", "%Y-%m-%d %H:%M:%S" - ), + sent_date="2022-07-17 13:53:12", errors_count=0, error_log="", from_email="test@mail.it", @@ -67,9 +65,7 @@ def testListEmailsResponse(self): Email( id=2, status=EmailStatus("sent"), - sent_date=datetime.datetime.strptime( - "2022-07-17 13:53:12", "%Y-%m-%d %H:%M:%S" - ), + sent_date="2022-07-17 13:53:12", errors_count=0, error_log="", from_email="test@mail.it", @@ -98,7 +94,7 @@ def testListEmailsResponse(self): to=10, total=10, ) - expected_json = '{"current_page": 10, "first_page_url": "http://url.com", "last_page": 10, "last_page_url": "http://url.com", "next_page_url": "http://url.com", "path": "http://url.com", "per_page": 10, "prev_page_url": "http://url.com", "to": 10, "total": 10, "data": [{"id": 1, "status": "sent", "sent_date": "2022-07-17T13:53:12", "errors_count": 0, "error_log": "", "from_email": "test@mail.it", "from_name": "Test mail", "to_email": "mail@test.it", "to_name": "Mario", "subject": "Test", "content": "Test send email", "copy_to": "", "recipient_status": "unknown", "recipient_date": "2022-07-17T13:53:12", "kind": "Fatture", "attachments": []}, {"id": 2, "status": "sent", "sent_date": "2022-07-17T13:53:12", "errors_count": 0, "error_log": "", "from_email": "test@mail.it", "from_name": "Test mail", "to_email": "mail@test.it", "to_name": "Mario", "subject": "Test", "content": "Test send email", "copy_to": "", "recipient_status": "unknown", "recipient_date": "2022-07-17T13:53:12", "kind": "Fatture", "attachments": []}]}' + expected_json = '{"current_page": 10, "first_page_url": "http://url.com", "last_page": 10, "last_page_url": "http://url.com", "next_page_url": "http://url.com", "path": "http://url.com", "per_page": 10, "prev_page_url": "http://url.com", "to": 10, "total": 10, "data": [{"id": 1, "status": "sent", "sent_date": "2022-07-17 13:53:12", "errors_count": 0, "error_log": "", "from_email": "test@mail.it", "from_name": "Test mail", "to_email": "mail@test.it", "to_name": "Mario", "subject": "Test", "content": "Test send email", "copy_to": "", "recipient_status": "unknown", "recipient_date": "2022-07-17T13:53:12", "kind": "Fatture", "attachments": []}, {"id": 2, "status": "sent", "sent_date": "2022-07-17 13:53:12", "errors_count": 0, "error_log": "", "from_email": "test@mail.it", "from_name": "Test mail", "to_email": "mail@test.it", "to_name": "Mario", "subject": "Test", "content": "Test send email", "copy_to": "", "recipient_status": "unknown", "recipient_date": "2022-07-17T13:53:12", "kind": "Fatture", "attachments": []}]}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_list_emails_response_page.py b/test/test_list_emails_response_page.py index 051ab1fa..01d11da7 100644 --- a/test/test_list_emails_response_page.py +++ b/test/test_list_emails_response_page.py @@ -41,9 +41,7 @@ def testListEmailsResponsePage(self): Email( id=1, status=EmailStatus("sent"), - sent_date=datetime.datetime.strptime( - "2022-07-17 13:53:12", "%Y-%m-%d %H:%M:%S" - ), + sent_date="2022-07-17 13:53:12", errors_count=0, error_log="", from_email="test@mail.it", @@ -63,9 +61,7 @@ def testListEmailsResponsePage(self): Email( id=2, status=EmailStatus("sent"), - sent_date=datetime.datetime.strptime( - "2022-07-17 13:53:12", "%Y-%m-%d %H:%M:%S" - ), + sent_date="2022-07-17 13:53:12", errors_count=0, error_log="", from_email="test@mail.it", @@ -84,7 +80,7 @@ def testListEmailsResponsePage(self): ), ] ) - expected_json = '{"data": [{"id": 1, "status": "sent", "sent_date": "2022-07-17T13:53:12", "errors_count": 0, "error_log": "", "from_email": "test@mail.it", "from_name": "Test mail", "to_email": "mail@test.it", "to_name": "Mario", "subject": "Test", "content": "Test send email", "copy_to": "", "recipient_status": "unknown", "recipient_date": "2022-07-17T13:53:12", "kind": "Fatture", "attachments": []}, {"id": 2, "status": "sent", "sent_date": "2022-07-17T13:53:12", "errors_count": 0, "error_log": "", "from_email": "test@mail.it", "from_name": "Test mail", "to_email": "mail@test.it", "to_name": "Mario", "subject": "Test", "content": "Test send email", "copy_to": "", "recipient_status": "unknown", "recipient_date": "2022-07-17T13:53:12", "kind": "Fatture", "attachments": []}]}' + expected_json = '{"data": [{"id": 1, "status": "sent", "sent_date": "2022-07-17 13:53:12", "errors_count": 0, "error_log": "", "from_email": "test@mail.it", "from_name": "Test mail", "to_email": "mail@test.it", "to_name": "Mario", "subject": "Test", "content": "Test send email", "copy_to": "", "recipient_status": "unknown", "recipient_date": "2022-07-17T13:53:12", "kind": "Fatture", "attachments": []}, {"id": 2, "status": "sent", "sent_date": "2022-07-17 13:53:12", "errors_count": 0, "error_log": "", "from_email": "test@mail.it", "from_name": "Test mail", "to_email": "mail@test.it", "to_name": "Mario", "subject": "Test", "content": "Test send email", "copy_to": "", "recipient_status": "unknown", "recipient_date": "2022-07-17T13:53:12", "kind": "Fatture", "attachments": []}]}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_list_issued_documents_response.py b/test/test_list_issued_documents_response.py index 47cf8e46..5ae334b0 100644 --- a/test/test_list_issued_documents_response.py +++ b/test/test_list_issued_documents_response.py @@ -97,7 +97,7 @@ def testListIssuedDocumentsResponse(self): to=10, total=10, ) - expected_json = '{"current_page": 10, "first_page_url": "http://url.com", "last_page": 10, "last_page_url": "http://url.com", "next_page_url": "http://url.com", "path": "http://url.com", "per_page": 10, "prev_page_url": "http://url.com", "to": 10, "total": 10, "data": [{"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14}, {"id": 2, "type": "invoice", "number": 2, "numeration": "/A", "date": "2022-01-02", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14}]}' + expected_json = '{"current_page": 10, "first_page_url": "http://url.com", "last_page": 10, "last_page_url": "http://url.com", "next_page_url": "http://url.com", "path": "http://url.com", "per_page": 10, "prev_page_url": "http://url.com", "to": 10, "total": 10, "data": [{"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14, "show_totals": "all"}, {"id": 2, "type": "invoice", "number": 2, "numeration": "/A", "date": "2022-01-02", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14, "show_totals": "all"}]}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_list_issued_documents_response_page.py b/test/test_list_issued_documents_response_page.py index da5f206e..fa8d82b5 100644 --- a/test/test_list_issued_documents_response_page.py +++ b/test/test_list_issued_documents_response_page.py @@ -81,7 +81,7 @@ def testListIssuedDocumentsResponsePage(self): ), ] ) - expected_json = '{"data": [{"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14}, {"id": 2, "type": "invoice", "number": 2, "numeration": "/A", "date": "2022-01-02", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14}]}' + expected_json = '{"data": [{"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14, "show_totals": "all"}, {"id": 2, "type": "invoice", "number": 2, "numeration": "/A", "date": "2022-01-02", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14, "show_totals": "all"}]}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_list_received_documents_response.py b/test/test_list_received_documents_response.py index 847006dd..1480a4a7 100644 --- a/test/test_list_received_documents_response.py +++ b/test/test_list_received_documents_response.py @@ -108,7 +108,7 @@ def testListReceivedDocumentsResponse(self): to=10, total=10, ) - expected_json = '{"current_page": 10, "first_page_url": "http://url.com", "last_page": 10, "last_page_url": "http://url.com", "next_page_url": "http://url.com", "path": "http://url.com", "per_page": 10, "prev_page_url": "http://url.com", "to": 10, "total": 10, "data": [{"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}]}' + expected_json = '{"current_page": 10, "first_page_url": "http://url.com", "last_page": 10, "last_page_url": "http://url.com", "next_page_url": "http://url.com", "path": "http://url.com", "per_page": 10, "prev_page_url": "http://url.com", "to": 10, "total": 10, "data": [{"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example", "default_payment_terms_type": "standard"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}]}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_list_received_documents_response_page.py b/test/test_list_received_documents_response_page.py index 88c0e768..db673893 100644 --- a/test/test_list_received_documents_response_page.py +++ b/test/test_list_received_documents_response_page.py @@ -92,7 +92,7 @@ def testListReceivedDocumentsResponsePage(self): ) ] ) - expected_json = '{"data": [{"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}]}' + expected_json = '{"data": [{"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example", "default_payment_terms_type": "standard"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}]}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_list_templates_response.py b/test/test_list_templates_response.py index 96cd0e51..34a67c9d 100644 --- a/test/test_list_templates_response.py +++ b/test/test_list_templates_response.py @@ -9,7 +9,6 @@ """ import json -from pipes import Template import sys import unittest diff --git a/test/test_modify_cashbook_entry_request.py b/test/test_modify_cashbook_entry_request.py index 20b47b57..85a2a03c 100644 --- a/test/test_modify_cashbook_entry_request.py +++ b/test/test_modify_cashbook_entry_request.py @@ -53,7 +53,7 @@ def testModifyCashbookEntryRequest(self): payment_account_in=PaymentAccount(id=1, name="banca"), ) ) - expected_json = '{"data": {"id": "1", "date": "2022-02-02", "description": "description", "kind": "cashbook", "type": "in", "entity_name": "name", "document": {"id": 1, "type": "doc", "path": "/path"}, "amount_in": 10.0, "payment_account_in": {"id": 1, "name": "banca"}}}' + expected_json = '{"data": {"id": "1", "date": "2022-02-02", "description": "description", "kind": "cashbook", "type": "in", "entity_name": "name", "document": {"id": 1, "type": "doc", "path": "/path"}, "amount_in": 10.0, "payment_account_in": {"id": 1, "name": "banca", "type": "standard"}}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_modify_cashbook_entry_response.py b/test/test_modify_cashbook_entry_response.py index 95f47d10..44dc5c71 100644 --- a/test/test_modify_cashbook_entry_response.py +++ b/test/test_modify_cashbook_entry_response.py @@ -53,7 +53,7 @@ def testModifyCashbookEntryResponse(self): payment_account_in=PaymentAccount(id=1, name="banca"), ) ) - expected_json = '{"data": {"id": "1", "date": "2022-02-02", "description": "description", "kind": "cashbook", "type": "in", "entity_name": "name", "document": {"id": 1, "type": "doc", "path": "/path"}, "amount_in": 10.0, "payment_account_in": {"id": 1, "name": "banca"}}}' + expected_json = '{"data": {"id": "1", "date": "2022-02-02", "description": "description", "kind": "cashbook", "type": "in", "entity_name": "name", "document": {"id": 1, "type": "doc", "path": "/path"}, "amount_in": 10.0, "payment_account_in": {"id": 1, "name": "banca", "type": "standard"}}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_modify_issued_document_request.py b/test/test_modify_issued_document_request.py index 9ac53e52..3ca72b58 100644 --- a/test/test_modify_issued_document_request.py +++ b/test/test_modify_issued_document_request.py @@ -58,7 +58,7 @@ def testModifyIssuedDocumentRequest(self): amount_global_cassa_taxable=3.14, ) ) - expected_json = '{"data": {"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14}}' + expected_json = '{"data": {"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14, "show_totals": "all"}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_modify_issued_document_response.py b/test/test_modify_issued_document_response.py index c115d4af..21bb6290 100644 --- a/test/test_modify_issued_document_response.py +++ b/test/test_modify_issued_document_response.py @@ -58,7 +58,7 @@ def testModifyIssuedDocumentResponse(self): amount_global_cassa_taxable=3.14, ) ) - expected_json = '{"data": {"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14}}' + expected_json = '{"data": {"id": 1, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14, "show_totals": "all"}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_modify_received_document_request.py b/test/test_modify_received_document_request.py index b7a4eee7..8def8721 100644 --- a/test/test_modify_received_document_request.py +++ b/test/test_modify_received_document_request.py @@ -90,7 +90,7 @@ def testModifyReceivedDocumentRequest(self): ], ) ) - expected_json = '{"data": {"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}}' + expected_json = '{"data": {"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example", "default_payment_terms_type": "standard"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_modify_received_document_response.py b/test/test_modify_received_document_response.py index 3893de35..ade187a4 100644 --- a/test/test_modify_received_document_response.py +++ b/test/test_modify_received_document_response.py @@ -90,7 +90,7 @@ def testModifyReceivedDocumentResponse(self): ], ) ) - expected_json = '{"data": {"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}}' + expected_json = '{"data": {"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example", "default_payment_terms_type": "standard"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_oauth2.py b/test/test_oauth2.py index 2a4bf145..1d649112 100644 --- a/test/test_oauth2.py +++ b/test/test_oauth2.py @@ -19,9 +19,7 @@ def setUp(self): self.oa2auth = OAuth2AuthorizationCodeManager( "CLIENT_ID", "CLIENT_SECRET", "http://localhost:3000/redirect" ) - self.oa2device = OAuth2DeviceCodeManager( - "CLIENT_ID" - ) + self.oa2device = OAuth2DeviceCodeManager("CLIENT_ID") pass def tearDown(self): @@ -57,9 +55,7 @@ def testOAuth2TokenResponse(self): assert params.expires_in == 86400 def testOAuth2Error(self): - err = OAuth2Error( - 418, "I'm a teapot", "I'm a teapot, but a really evil one." - ) + err = OAuth2Error(418, "I'm a teapot", "I'm a teapot, but a really evil one.") assert err.status == 418 assert err.error == "I'm a teapot" assert err.error_description == "I'm a teapot, but a really evil one." diff --git a/test/test_receipt_pre_create_info.py b/test/test_receipt_pre_create_info.py index 064dbe3a..622d53de 100644 --- a/test/test_receipt_pre_create_info.py +++ b/test/test_receipt_pre_create_info.py @@ -43,7 +43,7 @@ def testReceiptPreCreateInfo(self): categories_list=["cat5", "cat6"], vat_types_list=[VatType(value=22.0)], ) - expected_json = '{"numerations_list": ["a/", "b/"], "rc_centers_list": ["bg", "mi"], "payment_accounts_list": [{"id": 1, "name": "bank"}], "categories_list": ["cat5", "cat6"], "vat_types_list": [{"value": 22.0}]}' + expected_json = '{"numerations_list": ["a/", "b/"], "rc_centers_list": ["bg", "mi"], "payment_accounts_list": [{"id": 1, "name": "bank", "type": "standard"}], "categories_list": ["cat5", "cat6"], "vat_types_list": [{"value": 22.0}]}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_receipts_api.py b/test/test_receipts_api.py index 1476f719..ff349a60 100644 --- a/test/test_receipts_api.py +++ b/test/test_receipts_api.py @@ -192,7 +192,7 @@ def test_get_receipt(self): def test_get_receipt_pre_create_info(self): resp = { "status": 200, - "data": b'{"data": {"numerations_list": ["a/", "b/"], "rc_centers_list": ["bg", "mi"], "payment_accounts_list": [{"id": 1, "name": "bank"}], "categories_list": ["cat5", "cat6"], "vat_types_list": [{"value": 22.0}]}}', + "data": b'{"data": {"numerations_list": ["a/", "b/"], "rc_centers_list": ["bg", "mi"], "payment_accounts_list": [{"id": 1, "name": "bank", "type": "standard"}], "categories_list": ["cat5", "cat6"], "vat_types_list": [{"value": 22.0}]}}', "reason": "OK", } diff --git a/test/test_received_document.py b/test/test_received_document.py index 9d82f4b5..3c9854ef 100644 --- a/test/test_received_document.py +++ b/test/test_received_document.py @@ -93,7 +93,7 @@ def testReceivedDocument(self): ), ], ) - expected_json = '{"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}' + expected_json = '{"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example", "default_payment_terms_type": "standard"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_received_document_info.py b/test/test_received_document_info.py index 1b2ac327..6e057733 100644 --- a/test/test_received_document_info.py +++ b/test/test_received_document_info.py @@ -54,7 +54,7 @@ def testReceivedDocumentInfo(self): categories_list=["cat5", "cat6"], vat_types_list=[VatType(value=22.0)], ) - expected_json = '{"default_values": {"detailed": true}, "items_default_values": {"vat": 22.0}, "countries_list": ["IT", "US"], "categories_list": ["cat5", "cat6"], "payment_accounts_list": [{"id": 1, "name": "bank"}], "vat_types_list": [{"value": 22.0}]}' + expected_json = '{"default_values": {"detailed": true}, "items_default_values": {"vat": 22.0}, "countries_list": ["IT", "US"], "categories_list": ["cat5", "cat6"], "payment_accounts_list": [{"id": 1, "name": "bank", "type": "standard"}], "vat_types_list": [{"value": 22.0}]}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_received_document_payments_list_item.py b/test/test_received_document_payments_list_item.py index 252e6909..99440a7d 100644 --- a/test/test_received_document_payments_list_item.py +++ b/test/test_received_document_payments_list_item.py @@ -48,7 +48,7 @@ def testReceivedDocumentPaymentsListItem(self): status="ok", payment_account=PaymentAccount(id=1, name="bank"), ) - expected_json = '{"id": 1, "amount": 10.0, "due_date": "2022-01-01", "paid_date": "2022-01-01", "status": "ok", "payment_account": {"id": 1, "name": "bank"}}' + expected_json = '{"id": 1, "amount": 10.0, "due_date": "2022-01-01", "paid_date": "2022-01-01", "status": "ok", "payment_account": {"id": 1, "name": "bank", "type": "standard"}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_received_documents_api.py b/test/test_received_documents_api.py index ce7d2f23..4f3b9fdd 100644 --- a/test/test_received_documents_api.py +++ b/test/test_received_documents_api.py @@ -74,7 +74,7 @@ def tearDown(self): def test_create_received_document(self): resp = { "status": 200, - "data": b'{"data": {"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}}', + "data": b'{"data": {"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example", "default_payment_terms_type": "standard"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}}', "reason": "OK", } @@ -228,7 +228,7 @@ def test_get_new_received_document_totals(self): def test_get_received_document(self): resp = { "status": 200, - "data": b'{"data": {"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}}', + "data": b'{"data": {"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example", "default_payment_terms_type": "standard"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}}', "reason": "OK", } @@ -294,7 +294,7 @@ def test_get_received_document(self): def test_get_received_document_pre_create_info(self): resp = { "status": 200, - "data": b'{"data": {"default_values": {"detailed": true}, "items_default_values": {"vat": 22.0}, "countries_list": ["IT", "US"], "payment_accounts_list": [{"id": 1, "name": "bank"}], "categories_list": ["cat5", "cat6"], "vat_types_list": [{"value": 22.0}]}}', + "data": b'{"data": {"default_values": {"detailed": true}, "items_default_values": {"vat": 22.0}, "countries_list": ["IT", "US"], "payment_accounts_list": [{"id": 1, "name": "bank", "type": "standard"}], "categories_list": ["cat5", "cat6"], "vat_types_list": [{"value": 22.0}]}}', "reason": "OK", } @@ -321,7 +321,7 @@ def test_get_received_document_pre_create_info(self): def test_list_received_documents(self): resp = { "status": 200, - "data": b'{"data": [{"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]},{"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}]}', + "data": b'{"data": [{"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example", "default_payment_terms_type": "standard"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]},{"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example", "default_payment_terms_type": "standard"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}]}', "reason": "OK", } @@ -436,7 +436,7 @@ def test_list_received_documents(self): def test_modify_received_document(self): resp = { "status": 200, - "data": b'{"data": {"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}}', + "data": b'{"data": {"id": 1, "type": "expense", "entity": {"id": 1, "name": "name_example", "default_payment_terms_type": "standard"}, "date": "2022-01-01", "category": "category_example", "description": "description_example", "amount_net": 3.14, "amount_vat": 3.14, "amount_withholding_tax": 3.14, "amount_other_withholding_tax": 3.14, "amortization": 3.14, "rc_center": "rc_center_example", "invoice_number": "invoice_number_example", "is_marked": true, "is_detailed": true, "e_invoice": true, "tax_deductibility": 0.0, "vat_deductibility": 0.0, "items_list": [{"id": 1, "product_id": 1, "code": "code_example", "name": "name_example", "measure": "measure_example", "net_price": 3.14, "category": "category_example", "qty": 3.14, "vat": {"id": 1, "value": 22.0, "description": "Non imponibile art. 123", "notes": "IVA non imponibile ai sensi dell articolo 123, comma 2", "e_invoice": true, "ei_type": "2", "ei_description": "ei_description_example", "is_disabled": true}, "stock": 3.14}]}}', "reason": "OK", } diff --git a/test/test_tax_profile.py b/test/test_tax_profile.py new file mode 100644 index 00000000..f65a51d6 --- /dev/null +++ b/test/test_tax_profile.py @@ -0,0 +1,84 @@ +# 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.2 + 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.tax_profile import TaxProfile + + +class TestTaxProfile(unittest.TestCase): + """TaxProfile unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TaxProfile: + """Test TaxProfile + 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 `TaxProfile` + """ + model = TaxProfile() + if include_optional: + return TaxProfile( + company_type = '', + company_subtype = '', + profession = '', + regime = '', + rivalsa_name = '', + default_rivalsa = 1.337, + cassa_name = '', + default_cassa = 1.337, + default_cassa_taxable = 1.337, + cassa2_name = '', + default_cassa2 = 1.337, + default_cassa2_taxable = 1.337, + default_withholding_tax = 1.337, + default_withholding_tax_taxable = 1.337, + default_other_withholding_tax = 1.337, + enasarco = True, + enasarco_type = '', + contributions_percentage = 1.337, + profit_coefficient = 1.337, + med = True, + default_vat = fattureincloud_python_sdk.models.vat_type.VatType( + id = 56, + value = 22, + description = 'Non imponibile art. 123', + notes = 'IVA non imponibile ai sensi dell'articolo 123, comma 2', + e_invoice = True, + ei_type = '2', + ei_description = '', + editable = True, + is_disabled = True, + default = True, ) + ) + else: + return TaxProfile( + ) + """ + + def testTaxProfile(self): + """Test TaxProfile""" + # 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_transform_issued_document_response.py b/test/test_transform_issued_document_response.py index 0aca9a6f..4a97ae04 100644 --- a/test/test_transform_issued_document_response.py +++ b/test/test_transform_issued_document_response.py @@ -78,7 +78,7 @@ def testTransformIssuedDocumentResponse(self): ), options=IssuedDocumentOptions(create_from=["12345"], keep_copy=True), ) - expected_json = '{"data": {"id": 1, "entity": {"id": 54321, "name": "Mary Red S.r.L.", "vat_number": "IT05432181211", "tax_code": "IT05432181211", "address_street": "Corso impero, 66", "address_postal_code": "20900", "address_city": "Milano", "address_province": "MI", "address_extra": "", "country": "Italia", "certified_email": "mary@pec.red.com", "ei_code": "ABCXCR1"}, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14}, "options": {"create_from": ["12345"], "keep_copy": true}}' + expected_json = '{"data": {"id": 1, "entity": {"id": 54321, "name": "Mary Red S.r.L.", "vat_number": "IT05432181211", "tax_code": "IT05432181211", "address_street": "Corso impero, 66", "address_postal_code": "20900", "address_city": "Milano", "address_province": "MI", "address_extra": "", "country": "Italia", "certified_email": "mary@pec.red.com", "default_payment_terms_type": "standard", "ei_code": "ABCXCR1"}, "type": "invoice", "number": 1, "numeration": "/A", "date": "2022-01-01", "year": 1, "subject": "subject_example", "visible_subject": "visible_subject_example", "rc_center": "rc_center_example", "notes": "notes_example", "rivalsa": 0.0, "cassa": 0.0, "cassa_taxable": 0.0, "amount_cassa_taxable": 3.14, "cassa2": 0.0, "cassa2_taxable": 0.0, "amount_cassa2_taxable": 3.14, "global_cassa_taxable": 0.0, "amount_global_cassa_taxable": 3.14, "show_totals": "all"}, "options": {"create_from": ["12345"], "keep_copy": true}}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json