fattureincloud_ruby_sdk 2.0.17 → 2.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -0
- data/README.md +15 -10
- data/docs/Client.md +1 -0
- data/docs/EmailsApi.md +4 -4
- data/docs/InfoApi.md +2 -2
- data/docs/IssuedDocument.md +1 -0
- data/docs/IssuedDocumentEiData.md +1 -1
- data/docs/IssuedDocumentsApi.md +12 -12
- data/docs/IssuedEInvoicesApi.md +16 -16
- data/docs/ReceivedDocument.md +1 -0
- data/docs/Supplier.md +1 -0
- data/docs/WebhooksSubscription.md +1 -0
- data/docs/WebhooksSubscriptionConfig.md +8 -0
- data/docs/WebhooksSubscriptionMapping.md +7 -0
- data/fattureincloud_ruby_sdk.gemspec +2 -2
- data/lib/fattureincloud_ruby_sdk/api/archive_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/cashbook_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/clients_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/companies_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/emails_api.rb +4 -4
- data/lib/fattureincloud_ruby_sdk/api/info_api.rb +4 -4
- data/lib/fattureincloud_ruby_sdk/api/issued_documents_api.rb +8 -8
- data/lib/fattureincloud_ruby_sdk/api/issued_e_invoices_api.rb +10 -10
- data/lib/fattureincloud_ruby_sdk/api/products_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/receipts_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/received_documents_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/settings_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/suppliers_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/taxes_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/user_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/webhooks_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api_client.rb +3 -3
- data/lib/fattureincloud_ruby_sdk/api_error.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/configuration.rb +11 -9
- data/lib/fattureincloud_ruby_sdk/models/archive_document.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/attachment_data.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/cashbook_entry.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_document.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_kind.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/city.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/client.rb +26 -20
- data/lib/fattureincloud_ruby_sdk/models/client_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/company.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/company_info.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/company_info_access_info.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_functions.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_functions_status.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_limits.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/company_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/controlled_company.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_archive_document_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_archive_document_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_cashbook_entry_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_cashbook_entry_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_client_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_client_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_f24_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_f24_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_issued_document_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_issued_document_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_payment_account_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_payment_account_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_payment_method_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_payment_method_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_product_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_product_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_receipt_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_receipt_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_received_document_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_received_document_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_supplier_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_supplier_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_vat_type_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_vat_type_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_webhooks_subscription_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/create_webhooks_subscription_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/currency.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/detailed_country.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/document_template.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/e_invoice_rejection_reason.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/email.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/email_attachment.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/email_data.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/email_data_default_sender_email.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/email_recipient_status.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/email_schedule.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/email_schedule_include.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/email_status.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/entity.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/entity_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/event_type.rb +6 -5
- data/lib/fattureincloud_ruby_sdk/models/f24.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/f24_status.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/function_status.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_archive_document_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_cashbook_entry_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_client_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_company_info_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_e_invoice_rejection_reason_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_email_data_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_existing_issued_document_totals_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_existing_issued_document_totals_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_existing_received_document_totals_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_existing_received_document_totals_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_f24_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_issued_document_pre_create_info_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_issued_document_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_new_issued_document_totals_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_new_issued_document_totals_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_payment_account_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_payment_method_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_product_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_receipt_pre_create_info_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_receipt_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_receipts_monthly_totals_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_received_document_pre_create_info_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_received_document_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_supplier_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_user_info_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_user_info_response_email_confirmation_state.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_user_info_response_info.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_vat_type_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/get_webhooks_subscription_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/issued_document.rb +26 -20
- data/lib/fattureincloud_ruby_sdk/models/issued_document_ei_data.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/issued_document_extra_data.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/issued_document_items_list_item.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/issued_document_options.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/issued_document_payments_list_item.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/issued_document_payments_list_item_payment_terms.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_default_values.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_extra_data_default_values.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_items_default_values.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/issued_document_status.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_totals.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/issued_document_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/join_issued_documents_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/language.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_archive_categories_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_archive_documents_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_archive_documents_response_page.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_cashbook_entries_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_cities_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_clients_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_clients_response_page.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_cost_centers_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_countries_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_currencies_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_delivery_notes_default_causals_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_detailed_countries_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_emails_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_emails_response_page.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_f24_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_f24_response_aggregated_data.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_f24_response_aggregation.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_f24_response_page.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_issued_documents_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_issued_documents_response_page.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_languages_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_payment_accounts_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_payment_methods_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_product_categories_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_products_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_products_response_page.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_receipts_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_receipts_response_page.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_received_document_categories_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_received_documents_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_received_documents_response_page.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_revenue_centers_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_suppliers_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_suppliers_response_page.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_templates_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_units_of_measure_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_user_companies_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_user_companies_response_data.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_vat_types_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/list_webhooks_subscriptions_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_archive_document_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_archive_document_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_cashbook_entry_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_cashbook_entry_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_client_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_client_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_f24_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_f24_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_issued_document_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_issued_document_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_payment_account_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_payment_account_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_payment_method_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_payment_method_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_product_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_product_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_receipt_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_receipt_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_received_document_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_received_document_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_supplier_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_supplier_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_vat_type_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_vat_type_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_webhooks_subscription_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/modify_webhooks_subscription_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/monthly_total.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/original_document_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/pagination.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/payment_account.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/payment_account_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/payment_method.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/payment_method_details.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/payment_method_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/payment_terms_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/permission_level.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/permissions.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/permissions_fic_issued_documents_detailed.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/product.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/receipt.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/receipt_items_list_item.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/receipt_pre_create_info.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/receipt_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/received_document.rb +26 -20
- data/lib/fattureincloud_ruby_sdk/models/received_document_info.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/received_document_info_default_values.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/received_document_info_items_default_values.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/received_document_items_list_item.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/received_document_payments_list_item.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/received_document_payments_list_item_payment_terms.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/received_document_totals.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/received_document_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/schedule_email_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request_data.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request_options.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_response_data.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/sender_email.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/show_totals_mode.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/supplier.rb +26 -20
- data/lib/fattureincloud_ruby_sdk/models/supplier_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/transform_issued_document_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/upload_archive_attachment_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/upload_f24_attachment_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/upload_issued_document_attachment_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/upload_received_document_attachment_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/user.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/user_company_role.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/vat_item.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/vat_kind.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/vat_type.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_error.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_error_validation_result.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_extra.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_response.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_response_data.rb +14 -19
- data/lib/fattureincloud_ruby_sdk/models/webhooks_subscription.rb +28 -24
- data/lib/fattureincloud_ruby_sdk/models/webhooks_subscription_config.rb +236 -0
- data/lib/fattureincloud_ruby_sdk/models/webhooks_subscription_mapping.rb +40 -0
- data/lib/fattureincloud_ruby_sdk/version.rb +3 -3
- data/lib/fattureincloud_ruby_sdk.rb +4 -2
- data/sdk-version.yaml +1 -1
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/webhooks_subscription_config_spec.rb +35 -0
- data/spec/models/webhooks_subscription_mapping_spec.rb +28 -0
- data/spec/models/webhooks_subscription_spec.rb +9 -0
- data/spec/spec_helper.rb +2 -2
- metadata +226 -218
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
6
|
+
The version of the OpenAPI document: 2.0.30
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -66,6 +66,7 @@ module FattureInCloud_Ruby_Sdk
|
|
66
66
|
# Show invalid properties with the reasons. Usually used together with valid?
|
67
67
|
# @return Array for valid properties with the reasons
|
68
68
|
def list_invalid_properties
|
69
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
69
70
|
invalid_properties = Array.new
|
70
71
|
invalid_properties
|
71
72
|
end
|
@@ -73,6 +74,7 @@ module FattureInCloud_Ruby_Sdk
|
|
73
74
|
# Check to see if the all the properties in the model are valid
|
74
75
|
# @return true if the model is valid
|
75
76
|
def valid?
|
77
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
76
78
|
true
|
77
79
|
end
|
78
80
|
|
@@ -100,37 +102,30 @@ module FattureInCloud_Ruby_Sdk
|
|
100
102
|
# @param [Hash] attributes Model attributes in the form of hash
|
101
103
|
# @return [Object] Returns the model itself
|
102
104
|
def self.build_from_hash(attributes)
|
103
|
-
new.build_from_hash(attributes)
|
104
|
-
end
|
105
|
-
|
106
|
-
# Builds the object from hash
|
107
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
108
|
-
# @return [Object] Returns the model itself
|
109
|
-
def build_from_hash(attributes)
|
110
105
|
return nil unless attributes.is_a?(Hash)
|
111
106
|
attributes = attributes.transform_keys(&:to_sym)
|
112
|
-
|
113
|
-
|
114
|
-
|
107
|
+
transformed_hash = {}
|
108
|
+
openapi_types.each_pair do |key, type|
|
109
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
110
|
+
transformed_hash["#{key}"] = nil
|
115
111
|
elsif type =~ /\AArray<(.*)>/i
|
116
112
|
# check to ensure the input is an array given that the attribute
|
117
113
|
# is documented as an array but the input is not
|
118
|
-
if attributes[
|
119
|
-
|
114
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
115
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
120
116
|
end
|
121
|
-
elsif !attributes[
|
122
|
-
|
117
|
+
elsif !attributes[attribute_map[key]].nil?
|
118
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
123
119
|
end
|
124
120
|
end
|
125
|
-
|
126
|
-
self
|
121
|
+
new(transformed_hash)
|
127
122
|
end
|
128
123
|
|
129
124
|
# Deserializes the data based on type
|
130
125
|
# @param string type Data type
|
131
126
|
# @param string value Value to be deserialized
|
132
127
|
# @return [Object] Deserialized data
|
133
|
-
def _deserialize(type, value)
|
128
|
+
def self._deserialize(type, value)
|
134
129
|
case type.to_sym
|
135
130
|
when :Time
|
136
131
|
Time.parse(value)
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
6
|
+
The version of the OpenAPI document: 2.0.30
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -65,6 +65,7 @@ module FattureInCloud_Ruby_Sdk
|
|
65
65
|
# Show invalid properties with the reasons. Usually used together with valid?
|
66
66
|
# @return Array for valid properties with the reasons
|
67
67
|
def list_invalid_properties
|
68
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
68
69
|
invalid_properties = Array.new
|
69
70
|
invalid_properties
|
70
71
|
end
|
@@ -72,6 +73,7 @@ module FattureInCloud_Ruby_Sdk
|
|
72
73
|
# Check to see if the all the properties in the model are valid
|
73
74
|
# @return true if the model is valid
|
74
75
|
def valid?
|
76
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
75
77
|
true
|
76
78
|
end
|
77
79
|
|
@@ -99,37 +101,30 @@ module FattureInCloud_Ruby_Sdk
|
|
99
101
|
# @param [Hash] attributes Model attributes in the form of hash
|
100
102
|
# @return [Object] Returns the model itself
|
101
103
|
def self.build_from_hash(attributes)
|
102
|
-
new.build_from_hash(attributes)
|
103
|
-
end
|
104
|
-
|
105
|
-
# Builds the object from hash
|
106
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
107
|
-
# @return [Object] Returns the model itself
|
108
|
-
def build_from_hash(attributes)
|
109
104
|
return nil unless attributes.is_a?(Hash)
|
110
105
|
attributes = attributes.transform_keys(&:to_sym)
|
111
|
-
|
112
|
-
|
113
|
-
|
106
|
+
transformed_hash = {}
|
107
|
+
openapi_types.each_pair do |key, type|
|
108
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
109
|
+
transformed_hash["#{key}"] = nil
|
114
110
|
elsif type =~ /\AArray<(.*)>/i
|
115
111
|
# check to ensure the input is an array given that the attribute
|
116
112
|
# is documented as an array but the input is not
|
117
|
-
if attributes[
|
118
|
-
|
113
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
114
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
119
115
|
end
|
120
|
-
elsif !attributes[
|
121
|
-
|
116
|
+
elsif !attributes[attribute_map[key]].nil?
|
117
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
122
118
|
end
|
123
119
|
end
|
124
|
-
|
125
|
-
self
|
120
|
+
new(transformed_hash)
|
126
121
|
end
|
127
122
|
|
128
123
|
# Deserializes the data based on type
|
129
124
|
# @param string type Data type
|
130
125
|
# @param string value Value to be deserialized
|
131
126
|
# @return [Object] Deserialized data
|
132
|
-
def _deserialize(type, value)
|
127
|
+
def self._deserialize(type, value)
|
133
128
|
case type.to_sym
|
134
129
|
when :Time
|
135
130
|
Time.parse(value)
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
6
|
+
The version of the OpenAPI document: 2.0.30
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -251,6 +251,9 @@ module FattureInCloud_Ruby_Sdk
|
|
251
251
|
# [Read only] Status of the e-invoice. * **attempt** - We are trying to send the invoice, please wait up to 2 hours * **missing** - The invoice is missing * **not_sent** - The invoice has yet to be sent * **sent** - The invoice was sent * **pending** - The checks for the digital signature and sending are in progress * **processing** - The SDI is delivering the invoice to the customer * **error** - An error occurred while handling the invoice, please try to resend it or contact support * **discarded** - The invoice has been rejected by the SDI, so it must be corrected and re-sent * **not_delivered** - The SDI was unable to deliver the invoice * **accepted** - The customer accepted the invoice * **rejected** - The customer rejected the invoice, so it must be corrected * **no_response** - A response has not yet been received whithin the deadline, contact the customer to ascertain the status of the invoice * **manual_accepted** - The customer accepted the invoice * **manual_rejected** - The customer rejected the invoice
|
252
252
|
attr_accessor :ei_status
|
253
253
|
|
254
|
+
# Issued Document can't be edited
|
255
|
+
attr_accessor :locked
|
256
|
+
|
254
257
|
# Issued document creation date
|
255
258
|
attr_accessor :created_at
|
256
259
|
|
@@ -365,6 +368,7 @@ module FattureInCloud_Ruby_Sdk
|
|
365
368
|
:'attachment_token' => :'attachment_token',
|
366
369
|
:'ei_raw' => :'ei_raw',
|
367
370
|
:'ei_status' => :'ei_status',
|
371
|
+
:'locked' => :'locked',
|
368
372
|
:'created_at' => :'created_at',
|
369
373
|
:'updated_at' => :'updated_at'
|
370
374
|
}
|
@@ -461,6 +465,7 @@ module FattureInCloud_Ruby_Sdk
|
|
461
465
|
:'attachment_token' => :'String',
|
462
466
|
:'ei_raw' => :'Object',
|
463
467
|
:'ei_status' => :'String',
|
468
|
+
:'locked' => :'Boolean',
|
464
469
|
:'created_at' => :'String',
|
465
470
|
:'updated_at' => :'String'
|
466
471
|
}
|
@@ -543,6 +548,7 @@ module FattureInCloud_Ruby_Sdk
|
|
543
548
|
:'attachment_token',
|
544
549
|
:'ei_raw',
|
545
550
|
:'ei_status',
|
551
|
+
:'locked',
|
546
552
|
:'created_at',
|
547
553
|
:'updated_at'
|
548
554
|
])
|
@@ -903,6 +909,10 @@ module FattureInCloud_Ruby_Sdk
|
|
903
909
|
self.ei_status = attributes[:'ei_status']
|
904
910
|
end
|
905
911
|
|
912
|
+
if attributes.key?(:'locked')
|
913
|
+
self.locked = attributes[:'locked']
|
914
|
+
end
|
915
|
+
|
906
916
|
if attributes.key?(:'created_at')
|
907
917
|
self.created_at = attributes[:'created_at']
|
908
918
|
end
|
@@ -915,6 +925,7 @@ module FattureInCloud_Ruby_Sdk
|
|
915
925
|
# Show invalid properties with the reasons. Usually used together with valid?
|
916
926
|
# @return Array for valid properties with the reasons
|
917
927
|
def list_invalid_properties
|
928
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
918
929
|
invalid_properties = Array.new
|
919
930
|
invalid_properties
|
920
931
|
end
|
@@ -922,6 +933,7 @@ module FattureInCloud_Ruby_Sdk
|
|
922
933
|
# Check to see if the all the properties in the model are valid
|
923
934
|
# @return true if the model is valid
|
924
935
|
def valid?
|
936
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
925
937
|
ei_status_validator = EnumAttributeValidator.new('String', ["attempt", "missing", "not_sent", "sent", "pending", "processing", "error", "discarded", "not_delivered", "accepted", "rejected", "no_response", "manual_accepted", "manual_rejected"])
|
926
938
|
return false unless ei_status_validator.valid?(@ei_status)
|
927
939
|
true
|
@@ -1025,6 +1037,7 @@ module FattureInCloud_Ruby_Sdk
|
|
1025
1037
|
attachment_token == o.attachment_token &&
|
1026
1038
|
ei_raw == o.ei_raw &&
|
1027
1039
|
ei_status == o.ei_status &&
|
1040
|
+
locked == o.locked &&
|
1028
1041
|
created_at == o.created_at &&
|
1029
1042
|
updated_at == o.updated_at
|
1030
1043
|
end
|
@@ -1038,44 +1051,37 @@ module FattureInCloud_Ruby_Sdk
|
|
1038
1051
|
# Calculates hash code according to all attributes.
|
1039
1052
|
# @return [Integer] Hash code
|
1040
1053
|
def hash
|
1041
|
-
[id, entity, type, number, numeration, date, year, currency, language, subject, visible_subject, rc_center, notes, rivalsa, cassa, amount_cassa, cassa_taxable, amount_cassa_taxable, cassa2, amount_cassa2, cassa2_taxable, amount_cassa2_taxable, global_cassa_taxable, amount_global_cassa_taxable, withholding_tax, withholding_tax_taxable, other_withholding_tax, stamp_duty, payment_method, use_split_payment, use_gross_prices, e_invoice, ei_data, ei_cassa_type, ei_cassa2_type, ei_withholding_tax_causal, ei_other_withholding_tax_type, ei_other_withholding_tax_causal, items_list, payments_list, template, delivery_note_template, acc_inv_template, h_margins, v_margins, show_payments, show_payment_method, show_totals, show_paypal_button, show_notification_button, show_tspay_button, delivery_note, accompanying_invoice, dn_number, dn_date, dn_ai_packages_number, dn_ai_weight, dn_ai_causal, dn_ai_destination, dn_ai_transporter, dn_ai_notes, is_marked, amount_net, amount_vat, amount_gross, amount_due_discount, amount_rivalsa, amount_rivalsa_taxable, amount_withholding_tax, amount_withholding_tax_taxable, amount_other_withholding_tax, amount_other_withholding_tax_taxable, amount_enasarco_taxable, extra_data, seen_date, next_due_date, url, dn_url, ai_url, attachment_url, attachment_token, ei_raw, ei_status, created_at, updated_at].hash
|
1054
|
+
[id, entity, type, number, numeration, date, year, currency, language, subject, visible_subject, rc_center, notes, rivalsa, cassa, amount_cassa, cassa_taxable, amount_cassa_taxable, cassa2, amount_cassa2, cassa2_taxable, amount_cassa2_taxable, global_cassa_taxable, amount_global_cassa_taxable, withholding_tax, withholding_tax_taxable, other_withholding_tax, stamp_duty, payment_method, use_split_payment, use_gross_prices, e_invoice, ei_data, ei_cassa_type, ei_cassa2_type, ei_withholding_tax_causal, ei_other_withholding_tax_type, ei_other_withholding_tax_causal, items_list, payments_list, template, delivery_note_template, acc_inv_template, h_margins, v_margins, show_payments, show_payment_method, show_totals, show_paypal_button, show_notification_button, show_tspay_button, delivery_note, accompanying_invoice, dn_number, dn_date, dn_ai_packages_number, dn_ai_weight, dn_ai_causal, dn_ai_destination, dn_ai_transporter, dn_ai_notes, is_marked, amount_net, amount_vat, amount_gross, amount_due_discount, amount_rivalsa, amount_rivalsa_taxable, amount_withholding_tax, amount_withholding_tax_taxable, amount_other_withholding_tax, amount_other_withholding_tax_taxable, amount_enasarco_taxable, extra_data, seen_date, next_due_date, url, dn_url, ai_url, attachment_url, attachment_token, ei_raw, ei_status, locked, created_at, updated_at].hash
|
1042
1055
|
end
|
1043
1056
|
|
1044
1057
|
# Builds the object from hash
|
1045
1058
|
# @param [Hash] attributes Model attributes in the form of hash
|
1046
1059
|
# @return [Object] Returns the model itself
|
1047
1060
|
def self.build_from_hash(attributes)
|
1048
|
-
new.build_from_hash(attributes)
|
1049
|
-
end
|
1050
|
-
|
1051
|
-
# Builds the object from hash
|
1052
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
1053
|
-
# @return [Object] Returns the model itself
|
1054
|
-
def build_from_hash(attributes)
|
1055
1061
|
return nil unless attributes.is_a?(Hash)
|
1056
1062
|
attributes = attributes.transform_keys(&:to_sym)
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1063
|
+
transformed_hash = {}
|
1064
|
+
openapi_types.each_pair do |key, type|
|
1065
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
1066
|
+
transformed_hash["#{key}"] = nil
|
1060
1067
|
elsif type =~ /\AArray<(.*)>/i
|
1061
1068
|
# check to ensure the input is an array given that the attribute
|
1062
1069
|
# is documented as an array but the input is not
|
1063
|
-
if attributes[
|
1064
|
-
|
1070
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
1071
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
1065
1072
|
end
|
1066
|
-
elsif !attributes[
|
1067
|
-
|
1073
|
+
elsif !attributes[attribute_map[key]].nil?
|
1074
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
1068
1075
|
end
|
1069
1076
|
end
|
1070
|
-
|
1071
|
-
self
|
1077
|
+
new(transformed_hash)
|
1072
1078
|
end
|
1073
1079
|
|
1074
1080
|
# Deserializes the data based on type
|
1075
1081
|
# @param string type Data type
|
1076
1082
|
# @param string value Value to be deserialized
|
1077
1083
|
# @return [Object] Deserialized data
|
1078
|
-
def _deserialize(type, value)
|
1084
|
+
def self._deserialize(type, value)
|
1079
1085
|
case type.to_sym
|
1080
1086
|
when :Time
|
1081
1087
|
Time.parse(value)
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
6
|
+
The version of the OpenAPI document: 2.0.30
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -32,7 +32,7 @@ module FattureInCloud_Ruby_Sdk
|
|
32
32
|
# E-invoice CUP
|
33
33
|
attr_accessor :cup
|
34
34
|
|
35
|
-
# E-invoice payment method [required for e-invoices](see https://www.fatturapa.gov.it/export/documenti/fatturapa/v1.2.2/Rappresentazione_Tabellare_FattOrdinaria_V1.2.2.pdf for the accepted values of ModalitaPagamento)
|
35
|
+
# E-invoice payment method [required for e-invoices] (see [here](https://www.fatturapa.gov.it/export/documenti/fatturapa/v1.2.2/Rappresentazione_Tabellare_FattOrdinaria_V1.2.2.pdf) for the accepted values of ModalitaPagamento)
|
36
36
|
attr_accessor :payment_method
|
37
37
|
|
38
38
|
# E-invoice bank name
|
@@ -200,6 +200,7 @@ module FattureInCloud_Ruby_Sdk
|
|
200
200
|
# Show invalid properties with the reasons. Usually used together with valid?
|
201
201
|
# @return Array for valid properties with the reasons
|
202
202
|
def list_invalid_properties
|
203
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
203
204
|
invalid_properties = Array.new
|
204
205
|
invalid_properties
|
205
206
|
end
|
@@ -207,6 +208,7 @@ module FattureInCloud_Ruby_Sdk
|
|
207
208
|
# Check to see if the all the properties in the model are valid
|
208
209
|
# @return true if the model is valid
|
209
210
|
def valid?
|
211
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
210
212
|
true
|
211
213
|
end
|
212
214
|
|
@@ -245,37 +247,30 @@ module FattureInCloud_Ruby_Sdk
|
|
245
247
|
# @param [Hash] attributes Model attributes in the form of hash
|
246
248
|
# @return [Object] Returns the model itself
|
247
249
|
def self.build_from_hash(attributes)
|
248
|
-
new.build_from_hash(attributes)
|
249
|
-
end
|
250
|
-
|
251
|
-
# Builds the object from hash
|
252
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
253
|
-
# @return [Object] Returns the model itself
|
254
|
-
def build_from_hash(attributes)
|
255
250
|
return nil unless attributes.is_a?(Hash)
|
256
251
|
attributes = attributes.transform_keys(&:to_sym)
|
257
|
-
|
258
|
-
|
259
|
-
|
252
|
+
transformed_hash = {}
|
253
|
+
openapi_types.each_pair do |key, type|
|
254
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
255
|
+
transformed_hash["#{key}"] = nil
|
260
256
|
elsif type =~ /\AArray<(.*)>/i
|
261
257
|
# check to ensure the input is an array given that the attribute
|
262
258
|
# is documented as an array but the input is not
|
263
|
-
if attributes[
|
264
|
-
|
259
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
260
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
265
261
|
end
|
266
|
-
elsif !attributes[
|
267
|
-
|
262
|
+
elsif !attributes[attribute_map[key]].nil?
|
263
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
268
264
|
end
|
269
265
|
end
|
270
|
-
|
271
|
-
self
|
266
|
+
new(transformed_hash)
|
272
267
|
end
|
273
268
|
|
274
269
|
# Deserializes the data based on type
|
275
270
|
# @param string type Data type
|
276
271
|
# @param string value Value to be deserialized
|
277
272
|
# @return [Object] Deserialized data
|
278
|
-
def _deserialize(type, value)
|
273
|
+
def self._deserialize(type, value)
|
279
274
|
case type.to_sym
|
280
275
|
when :Time
|
281
276
|
Time.parse(value)
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
6
|
+
The version of the OpenAPI document: 2.0.30
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -176,6 +176,7 @@ module FattureInCloud_Ruby_Sdk
|
|
176
176
|
# Show invalid properties with the reasons. Usually used together with valid?
|
177
177
|
# @return Array for valid properties with the reasons
|
178
178
|
def list_invalid_properties
|
179
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
179
180
|
invalid_properties = Array.new
|
180
181
|
invalid_properties
|
181
182
|
end
|
@@ -183,6 +184,7 @@ module FattureInCloud_Ruby_Sdk
|
|
183
184
|
# Check to see if the all the properties in the model are valid
|
184
185
|
# @return true if the model is valid
|
185
186
|
def valid?
|
187
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
186
188
|
true
|
187
189
|
end
|
188
190
|
|
@@ -221,37 +223,30 @@ module FattureInCloud_Ruby_Sdk
|
|
221
223
|
# @param [Hash] attributes Model attributes in the form of hash
|
222
224
|
# @return [Object] Returns the model itself
|
223
225
|
def self.build_from_hash(attributes)
|
224
|
-
new.build_from_hash(attributes)
|
225
|
-
end
|
226
|
-
|
227
|
-
# Builds the object from hash
|
228
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
229
|
-
# @return [Object] Returns the model itself
|
230
|
-
def build_from_hash(attributes)
|
231
226
|
return nil unless attributes.is_a?(Hash)
|
232
227
|
attributes = attributes.transform_keys(&:to_sym)
|
233
|
-
|
234
|
-
|
235
|
-
|
228
|
+
transformed_hash = {}
|
229
|
+
openapi_types.each_pair do |key, type|
|
230
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
231
|
+
transformed_hash["#{key}"] = nil
|
236
232
|
elsif type =~ /\AArray<(.*)>/i
|
237
233
|
# check to ensure the input is an array given that the attribute
|
238
234
|
# is documented as an array but the input is not
|
239
|
-
if attributes[
|
240
|
-
|
235
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
236
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
241
237
|
end
|
242
|
-
elsif !attributes[
|
243
|
-
|
238
|
+
elsif !attributes[attribute_map[key]].nil?
|
239
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
244
240
|
end
|
245
241
|
end
|
246
|
-
|
247
|
-
self
|
242
|
+
new(transformed_hash)
|
248
243
|
end
|
249
244
|
|
250
245
|
# Deserializes the data based on type
|
251
246
|
# @param string type Data type
|
252
247
|
# @param string value Value to be deserialized
|
253
248
|
# @return [Object] Deserialized data
|
254
|
-
def _deserialize(type, value)
|
249
|
+
def self._deserialize(type, value)
|
255
250
|
case type.to_sym
|
256
251
|
when :Time
|
257
252
|
Time.parse(value)
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
6
|
+
The version of the OpenAPI document: 2.0.30
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -236,6 +236,7 @@ module FattureInCloud_Ruby_Sdk
|
|
236
236
|
# Show invalid properties with the reasons. Usually used together with valid?
|
237
237
|
# @return Array for valid properties with the reasons
|
238
238
|
def list_invalid_properties
|
239
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
239
240
|
invalid_properties = Array.new
|
240
241
|
invalid_properties
|
241
242
|
end
|
@@ -243,6 +244,7 @@ module FattureInCloud_Ruby_Sdk
|
|
243
244
|
# Check to see if the all the properties in the model are valid
|
244
245
|
# @return true if the model is valid
|
245
246
|
def valid?
|
247
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
246
248
|
true
|
247
249
|
end
|
248
250
|
|
@@ -287,37 +289,30 @@ module FattureInCloud_Ruby_Sdk
|
|
287
289
|
# @param [Hash] attributes Model attributes in the form of hash
|
288
290
|
# @return [Object] Returns the model itself
|
289
291
|
def self.build_from_hash(attributes)
|
290
|
-
new.build_from_hash(attributes)
|
291
|
-
end
|
292
|
-
|
293
|
-
# Builds the object from hash
|
294
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
295
|
-
# @return [Object] Returns the model itself
|
296
|
-
def build_from_hash(attributes)
|
297
292
|
return nil unless attributes.is_a?(Hash)
|
298
293
|
attributes = attributes.transform_keys(&:to_sym)
|
299
|
-
|
300
|
-
|
301
|
-
|
294
|
+
transformed_hash = {}
|
295
|
+
openapi_types.each_pair do |key, type|
|
296
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
297
|
+
transformed_hash["#{key}"] = nil
|
302
298
|
elsif type =~ /\AArray<(.*)>/i
|
303
299
|
# check to ensure the input is an array given that the attribute
|
304
300
|
# is documented as an array but the input is not
|
305
|
-
if attributes[
|
306
|
-
|
301
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
302
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
307
303
|
end
|
308
|
-
elsif !attributes[
|
309
|
-
|
304
|
+
elsif !attributes[attribute_map[key]].nil?
|
305
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
310
306
|
end
|
311
307
|
end
|
312
|
-
|
313
|
-
self
|
308
|
+
new(transformed_hash)
|
314
309
|
end
|
315
310
|
|
316
311
|
# Deserializes the data based on type
|
317
312
|
# @param string type Data type
|
318
313
|
# @param string value Value to be deserialized
|
319
314
|
# @return [Object] Deserialized data
|
320
|
-
def _deserialize(type, value)
|
315
|
+
def self._deserialize(type, value)
|
321
316
|
case type.to_sym
|
322
317
|
when :Time
|
323
318
|
Time.parse(value)
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
6
|
+
The version of the OpenAPI document: 2.0.30
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -109,6 +109,7 @@ module FattureInCloud_Ruby_Sdk
|
|
109
109
|
# Show invalid properties with the reasons. Usually used together with valid?
|
110
110
|
# @return Array for valid properties with the reasons
|
111
111
|
def list_invalid_properties
|
112
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
112
113
|
invalid_properties = Array.new
|
113
114
|
invalid_properties
|
114
115
|
end
|
@@ -116,6 +117,7 @@ module FattureInCloud_Ruby_Sdk
|
|
116
117
|
# Check to see if the all the properties in the model are valid
|
117
118
|
# @return true if the model is valid
|
118
119
|
def valid?
|
120
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
119
121
|
true
|
120
122
|
end
|
121
123
|
|
@@ -147,37 +149,30 @@ module FattureInCloud_Ruby_Sdk
|
|
147
149
|
# @param [Hash] attributes Model attributes in the form of hash
|
148
150
|
# @return [Object] Returns the model itself
|
149
151
|
def self.build_from_hash(attributes)
|
150
|
-
new.build_from_hash(attributes)
|
151
|
-
end
|
152
|
-
|
153
|
-
# Builds the object from hash
|
154
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
155
|
-
# @return [Object] Returns the model itself
|
156
|
-
def build_from_hash(attributes)
|
157
152
|
return nil unless attributes.is_a?(Hash)
|
158
153
|
attributes = attributes.transform_keys(&:to_sym)
|
159
|
-
|
160
|
-
|
161
|
-
|
154
|
+
transformed_hash = {}
|
155
|
+
openapi_types.each_pair do |key, type|
|
156
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
157
|
+
transformed_hash["#{key}"] = nil
|
162
158
|
elsif type =~ /\AArray<(.*)>/i
|
163
159
|
# check to ensure the input is an array given that the attribute
|
164
160
|
# is documented as an array but the input is not
|
165
|
-
if attributes[
|
166
|
-
|
161
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
162
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
167
163
|
end
|
168
|
-
elsif !attributes[
|
169
|
-
|
164
|
+
elsif !attributes[attribute_map[key]].nil?
|
165
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
170
166
|
end
|
171
167
|
end
|
172
|
-
|
173
|
-
self
|
168
|
+
new(transformed_hash)
|
174
169
|
end
|
175
170
|
|
176
171
|
# Deserializes the data based on type
|
177
172
|
# @param string type Data type
|
178
173
|
# @param string value Value to be deserialized
|
179
174
|
# @return [Object] Deserialized data
|
180
|
-
def _deserialize(type, value)
|
175
|
+
def self._deserialize(type, value)
|
181
176
|
case type.to_sym
|
182
177
|
when :Time
|
183
178
|
Time.parse(value)
|