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
|
|
@@ -87,6 +87,7 @@ module FattureInCloud_Ruby_Sdk
|
|
87
87
|
# Show invalid properties with the reasons. Usually used together with valid?
|
88
88
|
# @return Array for valid properties with the reasons
|
89
89
|
def list_invalid_properties
|
90
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
90
91
|
invalid_properties = Array.new
|
91
92
|
invalid_properties
|
92
93
|
end
|
@@ -94,6 +95,7 @@ module FattureInCloud_Ruby_Sdk
|
|
94
95
|
# Check to see if the all the properties in the model are valid
|
95
96
|
# @return true if the model is valid
|
96
97
|
def valid?
|
98
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
97
99
|
true
|
98
100
|
end
|
99
101
|
|
@@ -123,37 +125,30 @@ module FattureInCloud_Ruby_Sdk
|
|
123
125
|
# @param [Hash] attributes Model attributes in the form of hash
|
124
126
|
# @return [Object] Returns the model itself
|
125
127
|
def self.build_from_hash(attributes)
|
126
|
-
new.build_from_hash(attributes)
|
127
|
-
end
|
128
|
-
|
129
|
-
# Builds the object from hash
|
130
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
131
|
-
# @return [Object] Returns the model itself
|
132
|
-
def build_from_hash(attributes)
|
133
128
|
return nil unless attributes.is_a?(Hash)
|
134
129
|
attributes = attributes.transform_keys(&:to_sym)
|
135
|
-
|
136
|
-
|
137
|
-
|
130
|
+
transformed_hash = {}
|
131
|
+
openapi_types.each_pair do |key, type|
|
132
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
133
|
+
transformed_hash["#{key}"] = nil
|
138
134
|
elsif type =~ /\AArray<(.*)>/i
|
139
135
|
# check to ensure the input is an array given that the attribute
|
140
136
|
# is documented as an array but the input is not
|
141
|
-
if attributes[
|
142
|
-
|
137
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
138
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
143
139
|
end
|
144
|
-
elsif !attributes[
|
145
|
-
|
140
|
+
elsif !attributes[attribute_map[key]].nil?
|
141
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
146
142
|
end
|
147
143
|
end
|
148
|
-
|
149
|
-
self
|
144
|
+
new(transformed_hash)
|
150
145
|
end
|
151
146
|
|
152
147
|
# Deserializes the data based on type
|
153
148
|
# @param string type Data type
|
154
149
|
# @param string value Value to be deserialized
|
155
150
|
# @return [Object] Deserialized data
|
156
|
-
def _deserialize(type, value)
|
151
|
+
def self._deserialize(type, value)
|
157
152
|
case type.to_sym
|
158
153
|
when :Time
|
159
154
|
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
|
|
@@ -59,6 +59,9 @@ module FattureInCloud_Ruby_Sdk
|
|
59
59
|
# Client country
|
60
60
|
attr_accessor :country
|
61
61
|
|
62
|
+
# Client country iso code
|
63
|
+
attr_accessor :country_iso
|
64
|
+
|
62
65
|
# Client email
|
63
66
|
attr_accessor :email
|
64
67
|
|
@@ -162,6 +165,7 @@ module FattureInCloud_Ruby_Sdk
|
|
162
165
|
:'address_province' => :'address_province',
|
163
166
|
:'address_extra' => :'address_extra',
|
164
167
|
:'country' => :'country',
|
168
|
+
:'country_iso' => :'country_iso',
|
165
169
|
:'email' => :'email',
|
166
170
|
:'certified_email' => :'certified_email',
|
167
171
|
:'phone' => :'phone',
|
@@ -210,6 +214,7 @@ module FattureInCloud_Ruby_Sdk
|
|
210
214
|
:'address_province' => :'String',
|
211
215
|
:'address_extra' => :'String',
|
212
216
|
:'country' => :'String',
|
217
|
+
:'country_iso' => :'String',
|
213
218
|
:'email' => :'String',
|
214
219
|
:'certified_email' => :'String',
|
215
220
|
:'phone' => :'String',
|
@@ -253,6 +258,7 @@ module FattureInCloud_Ruby_Sdk
|
|
253
258
|
:'address_province',
|
254
259
|
:'address_extra',
|
255
260
|
:'country',
|
261
|
+
:'country_iso',
|
256
262
|
:'email',
|
257
263
|
:'certified_email',
|
258
264
|
:'phone',
|
@@ -351,6 +357,10 @@ module FattureInCloud_Ruby_Sdk
|
|
351
357
|
self.country = attributes[:'country']
|
352
358
|
end
|
353
359
|
|
360
|
+
if attributes.key?(:'country_iso')
|
361
|
+
self.country_iso = attributes[:'country_iso']
|
362
|
+
end
|
363
|
+
|
354
364
|
if attributes.key?(:'email')
|
355
365
|
self.email = attributes[:'email']
|
356
366
|
end
|
@@ -445,6 +455,7 @@ module FattureInCloud_Ruby_Sdk
|
|
445
455
|
# Show invalid properties with the reasons. Usually used together with valid?
|
446
456
|
# @return Array for valid properties with the reasons
|
447
457
|
def list_invalid_properties
|
458
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
448
459
|
invalid_properties = Array.new
|
449
460
|
invalid_properties
|
450
461
|
end
|
@@ -452,6 +463,7 @@ module FattureInCloud_Ruby_Sdk
|
|
452
463
|
# Check to see if the all the properties in the model are valid
|
453
464
|
# @return true if the model is valid
|
454
465
|
def valid?
|
466
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
455
467
|
true
|
456
468
|
end
|
457
469
|
|
@@ -475,6 +487,7 @@ module FattureInCloud_Ruby_Sdk
|
|
475
487
|
address_province == o.address_province &&
|
476
488
|
address_extra == o.address_extra &&
|
477
489
|
country == o.country &&
|
490
|
+
country_iso == o.country_iso &&
|
478
491
|
email == o.email &&
|
479
492
|
certified_email == o.certified_email &&
|
480
493
|
phone == o.phone &&
|
@@ -508,44 +521,37 @@ module FattureInCloud_Ruby_Sdk
|
|
508
521
|
# Calculates hash code according to all attributes.
|
509
522
|
# @return [Integer] Hash code
|
510
523
|
def hash
|
511
|
-
[id, code, name, type, first_name, last_name, contact_person, vat_number, tax_code, address_street, address_postal_code, address_city, address_province, address_extra, country, email, certified_email, phone, fax, notes, default_vat, default_payment_terms, default_payment_terms_type, default_payment_method, bank_name, bank_iban, bank_swift_code, shipping_address, e_invoice, ei_code, discount_highlight, default_discount, has_intent_declaration, intent_declaration_protocol_number, intent_declaration_protocol_date, created_at, updated_at].hash
|
524
|
+
[id, code, name, type, first_name, last_name, contact_person, vat_number, tax_code, address_street, address_postal_code, address_city, address_province, address_extra, country, country_iso, email, certified_email, phone, fax, notes, default_vat, default_payment_terms, default_payment_terms_type, default_payment_method, bank_name, bank_iban, bank_swift_code, shipping_address, e_invoice, ei_code, discount_highlight, default_discount, has_intent_declaration, intent_declaration_protocol_number, intent_declaration_protocol_date, created_at, updated_at].hash
|
512
525
|
end
|
513
526
|
|
514
527
|
# Builds the object from hash
|
515
528
|
# @param [Hash] attributes Model attributes in the form of hash
|
516
529
|
# @return [Object] Returns the model itself
|
517
530
|
def self.build_from_hash(attributes)
|
518
|
-
new.build_from_hash(attributes)
|
519
|
-
end
|
520
|
-
|
521
|
-
# Builds the object from hash
|
522
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
523
|
-
# @return [Object] Returns the model itself
|
524
|
-
def build_from_hash(attributes)
|
525
531
|
return nil unless attributes.is_a?(Hash)
|
526
532
|
attributes = attributes.transform_keys(&:to_sym)
|
527
|
-
|
528
|
-
|
529
|
-
|
533
|
+
transformed_hash = {}
|
534
|
+
openapi_types.each_pair do |key, type|
|
535
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
536
|
+
transformed_hash["#{key}"] = nil
|
530
537
|
elsif type =~ /\AArray<(.*)>/i
|
531
538
|
# check to ensure the input is an array given that the attribute
|
532
539
|
# is documented as an array but the input is not
|
533
|
-
if attributes[
|
534
|
-
|
540
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
541
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
535
542
|
end
|
536
|
-
elsif !attributes[
|
537
|
-
|
543
|
+
elsif !attributes[attribute_map[key]].nil?
|
544
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
538
545
|
end
|
539
546
|
end
|
540
|
-
|
541
|
-
self
|
547
|
+
new(transformed_hash)
|
542
548
|
end
|
543
549
|
|
544
550
|
# Deserializes the data based on type
|
545
551
|
# @param string type Data type
|
546
552
|
# @param string value Value to be deserialized
|
547
553
|
# @return [Object] Deserialized data
|
548
|
-
def _deserialize(type, value)
|
554
|
+
def self._deserialize(type, value)
|
549
555
|
case type.to_sym
|
550
556
|
when :Time
|
551
557
|
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
|
|
@@ -149,6 +149,7 @@ module FattureInCloud_Ruby_Sdk
|
|
149
149
|
# Show invalid properties with the reasons. Usually used together with valid?
|
150
150
|
# @return Array for valid properties with the reasons
|
151
151
|
def list_invalid_properties
|
152
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
152
153
|
invalid_properties = Array.new
|
153
154
|
invalid_properties
|
154
155
|
end
|
@@ -156,6 +157,7 @@ module FattureInCloud_Ruby_Sdk
|
|
156
157
|
# Check to see if the all the properties in the model are valid
|
157
158
|
# @return true if the model is valid
|
158
159
|
def valid?
|
160
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
159
161
|
true
|
160
162
|
end
|
161
163
|
|
@@ -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)
|
@@ -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
|
|
@@ -155,6 +155,7 @@ module FattureInCloud_Ruby_Sdk
|
|
155
155
|
# Show invalid properties with the reasons. Usually used together with valid?
|
156
156
|
# @return Array for valid properties with the reasons
|
157
157
|
def list_invalid_properties
|
158
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
158
159
|
invalid_properties = Array.new
|
159
160
|
invalid_properties
|
160
161
|
end
|
@@ -162,6 +163,7 @@ module FattureInCloud_Ruby_Sdk
|
|
162
163
|
# Check to see if the all the properties in the model are valid
|
163
164
|
# @return true if the model is valid
|
164
165
|
def valid?
|
166
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
165
167
|
true
|
166
168
|
end
|
167
169
|
|
@@ -196,37 +198,30 @@ module FattureInCloud_Ruby_Sdk
|
|
196
198
|
# @param [Hash] attributes Model attributes in the form of hash
|
197
199
|
# @return [Object] Returns the model itself
|
198
200
|
def self.build_from_hash(attributes)
|
199
|
-
new.build_from_hash(attributes)
|
200
|
-
end
|
201
|
-
|
202
|
-
# Builds the object from hash
|
203
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
204
|
-
# @return [Object] Returns the model itself
|
205
|
-
def build_from_hash(attributes)
|
206
201
|
return nil unless attributes.is_a?(Hash)
|
207
202
|
attributes = attributes.transform_keys(&:to_sym)
|
208
|
-
|
209
|
-
|
210
|
-
|
203
|
+
transformed_hash = {}
|
204
|
+
openapi_types.each_pair do |key, type|
|
205
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
206
|
+
transformed_hash["#{key}"] = nil
|
211
207
|
elsif type =~ /\AArray<(.*)>/i
|
212
208
|
# check to ensure the input is an array given that the attribute
|
213
209
|
# is documented as an array but the input is not
|
214
|
-
if attributes[
|
215
|
-
|
210
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
211
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
216
212
|
end
|
217
|
-
elsif !attributes[
|
218
|
-
|
213
|
+
elsif !attributes[attribute_map[key]].nil?
|
214
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
219
215
|
end
|
220
216
|
end
|
221
|
-
|
222
|
-
self
|
217
|
+
new(transformed_hash)
|
223
218
|
end
|
224
219
|
|
225
220
|
# Deserializes the data based on type
|
226
221
|
# @param string type Data type
|
227
222
|
# @param string value Value to be deserialized
|
228
223
|
# @return [Object] Deserialized data
|
229
|
-
def _deserialize(type, value)
|
224
|
+
def self._deserialize(type, value)
|
230
225
|
case type.to_sym
|
231
226
|
when :Time
|
232
227
|
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
|
|
@@ -105,6 +105,7 @@ module FattureInCloud_Ruby_Sdk
|
|
105
105
|
# Show invalid properties with the reasons. Usually used together with valid?
|
106
106
|
# @return Array for valid properties with the reasons
|
107
107
|
def list_invalid_properties
|
108
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
108
109
|
invalid_properties = Array.new
|
109
110
|
invalid_properties
|
110
111
|
end
|
@@ -112,6 +113,7 @@ module FattureInCloud_Ruby_Sdk
|
|
112
113
|
# Check to see if the all the properties in the model are valid
|
113
114
|
# @return true if the model is valid
|
114
115
|
def valid?
|
116
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
115
117
|
true
|
116
118
|
end
|
117
119
|
|
@@ -141,37 +143,30 @@ module FattureInCloud_Ruby_Sdk
|
|
141
143
|
# @param [Hash] attributes Model attributes in the form of hash
|
142
144
|
# @return [Object] Returns the model itself
|
143
145
|
def self.build_from_hash(attributes)
|
144
|
-
new.build_from_hash(attributes)
|
145
|
-
end
|
146
|
-
|
147
|
-
# Builds the object from hash
|
148
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
149
|
-
# @return [Object] Returns the model itself
|
150
|
-
def build_from_hash(attributes)
|
151
146
|
return nil unless attributes.is_a?(Hash)
|
152
147
|
attributes = attributes.transform_keys(&:to_sym)
|
153
|
-
|
154
|
-
|
155
|
-
|
148
|
+
transformed_hash = {}
|
149
|
+
openapi_types.each_pair do |key, type|
|
150
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
151
|
+
transformed_hash["#{key}"] = nil
|
156
152
|
elsif type =~ /\AArray<(.*)>/i
|
157
153
|
# check to ensure the input is an array given that the attribute
|
158
154
|
# is documented as an array but the input is not
|
159
|
-
if attributes[
|
160
|
-
|
155
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
156
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
161
157
|
end
|
162
|
-
elsif !attributes[
|
163
|
-
|
158
|
+
elsif !attributes[attribute_map[key]].nil?
|
159
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
164
160
|
end
|
165
161
|
end
|
166
|
-
|
167
|
-
self
|
162
|
+
new(transformed_hash)
|
168
163
|
end
|
169
164
|
|
170
165
|
# Deserializes the data based on type
|
171
166
|
# @param string type Data type
|
172
167
|
# @param string value Value to be deserialized
|
173
168
|
# @return [Object] Deserialized data
|
174
|
-
def _deserialize(type, value)
|
169
|
+
def self._deserialize(type, value)
|
175
170
|
case type.to_sym
|
176
171
|
when :Time
|
177
172
|
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
|
|
@@ -85,6 +85,7 @@ module FattureInCloud_Ruby_Sdk
|
|
85
85
|
# Show invalid properties with the reasons. Usually used together with valid?
|
86
86
|
# @return Array for valid properties with the reasons
|
87
87
|
def list_invalid_properties
|
88
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
88
89
|
invalid_properties = Array.new
|
89
90
|
invalid_properties
|
90
91
|
end
|
@@ -92,6 +93,7 @@ module FattureInCloud_Ruby_Sdk
|
|
92
93
|
# Check to see if the all the properties in the model are valid
|
93
94
|
# @return true if the model is valid
|
94
95
|
def valid?
|
96
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
95
97
|
true
|
96
98
|
end
|
97
99
|
|
@@ -121,37 +123,30 @@ module FattureInCloud_Ruby_Sdk
|
|
121
123
|
# @param [Hash] attributes Model attributes in the form of hash
|
122
124
|
# @return [Object] Returns the model itself
|
123
125
|
def self.build_from_hash(attributes)
|
124
|
-
new.build_from_hash(attributes)
|
125
|
-
end
|
126
|
-
|
127
|
-
# Builds the object from hash
|
128
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
129
|
-
# @return [Object] Returns the model itself
|
130
|
-
def build_from_hash(attributes)
|
131
126
|
return nil unless attributes.is_a?(Hash)
|
132
127
|
attributes = attributes.transform_keys(&:to_sym)
|
133
|
-
|
134
|
-
|
135
|
-
|
128
|
+
transformed_hash = {}
|
129
|
+
openapi_types.each_pair do |key, type|
|
130
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
131
|
+
transformed_hash["#{key}"] = nil
|
136
132
|
elsif type =~ /\AArray<(.*)>/i
|
137
133
|
# check to ensure the input is an array given that the attribute
|
138
134
|
# is documented as an array but the input is not
|
139
|
-
if attributes[
|
140
|
-
|
135
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
136
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
141
137
|
end
|
142
|
-
elsif !attributes[
|
143
|
-
|
138
|
+
elsif !attributes[attribute_map[key]].nil?
|
139
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
144
140
|
end
|
145
141
|
end
|
146
|
-
|
147
|
-
self
|
142
|
+
new(transformed_hash)
|
148
143
|
end
|
149
144
|
|
150
145
|
# Deserializes the data based on type
|
151
146
|
# @param string type Data type
|
152
147
|
# @param string value Value to be deserialized
|
153
148
|
# @return [Object] Deserialized data
|
154
|
-
def _deserialize(type, value)
|
149
|
+
def self._deserialize(type, value)
|
155
150
|
case type.to_sym
|
156
151
|
when :Time
|
157
152
|
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
|
|
@@ -220,6 +220,7 @@ module FattureInCloud_Ruby_Sdk
|
|
220
220
|
# Show invalid properties with the reasons. Usually used together with valid?
|
221
221
|
# @return Array for valid properties with the reasons
|
222
222
|
def list_invalid_properties
|
223
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
223
224
|
invalid_properties = Array.new
|
224
225
|
invalid_properties
|
225
226
|
end
|
@@ -227,6 +228,7 @@ module FattureInCloud_Ruby_Sdk
|
|
227
228
|
# Check to see if the all the properties in the model are valid
|
228
229
|
# @return true if the model is valid
|
229
230
|
def valid?
|
231
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
230
232
|
true
|
231
233
|
end
|
232
234
|
|
@@ -271,37 +273,30 @@ module FattureInCloud_Ruby_Sdk
|
|
271
273
|
# @param [Hash] attributes Model attributes in the form of hash
|
272
274
|
# @return [Object] Returns the model itself
|
273
275
|
def self.build_from_hash(attributes)
|
274
|
-
new.build_from_hash(attributes)
|
275
|
-
end
|
276
|
-
|
277
|
-
# Builds the object from hash
|
278
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
279
|
-
# @return [Object] Returns the model itself
|
280
|
-
def build_from_hash(attributes)
|
281
276
|
return nil unless attributes.is_a?(Hash)
|
282
277
|
attributes = attributes.transform_keys(&:to_sym)
|
283
|
-
|
284
|
-
|
285
|
-
|
278
|
+
transformed_hash = {}
|
279
|
+
openapi_types.each_pair do |key, type|
|
280
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
281
|
+
transformed_hash["#{key}"] = nil
|
286
282
|
elsif type =~ /\AArray<(.*)>/i
|
287
283
|
# check to ensure the input is an array given that the attribute
|
288
284
|
# is documented as an array but the input is not
|
289
|
-
if attributes[
|
290
|
-
|
285
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
286
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
291
287
|
end
|
292
|
-
elsif !attributes[
|
293
|
-
|
288
|
+
elsif !attributes[attribute_map[key]].nil?
|
289
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
294
290
|
end
|
295
291
|
end
|
296
|
-
|
297
|
-
self
|
292
|
+
new(transformed_hash)
|
298
293
|
end
|
299
294
|
|
300
295
|
# Deserializes the data based on type
|
301
296
|
# @param string type Data type
|
302
297
|
# @param string value Value to be deserialized
|
303
298
|
# @return [Object] Deserialized data
|
304
|
-
def _deserialize(type, value)
|
299
|
+
def self._deserialize(type, value)
|
305
300
|
case type.to_sym
|
306
301
|
when :Time
|
307
302
|
Time.parse(value)
|