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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -281,6 +281,7 @@ module FattureInCloud_Ruby_Sdk
|
|
281
281
|
# Show invalid properties with the reasons. Usually used together with valid?
|
282
282
|
# @return Array for valid properties with the reasons
|
283
283
|
def list_invalid_properties
|
284
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
284
285
|
invalid_properties = Array.new
|
285
286
|
invalid_properties
|
286
287
|
end
|
@@ -288,6 +289,7 @@ module FattureInCloud_Ruby_Sdk
|
|
288
289
|
# Check to see if the all the properties in the model are valid
|
289
290
|
# @return true if the model is valid
|
290
291
|
def valid?
|
292
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
291
293
|
true
|
292
294
|
end
|
293
295
|
|
@@ -339,37 +341,30 @@ module FattureInCloud_Ruby_Sdk
|
|
339
341
|
# @param [Hash] attributes Model attributes in the form of hash
|
340
342
|
# @return [Object] Returns the model itself
|
341
343
|
def self.build_from_hash(attributes)
|
342
|
-
new.build_from_hash(attributes)
|
343
|
-
end
|
344
|
-
|
345
|
-
# Builds the object from hash
|
346
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
347
|
-
# @return [Object] Returns the model itself
|
348
|
-
def build_from_hash(attributes)
|
349
344
|
return nil unless attributes.is_a?(Hash)
|
350
345
|
attributes = attributes.transform_keys(&:to_sym)
|
351
|
-
|
352
|
-
|
353
|
-
|
346
|
+
transformed_hash = {}
|
347
|
+
openapi_types.each_pair do |key, type|
|
348
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
349
|
+
transformed_hash["#{key}"] = nil
|
354
350
|
elsif type =~ /\AArray<(.*)>/i
|
355
351
|
# check to ensure the input is an array given that the attribute
|
356
352
|
# is documented as an array but the input is not
|
357
|
-
if attributes[
|
358
|
-
|
353
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
354
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
359
355
|
end
|
360
|
-
elsif !attributes[
|
361
|
-
|
356
|
+
elsif !attributes[attribute_map[key]].nil?
|
357
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
362
358
|
end
|
363
359
|
end
|
364
|
-
|
365
|
-
self
|
360
|
+
new(transformed_hash)
|
366
361
|
end
|
367
362
|
|
368
363
|
# Deserializes the data based on type
|
369
364
|
# @param string type Data type
|
370
365
|
# @param string value Value to be deserialized
|
371
366
|
# @return [Object] Deserialized data
|
372
|
-
def _deserialize(type, value)
|
367
|
+
def self._deserialize(type, value)
|
373
368
|
case type.to_sym
|
374
369
|
when :Time
|
375
370
|
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
|
|
@@ -159,6 +159,7 @@ module FattureInCloud_Ruby_Sdk
|
|
159
159
|
# Show invalid properties with the reasons. Usually used together with valid?
|
160
160
|
# @return Array for valid properties with the reasons
|
161
161
|
def list_invalid_properties
|
162
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
162
163
|
invalid_properties = Array.new
|
163
164
|
invalid_properties
|
164
165
|
end
|
@@ -166,6 +167,7 @@ module FattureInCloud_Ruby_Sdk
|
|
166
167
|
# Check to see if the all the properties in the model are valid
|
167
168
|
# @return true if the model is valid
|
168
169
|
def valid?
|
170
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
169
171
|
true
|
170
172
|
end
|
171
173
|
|
@@ -202,37 +204,30 @@ module FattureInCloud_Ruby_Sdk
|
|
202
204
|
# @param [Hash] attributes Model attributes in the form of hash
|
203
205
|
# @return [Object] Returns the model itself
|
204
206
|
def self.build_from_hash(attributes)
|
205
|
-
new.build_from_hash(attributes)
|
206
|
-
end
|
207
|
-
|
208
|
-
# Builds the object from hash
|
209
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
210
|
-
# @return [Object] Returns the model itself
|
211
|
-
def build_from_hash(attributes)
|
212
207
|
return nil unless attributes.is_a?(Hash)
|
213
208
|
attributes = attributes.transform_keys(&:to_sym)
|
214
|
-
|
215
|
-
|
216
|
-
|
209
|
+
transformed_hash = {}
|
210
|
+
openapi_types.each_pair do |key, type|
|
211
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
212
|
+
transformed_hash["#{key}"] = nil
|
217
213
|
elsif type =~ /\AArray<(.*)>/i
|
218
214
|
# check to ensure the input is an array given that the attribute
|
219
215
|
# is documented as an array but the input is not
|
220
|
-
if attributes[
|
221
|
-
|
216
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
217
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
222
218
|
end
|
223
|
-
elsif !attributes[
|
224
|
-
|
219
|
+
elsif !attributes[attribute_map[key]].nil?
|
220
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
225
221
|
end
|
226
222
|
end
|
227
|
-
|
228
|
-
self
|
223
|
+
new(transformed_hash)
|
229
224
|
end
|
230
225
|
|
231
226
|
# Deserializes the data based on type
|
232
227
|
# @param string type Data type
|
233
228
|
# @param string value Value to be deserialized
|
234
229
|
# @return [Object] Deserialized data
|
235
|
-
def _deserialize(type, value)
|
230
|
+
def self._deserialize(type, value)
|
236
231
|
case type.to_sym
|
237
232
|
when :Time
|
238
233
|
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
|
|
@@ -246,6 +246,7 @@ module FattureInCloud_Ruby_Sdk
|
|
246
246
|
# Show invalid properties with the reasons. Usually used together with valid?
|
247
247
|
# @return Array for valid properties with the reasons
|
248
248
|
def list_invalid_properties
|
249
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
249
250
|
invalid_properties = Array.new
|
250
251
|
invalid_properties
|
251
252
|
end
|
@@ -253,6 +254,7 @@ module FattureInCloud_Ruby_Sdk
|
|
253
254
|
# Check to see if the all the properties in the model are valid
|
254
255
|
# @return true if the model is valid
|
255
256
|
def valid?
|
257
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
256
258
|
true
|
257
259
|
end
|
258
260
|
|
@@ -298,37 +300,30 @@ module FattureInCloud_Ruby_Sdk
|
|
298
300
|
# @param [Hash] attributes Model attributes in the form of hash
|
299
301
|
# @return [Object] Returns the model itself
|
300
302
|
def self.build_from_hash(attributes)
|
301
|
-
new.build_from_hash(attributes)
|
302
|
-
end
|
303
|
-
|
304
|
-
# Builds the object from hash
|
305
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
306
|
-
# @return [Object] Returns the model itself
|
307
|
-
def build_from_hash(attributes)
|
308
303
|
return nil unless attributes.is_a?(Hash)
|
309
304
|
attributes = attributes.transform_keys(&:to_sym)
|
310
|
-
|
311
|
-
|
312
|
-
|
305
|
+
transformed_hash = {}
|
306
|
+
openapi_types.each_pair do |key, type|
|
307
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
308
|
+
transformed_hash["#{key}"] = nil
|
313
309
|
elsif type =~ /\AArray<(.*)>/i
|
314
310
|
# check to ensure the input is an array given that the attribute
|
315
311
|
# is documented as an array but the input is not
|
316
|
-
if attributes[
|
317
|
-
|
312
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
313
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
318
314
|
end
|
319
|
-
elsif !attributes[
|
320
|
-
|
315
|
+
elsif !attributes[attribute_map[key]].nil?
|
316
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
321
317
|
end
|
322
318
|
end
|
323
|
-
|
324
|
-
self
|
319
|
+
new(transformed_hash)
|
325
320
|
end
|
326
321
|
|
327
322
|
# Deserializes the data based on type
|
328
323
|
# @param string type Data type
|
329
324
|
# @param string value Value to be deserialized
|
330
325
|
# @return [Object] Deserialized data
|
331
|
-
def _deserialize(type, value)
|
326
|
+
def self._deserialize(type, value)
|
332
327
|
case type.to_sym
|
333
328
|
when :Time
|
334
329
|
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
|
|
@@ -227,6 +227,7 @@ module FattureInCloud_Ruby_Sdk
|
|
227
227
|
# Show invalid properties with the reasons. Usually used together with valid?
|
228
228
|
# @return Array for valid properties with the reasons
|
229
229
|
def list_invalid_properties
|
230
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
230
231
|
invalid_properties = Array.new
|
231
232
|
invalid_properties
|
232
233
|
end
|
@@ -234,6 +235,7 @@ module FattureInCloud_Ruby_Sdk
|
|
234
235
|
# Check to see if the all the properties in the model are valid
|
235
236
|
# @return true if the model is valid
|
236
237
|
def valid?
|
238
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
237
239
|
true
|
238
240
|
end
|
239
241
|
|
@@ -275,37 +277,30 @@ module FattureInCloud_Ruby_Sdk
|
|
275
277
|
# @param [Hash] attributes Model attributes in the form of hash
|
276
278
|
# @return [Object] Returns the model itself
|
277
279
|
def self.build_from_hash(attributes)
|
278
|
-
new.build_from_hash(attributes)
|
279
|
-
end
|
280
|
-
|
281
|
-
# Builds the object from hash
|
282
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
283
|
-
# @return [Object] Returns the model itself
|
284
|
-
def build_from_hash(attributes)
|
285
280
|
return nil unless attributes.is_a?(Hash)
|
286
281
|
attributes = attributes.transform_keys(&:to_sym)
|
287
|
-
|
288
|
-
|
289
|
-
|
282
|
+
transformed_hash = {}
|
283
|
+
openapi_types.each_pair do |key, type|
|
284
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
285
|
+
transformed_hash["#{key}"] = nil
|
290
286
|
elsif type =~ /\AArray<(.*)>/i
|
291
287
|
# check to ensure the input is an array given that the attribute
|
292
288
|
# is documented as an array but the input is not
|
293
|
-
if attributes[
|
294
|
-
|
289
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
290
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
295
291
|
end
|
296
|
-
elsif !attributes[
|
297
|
-
|
292
|
+
elsif !attributes[attribute_map[key]].nil?
|
293
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
298
294
|
end
|
299
295
|
end
|
300
|
-
|
301
|
-
self
|
296
|
+
new(transformed_hash)
|
302
297
|
end
|
303
298
|
|
304
299
|
# Deserializes the data based on type
|
305
300
|
# @param string type Data type
|
306
301
|
# @param string value Value to be deserialized
|
307
302
|
# @return [Object] Deserialized data
|
308
|
-
def _deserialize(type, value)
|
303
|
+
def self._deserialize(type, value)
|
309
304
|
case type.to_sym
|
310
305
|
when :Time
|
311
306
|
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
|
|
@@ -106,6 +106,7 @@ module FattureInCloud_Ruby_Sdk
|
|
106
106
|
# Show invalid properties with the reasons. Usually used together with valid?
|
107
107
|
# @return Array for valid properties with the reasons
|
108
108
|
def list_invalid_properties
|
109
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
109
110
|
invalid_properties = Array.new
|
110
111
|
invalid_properties
|
111
112
|
end
|
@@ -113,6 +114,7 @@ module FattureInCloud_Ruby_Sdk
|
|
113
114
|
# Check to see if the all the properties in the model are valid
|
114
115
|
# @return true if the model is valid
|
115
116
|
def valid?
|
117
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
116
118
|
true
|
117
119
|
end
|
118
120
|
|
@@ -144,37 +146,30 @@ module FattureInCloud_Ruby_Sdk
|
|
144
146
|
# @param [Hash] attributes Model attributes in the form of hash
|
145
147
|
# @return [Object] Returns the model itself
|
146
148
|
def self.build_from_hash(attributes)
|
147
|
-
new.build_from_hash(attributes)
|
148
|
-
end
|
149
|
-
|
150
|
-
# Builds the object from hash
|
151
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
152
|
-
# @return [Object] Returns the model itself
|
153
|
-
def build_from_hash(attributes)
|
154
149
|
return nil unless attributes.is_a?(Hash)
|
155
150
|
attributes = attributes.transform_keys(&:to_sym)
|
156
|
-
|
157
|
-
|
158
|
-
|
151
|
+
transformed_hash = {}
|
152
|
+
openapi_types.each_pair do |key, type|
|
153
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
154
|
+
transformed_hash["#{key}"] = nil
|
159
155
|
elsif type =~ /\AArray<(.*)>/i
|
160
156
|
# check to ensure the input is an array given that the attribute
|
161
157
|
# is documented as an array but the input is not
|
162
|
-
if attributes[
|
163
|
-
|
158
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
159
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
164
160
|
end
|
165
|
-
elsif !attributes[
|
166
|
-
|
161
|
+
elsif !attributes[attribute_map[key]].nil?
|
162
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
167
163
|
end
|
168
164
|
end
|
169
|
-
|
170
|
-
self
|
165
|
+
new(transformed_hash)
|
171
166
|
end
|
172
167
|
|
173
168
|
# Deserializes the data based on type
|
174
169
|
# @param string type Data type
|
175
170
|
# @param string value Value to be deserialized
|
176
171
|
# @return [Object] Deserialized data
|
177
|
-
def _deserialize(type, value)
|
172
|
+
def self._deserialize(type, value)
|
178
173
|
case type.to_sym
|
179
174
|
when :Time
|
180
175
|
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
|
|
@@ -127,6 +127,7 @@ module FattureInCloud_Ruby_Sdk
|
|
127
127
|
# Show invalid properties with the reasons. Usually used together with valid?
|
128
128
|
# @return Array for valid properties with the reasons
|
129
129
|
def list_invalid_properties
|
130
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
130
131
|
invalid_properties = Array.new
|
131
132
|
invalid_properties
|
132
133
|
end
|
@@ -134,6 +135,7 @@ module FattureInCloud_Ruby_Sdk
|
|
134
135
|
# Check to see if the all the properties in the model are valid
|
135
136
|
# @return true if the model is valid
|
136
137
|
def valid?
|
138
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
137
139
|
true
|
138
140
|
end
|
139
141
|
|
@@ -166,37 +168,30 @@ module FattureInCloud_Ruby_Sdk
|
|
166
168
|
# @param [Hash] attributes Model attributes in the form of hash
|
167
169
|
# @return [Object] Returns the model itself
|
168
170
|
def self.build_from_hash(attributes)
|
169
|
-
new.build_from_hash(attributes)
|
170
|
-
end
|
171
|
-
|
172
|
-
# Builds the object from hash
|
173
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
174
|
-
# @return [Object] Returns the model itself
|
175
|
-
def build_from_hash(attributes)
|
176
171
|
return nil unless attributes.is_a?(Hash)
|
177
172
|
attributes = attributes.transform_keys(&:to_sym)
|
178
|
-
|
179
|
-
|
180
|
-
|
173
|
+
transformed_hash = {}
|
174
|
+
openapi_types.each_pair do |key, type|
|
175
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
176
|
+
transformed_hash["#{key}"] = nil
|
181
177
|
elsif type =~ /\AArray<(.*)>/i
|
182
178
|
# check to ensure the input is an array given that the attribute
|
183
179
|
# is documented as an array but the input is not
|
184
|
-
if attributes[
|
185
|
-
|
180
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
181
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
186
182
|
end
|
187
|
-
elsif !attributes[
|
188
|
-
|
183
|
+
elsif !attributes[attribute_map[key]].nil?
|
184
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
189
185
|
end
|
190
186
|
end
|
191
|
-
|
192
|
-
self
|
187
|
+
new(transformed_hash)
|
193
188
|
end
|
194
189
|
|
195
190
|
# Deserializes the data based on type
|
196
191
|
# @param string type Data type
|
197
192
|
# @param string value Value to be deserialized
|
198
193
|
# @return [Object] Deserialized data
|
199
|
-
def _deserialize(type, value)
|
194
|
+
def self._deserialize(type, value)
|
200
195
|
case type.to_sym
|
201
196
|
when :Time
|
202
197
|
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
|
|
@@ -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
|
|
@@ -91,6 +91,9 @@ module FattureInCloud_Ruby_Sdk
|
|
91
91
|
# [Write Only] Received document attachment token returned by POST /received_documents/attachment
|
92
92
|
attr_accessor :attachment_token
|
93
93
|
|
94
|
+
# Received Document can't be edited
|
95
|
+
attr_accessor :locked
|
96
|
+
|
94
97
|
# Received document creation date
|
95
98
|
attr_accessor :created_at
|
96
99
|
|
@@ -149,6 +152,7 @@ module FattureInCloud_Ruby_Sdk
|
|
149
152
|
:'attachment_preview_url' => :'attachment_preview_url',
|
150
153
|
:'auto_calculate' => :'auto_calculate',
|
151
154
|
:'attachment_token' => :'attachment_token',
|
155
|
+
:'locked' => :'locked',
|
152
156
|
:'created_at' => :'created_at',
|
153
157
|
:'updated_at' => :'updated_at'
|
154
158
|
}
|
@@ -189,6 +193,7 @@ module FattureInCloud_Ruby_Sdk
|
|
189
193
|
:'attachment_preview_url' => :'String',
|
190
194
|
:'auto_calculate' => :'Boolean',
|
191
195
|
:'attachment_token' => :'String',
|
196
|
+
:'locked' => :'Boolean',
|
192
197
|
:'created_at' => :'String',
|
193
198
|
:'updated_at' => :'String'
|
194
199
|
}
|
@@ -221,6 +226,7 @@ module FattureInCloud_Ruby_Sdk
|
|
221
226
|
:'attachment_preview_url',
|
222
227
|
:'auto_calculate',
|
223
228
|
:'attachment_token',
|
229
|
+
:'locked',
|
224
230
|
:'created_at',
|
225
231
|
:'updated_at'
|
226
232
|
])
|
@@ -355,6 +361,10 @@ module FattureInCloud_Ruby_Sdk
|
|
355
361
|
self.attachment_token = attributes[:'attachment_token']
|
356
362
|
end
|
357
363
|
|
364
|
+
if attributes.key?(:'locked')
|
365
|
+
self.locked = attributes[:'locked']
|
366
|
+
end
|
367
|
+
|
358
368
|
if attributes.key?(:'created_at')
|
359
369
|
self.created_at = attributes[:'created_at']
|
360
370
|
end
|
@@ -367,6 +377,7 @@ module FattureInCloud_Ruby_Sdk
|
|
367
377
|
# Show invalid properties with the reasons. Usually used together with valid?
|
368
378
|
# @return Array for valid properties with the reasons
|
369
379
|
def list_invalid_properties
|
380
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
370
381
|
invalid_properties = Array.new
|
371
382
|
invalid_properties
|
372
383
|
end
|
@@ -374,6 +385,7 @@ module FattureInCloud_Ruby_Sdk
|
|
374
385
|
# Check to see if the all the properties in the model are valid
|
375
386
|
# @return true if the model is valid
|
376
387
|
def valid?
|
388
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
377
389
|
true
|
378
390
|
end
|
379
391
|
|
@@ -409,6 +421,7 @@ module FattureInCloud_Ruby_Sdk
|
|
409
421
|
attachment_preview_url == o.attachment_preview_url &&
|
410
422
|
auto_calculate == o.auto_calculate &&
|
411
423
|
attachment_token == o.attachment_token &&
|
424
|
+
locked == o.locked &&
|
412
425
|
created_at == o.created_at &&
|
413
426
|
updated_at == o.updated_at
|
414
427
|
end
|
@@ -422,44 +435,37 @@ module FattureInCloud_Ruby_Sdk
|
|
422
435
|
# Calculates hash code according to all attributes.
|
423
436
|
# @return [Integer] Hash code
|
424
437
|
def hash
|
425
|
-
[id, type, entity, date, category, description, amount_net, amount_vat, amount_withholding_tax, amount_other_withholding_tax, amount_gross, amortization, rc_center, invoice_number, is_marked, is_detailed, e_invoice, next_due_date, currency, tax_deductibility, vat_deductibility, items_list, payments_list, attachment_url, attachment_preview_url, auto_calculate, attachment_token, created_at, updated_at].hash
|
438
|
+
[id, type, entity, date, category, description, amount_net, amount_vat, amount_withholding_tax, amount_other_withholding_tax, amount_gross, amortization, rc_center, invoice_number, is_marked, is_detailed, e_invoice, next_due_date, currency, tax_deductibility, vat_deductibility, items_list, payments_list, attachment_url, attachment_preview_url, auto_calculate, attachment_token, locked, created_at, updated_at].hash
|
426
439
|
end
|
427
440
|
|
428
441
|
# Builds the object from hash
|
429
442
|
# @param [Hash] attributes Model attributes in the form of hash
|
430
443
|
# @return [Object] Returns the model itself
|
431
444
|
def self.build_from_hash(attributes)
|
432
|
-
new.build_from_hash(attributes)
|
433
|
-
end
|
434
|
-
|
435
|
-
# Builds the object from hash
|
436
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
437
|
-
# @return [Object] Returns the model itself
|
438
|
-
def build_from_hash(attributes)
|
439
445
|
return nil unless attributes.is_a?(Hash)
|
440
446
|
attributes = attributes.transform_keys(&:to_sym)
|
441
|
-
|
442
|
-
|
443
|
-
|
447
|
+
transformed_hash = {}
|
448
|
+
openapi_types.each_pair do |key, type|
|
449
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
450
|
+
transformed_hash["#{key}"] = nil
|
444
451
|
elsif type =~ /\AArray<(.*)>/i
|
445
452
|
# check to ensure the input is an array given that the attribute
|
446
453
|
# is documented as an array but the input is not
|
447
|
-
if attributes[
|
448
|
-
|
454
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
455
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
449
456
|
end
|
450
|
-
elsif !attributes[
|
451
|
-
|
457
|
+
elsif !attributes[attribute_map[key]].nil?
|
458
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
452
459
|
end
|
453
460
|
end
|
454
|
-
|
455
|
-
self
|
461
|
+
new(transformed_hash)
|
456
462
|
end
|
457
463
|
|
458
464
|
# Deserializes the data based on type
|
459
465
|
# @param string type Data type
|
460
466
|
# @param string value Value to be deserialized
|
461
467
|
# @return [Object] Deserialized data
|
462
|
-
def _deserialize(type, value)
|
468
|
+
def self._deserialize(type, value)
|
463
469
|
case type.to_sym
|
464
470
|
when :Time
|
465
471
|
Time.parse(value)
|