fattureincloud_ruby_sdk 2.0.17 → 2.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -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 +3 -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 +15 -15
- 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 +15 -20
- data/lib/fattureincloud_ruby_sdk/models/attachment_data.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/cashbook_entry.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_document.rb +15 -20
- 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 +15 -20
- data/lib/fattureincloud_ruby_sdk/models/client.rb +27 -21
- data/lib/fattureincloud_ruby_sdk/models/client_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/company.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/company_info.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/company_info_access_info.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_functions.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_functions_status.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_limits.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/company_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/controlled_company.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_archive_document_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_archive_document_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_cashbook_entry_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_cashbook_entry_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_client_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_client_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_f24_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_f24_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_issued_document_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_issued_document_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_payment_account_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_payment_account_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_payment_method_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_payment_method_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_product_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_product_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_receipt_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_receipt_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_received_document_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_received_document_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_supplier_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_supplier_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_vat_type_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_vat_type_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_webhooks_subscription_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/create_webhooks_subscription_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/currency.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/detailed_country.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/document_template.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/e_invoice_rejection_reason.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/email.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/email_attachment.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/email_data.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/email_data_default_sender_email.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/email_recipient_status.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/email_schedule.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/email_schedule_include.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/email_status.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/entity.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/entity_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/event_type.rb +9 -5
- data/lib/fattureincloud_ruby_sdk/models/f24.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/f24_status.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/function_status.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_archive_document_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_cashbook_entry_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_client_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_company_info_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_e_invoice_rejection_reason_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_email_data_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_existing_issued_document_totals_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_existing_issued_document_totals_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_existing_received_document_totals_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_existing_received_document_totals_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_f24_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_issued_document_pre_create_info_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_issued_document_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_new_issued_document_totals_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_new_issued_document_totals_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_payment_account_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_payment_method_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_product_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_receipt_pre_create_info_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_receipt_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_receipts_monthly_totals_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_received_document_pre_create_info_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_received_document_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_supplier_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_user_info_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_user_info_response_email_confirmation_state.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_user_info_response_info.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_vat_type_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/get_webhooks_subscription_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/issued_document.rb +27 -21
- data/lib/fattureincloud_ruby_sdk/models/issued_document_ei_data.rb +16 -21
- data/lib/fattureincloud_ruby_sdk/models/issued_document_extra_data.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/issued_document_items_list_item.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/issued_document_options.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/issued_document_payments_list_item.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/issued_document_payments_list_item_payment_terms.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_default_values.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_extra_data_default_values.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_items_default_values.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/issued_document_status.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_totals.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/issued_document_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/join_issued_documents_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/language.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_archive_categories_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_archive_documents_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_archive_documents_response_page.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_cashbook_entries_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_cities_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_clients_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_clients_response_page.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_cost_centers_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_countries_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_currencies_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_delivery_notes_default_causals_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_detailed_countries_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_emails_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_emails_response_page.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_f24_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_f24_response_aggregated_data.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_f24_response_aggregation.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_f24_response_page.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_issued_documents_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_issued_documents_response_page.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_languages_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_payment_accounts_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_payment_methods_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_product_categories_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_products_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_products_response_page.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_receipts_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_receipts_response_page.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_received_document_categories_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_received_documents_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_received_documents_response_page.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_revenue_centers_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_suppliers_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_suppliers_response_page.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_templates_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_units_of_measure_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_user_companies_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_user_companies_response_data.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_vat_types_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/list_webhooks_subscriptions_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_archive_document_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_archive_document_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_cashbook_entry_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_cashbook_entry_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_client_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_client_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_f24_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_f24_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_issued_document_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_issued_document_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_payment_account_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_payment_account_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_payment_method_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_payment_method_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_product_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_product_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_receipt_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_receipt_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_received_document_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_received_document_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_supplier_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_supplier_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_vat_type_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_vat_type_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_webhooks_subscription_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/modify_webhooks_subscription_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/monthly_total.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/original_document_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/pagination.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/payment_account.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/payment_account_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/payment_method.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/payment_method_details.rb +15 -20
- 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 +15 -20
- data/lib/fattureincloud_ruby_sdk/models/permissions_fic_issued_documents_detailed.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/product.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/receipt.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/receipt_items_list_item.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/receipt_pre_create_info.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/receipt_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/received_document.rb +27 -21
- data/lib/fattureincloud_ruby_sdk/models/received_document_info.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/received_document_info_default_values.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/received_document_info_items_default_values.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/received_document_items_list_item.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/received_document_payments_list_item.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/received_document_payments_list_item_payment_terms.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/received_document_totals.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/received_document_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/schedule_email_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request_data.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request_options.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_response_data.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/sender_email.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/show_totals_mode.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/supplier.rb +27 -21
- data/lib/fattureincloud_ruby_sdk/models/supplier_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/transform_issued_document_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/upload_archive_attachment_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/upload_f24_attachment_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/upload_issued_document_attachment_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/upload_received_document_attachment_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/user.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/user_company_role.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/vat_item.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/vat_kind.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/vat_type.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_error.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_error_validation_result.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_extra.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_response.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_response_data.rb +15 -20
- data/lib/fattureincloud_ruby_sdk/models/webhooks_subscription.rb +29 -25
- 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.31
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.1.0
|
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)
|
@@ -166,7 +161,7 @@ module FattureInCloud_Ruby_Sdk
|
|
166
161
|
else # model
|
167
162
|
# models (e.g. Pet) or oneOf
|
168
163
|
klass = FattureInCloud_Ruby_Sdk.const_get(type)
|
169
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
164
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
170
165
|
end
|
171
166
|
end
|
172
167
|
|
@@ -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.31
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.1.0
|
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)
|
@@ -166,7 +161,7 @@ module FattureInCloud_Ruby_Sdk
|
|
166
161
|
else # model
|
167
162
|
# models (e.g. Pet) or oneOf
|
168
163
|
klass = FattureInCloud_Ruby_Sdk.const_get(type)
|
169
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
164
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
170
165
|
end
|
171
166
|
end
|
172
167
|
|
@@ -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.31
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.1.0
|
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)
|
@@ -166,7 +161,7 @@ module FattureInCloud_Ruby_Sdk
|
|
166
161
|
else # model
|
167
162
|
# models (e.g. Pet) or oneOf
|
168
163
|
klass = FattureInCloud_Ruby_Sdk.const_get(type)
|
169
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
164
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
170
165
|
end
|
171
166
|
end
|
172
167
|
|
@@ -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.31
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.1.0
|
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
|
|
@@ -167,37 +169,30 @@ module FattureInCloud_Ruby_Sdk
|
|
167
169
|
# @param [Hash] attributes Model attributes in the form of hash
|
168
170
|
# @return [Object] Returns the model itself
|
169
171
|
def self.build_from_hash(attributes)
|
170
|
-
new.build_from_hash(attributes)
|
171
|
-
end
|
172
|
-
|
173
|
-
# Builds the object from hash
|
174
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
175
|
-
# @return [Object] Returns the model itself
|
176
|
-
def build_from_hash(attributes)
|
177
172
|
return nil unless attributes.is_a?(Hash)
|
178
173
|
attributes = attributes.transform_keys(&:to_sym)
|
179
|
-
|
180
|
-
|
181
|
-
|
174
|
+
transformed_hash = {}
|
175
|
+
openapi_types.each_pair do |key, type|
|
176
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
177
|
+
transformed_hash["#{key}"] = nil
|
182
178
|
elsif type =~ /\AArray<(.*)>/i
|
183
179
|
# check to ensure the input is an array given that the attribute
|
184
180
|
# is documented as an array but the input is not
|
185
|
-
if attributes[
|
186
|
-
|
181
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
182
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
187
183
|
end
|
188
|
-
elsif !attributes[
|
189
|
-
|
184
|
+
elsif !attributes[attribute_map[key]].nil?
|
185
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
190
186
|
end
|
191
187
|
end
|
192
|
-
|
193
|
-
self
|
188
|
+
new(transformed_hash)
|
194
189
|
end
|
195
190
|
|
196
191
|
# Deserializes the data based on type
|
197
192
|
# @param string type Data type
|
198
193
|
# @param string value Value to be deserialized
|
199
194
|
# @return [Object] Deserialized data
|
200
|
-
def _deserialize(type, value)
|
195
|
+
def self._deserialize(type, value)
|
201
196
|
case type.to_sym
|
202
197
|
when :Time
|
203
198
|
Time.parse(value)
|
@@ -234,7 +229,7 @@ module FattureInCloud_Ruby_Sdk
|
|
234
229
|
else # model
|
235
230
|
# models (e.g. Pet) or oneOf
|
236
231
|
klass = FattureInCloud_Ruby_Sdk.const_get(type)
|
237
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
232
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
238
233
|
end
|
239
234
|
end
|
240
235
|
|
@@ -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.31
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.1.0
|
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.31
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -77,6 +77,7 @@ module FattureInCloud_Ruby_Sdk
|
|
77
77
|
# Show invalid properties with the reasons. Usually used together with valid?
|
78
78
|
# @return Array for valid properties with the reasons
|
79
79
|
def list_invalid_properties
|
80
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
80
81
|
invalid_properties = Array.new
|
81
82
|
invalid_properties
|
82
83
|
end
|
@@ -84,6 +85,7 @@ module FattureInCloud_Ruby_Sdk
|
|
84
85
|
# Check to see if the all the properties in the model are valid
|
85
86
|
# @return true if the model is valid
|
86
87
|
def valid?
|
88
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
87
89
|
true
|
88
90
|
end
|
89
91
|
|
@@ -112,37 +114,30 @@ module FattureInCloud_Ruby_Sdk
|
|
112
114
|
# @param [Hash] attributes Model attributes in the form of hash
|
113
115
|
# @return [Object] Returns the model itself
|
114
116
|
def self.build_from_hash(attributes)
|
115
|
-
new.build_from_hash(attributes)
|
116
|
-
end
|
117
|
-
|
118
|
-
# Builds the object from hash
|
119
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
120
|
-
# @return [Object] Returns the model itself
|
121
|
-
def build_from_hash(attributes)
|
122
117
|
return nil unless attributes.is_a?(Hash)
|
123
118
|
attributes = attributes.transform_keys(&:to_sym)
|
124
|
-
|
125
|
-
|
126
|
-
|
119
|
+
transformed_hash = {}
|
120
|
+
openapi_types.each_pair do |key, type|
|
121
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
122
|
+
transformed_hash["#{key}"] = nil
|
127
123
|
elsif type =~ /\AArray<(.*)>/i
|
128
124
|
# check to ensure the input is an array given that the attribute
|
129
125
|
# is documented as an array but the input is not
|
130
|
-
if attributes[
|
131
|
-
|
126
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
127
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
132
128
|
end
|
133
|
-
elsif !attributes[
|
134
|
-
|
129
|
+
elsif !attributes[attribute_map[key]].nil?
|
130
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
135
131
|
end
|
136
132
|
end
|
137
|
-
|
138
|
-
self
|
133
|
+
new(transformed_hash)
|
139
134
|
end
|
140
135
|
|
141
136
|
# Deserializes the data based on type
|
142
137
|
# @param string type Data type
|
143
138
|
# @param string value Value to be deserialized
|
144
139
|
# @return [Object] Deserialized data
|
145
|
-
def _deserialize(type, value)
|
140
|
+
def self._deserialize(type, value)
|
146
141
|
case type.to_sym
|
147
142
|
when :Time
|
148
143
|
Time.parse(value)
|
@@ -179,7 +174,7 @@ module FattureInCloud_Ruby_Sdk
|
|
179
174
|
else # model
|
180
175
|
# models (e.g. Pet) or oneOf
|
181
176
|
klass = FattureInCloud_Ruby_Sdk.const_get(type)
|
182
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
177
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
183
178
|
end
|
184
179
|
end
|
185
180
|
|
@@ -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.31
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.1.0
|
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.31
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -147,6 +147,7 @@ module FattureInCloud_Ruby_Sdk
|
|
147
147
|
# Show invalid properties with the reasons. Usually used together with valid?
|
148
148
|
# @return Array for valid properties with the reasons
|
149
149
|
def list_invalid_properties
|
150
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
150
151
|
invalid_properties = Array.new
|
151
152
|
invalid_properties
|
152
153
|
end
|
@@ -154,6 +155,7 @@ module FattureInCloud_Ruby_Sdk
|
|
154
155
|
# Check to see if the all the properties in the model are valid
|
155
156
|
# @return true if the model is valid
|
156
157
|
def valid?
|
158
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
157
159
|
true
|
158
160
|
end
|
159
161
|
|
@@ -189,37 +191,30 @@ module FattureInCloud_Ruby_Sdk
|
|
189
191
|
# @param [Hash] attributes Model attributes in the form of hash
|
190
192
|
# @return [Object] Returns the model itself
|
191
193
|
def self.build_from_hash(attributes)
|
192
|
-
new.build_from_hash(attributes)
|
193
|
-
end
|
194
|
-
|
195
|
-
# Builds the object from hash
|
196
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
197
|
-
# @return [Object] Returns the model itself
|
198
|
-
def build_from_hash(attributes)
|
199
194
|
return nil unless attributes.is_a?(Hash)
|
200
195
|
attributes = attributes.transform_keys(&:to_sym)
|
201
|
-
|
202
|
-
|
203
|
-
|
196
|
+
transformed_hash = {}
|
197
|
+
openapi_types.each_pair do |key, type|
|
198
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
199
|
+
transformed_hash["#{key}"] = nil
|
204
200
|
elsif type =~ /\AArray<(.*)>/i
|
205
201
|
# check to ensure the input is an array given that the attribute
|
206
202
|
# is documented as an array but the input is not
|
207
|
-
if attributes[
|
208
|
-
|
203
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
204
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
209
205
|
end
|
210
|
-
elsif !attributes[
|
211
|
-
|
206
|
+
elsif !attributes[attribute_map[key]].nil?
|
207
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
212
208
|
end
|
213
209
|
end
|
214
|
-
|
215
|
-
self
|
210
|
+
new(transformed_hash)
|
216
211
|
end
|
217
212
|
|
218
213
|
# Deserializes the data based on type
|
219
214
|
# @param string type Data type
|
220
215
|
# @param string value Value to be deserialized
|
221
216
|
# @return [Object] Deserialized data
|
222
|
-
def _deserialize(type, value)
|
217
|
+
def self._deserialize(type, value)
|
223
218
|
case type.to_sym
|
224
219
|
when :Time
|
225
220
|
Time.parse(value)
|
@@ -256,7 +251,7 @@ module FattureInCloud_Ruby_Sdk
|
|
256
251
|
else # model
|
257
252
|
# models (e.g. Pet) or oneOf
|
258
253
|
klass = FattureInCloud_Ruby_Sdk.const_get(type)
|
259
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
254
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
260
255
|
end
|
261
256
|
end
|
262
257
|
|
@@ -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.31
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -75,6 +75,7 @@ module FattureInCloud_Ruby_Sdk
|
|
75
75
|
# Show invalid properties with the reasons. Usually used together with valid?
|
76
76
|
# @return Array for valid properties with the reasons
|
77
77
|
def list_invalid_properties
|
78
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
78
79
|
invalid_properties = Array.new
|
79
80
|
invalid_properties
|
80
81
|
end
|
@@ -82,6 +83,7 @@ module FattureInCloud_Ruby_Sdk
|
|
82
83
|
# Check to see if the all the properties in the model are valid
|
83
84
|
# @return true if the model is valid
|
84
85
|
def valid?
|
86
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
85
87
|
true
|
86
88
|
end
|
87
89
|
|
@@ -110,37 +112,30 @@ module FattureInCloud_Ruby_Sdk
|
|
110
112
|
# @param [Hash] attributes Model attributes in the form of hash
|
111
113
|
# @return [Object] Returns the model itself
|
112
114
|
def self.build_from_hash(attributes)
|
113
|
-
new.build_from_hash(attributes)
|
114
|
-
end
|
115
|
-
|
116
|
-
# Builds the object from hash
|
117
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
118
|
-
# @return [Object] Returns the model itself
|
119
|
-
def build_from_hash(attributes)
|
120
115
|
return nil unless attributes.is_a?(Hash)
|
121
116
|
attributes = attributes.transform_keys(&:to_sym)
|
122
|
-
|
123
|
-
|
124
|
-
|
117
|
+
transformed_hash = {}
|
118
|
+
openapi_types.each_pair do |key, type|
|
119
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
120
|
+
transformed_hash["#{key}"] = nil
|
125
121
|
elsif type =~ /\AArray<(.*)>/i
|
126
122
|
# check to ensure the input is an array given that the attribute
|
127
123
|
# is documented as an array but the input is not
|
128
|
-
if attributes[
|
129
|
-
|
124
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
125
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
130
126
|
end
|
131
|
-
elsif !attributes[
|
132
|
-
|
127
|
+
elsif !attributes[attribute_map[key]].nil?
|
128
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
133
129
|
end
|
134
130
|
end
|
135
|
-
|
136
|
-
self
|
131
|
+
new(transformed_hash)
|
137
132
|
end
|
138
133
|
|
139
134
|
# Deserializes the data based on type
|
140
135
|
# @param string type Data type
|
141
136
|
# @param string value Value to be deserialized
|
142
137
|
# @return [Object] Deserialized data
|
143
|
-
def _deserialize(type, value)
|
138
|
+
def self._deserialize(type, value)
|
144
139
|
case type.to_sym
|
145
140
|
when :Time
|
146
141
|
Time.parse(value)
|
@@ -177,7 +172,7 @@ module FattureInCloud_Ruby_Sdk
|
|
177
172
|
else # model
|
178
173
|
# models (e.g. Pet) or oneOf
|
179
174
|
klass = FattureInCloud_Ruby_Sdk.const_get(type)
|
180
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
175
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
181
176
|
end
|
182
177
|
end
|
183
178
|
|