fattureincloud_ruby_sdk 2.0.19 → 2.0.20
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 +6 -2
- data/docs/CompaniesApi.md +72 -0
- data/docs/Company.md +2 -0
- data/docs/CompanyInfo.md +2 -0
- data/docs/CompanyPlanUsage.md +9 -0
- data/docs/ControlledCompany.md +2 -0
- data/docs/FattureInCloudPlanType.md +7 -0
- data/docs/GetCompanyPlanUsageResponse.md +8 -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 +77 -2
- data/lib/fattureincloud_ruby_sdk/api/emails_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/info_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/issued_documents_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/issued_e_invoices_api.rb +2 -2
- 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 +13 -11
- data/lib/fattureincloud_ruby_sdk/api_error.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/configuration.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/archive_document.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/attachment_data.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/cashbook_entry.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_document.rb +2 -2
- 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 +2 -2
- data/lib/fattureincloud_ruby_sdk/models/client.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/client_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/company.rb +22 -3
- data/lib/fattureincloud_ruby_sdk/models/company_info.rb +22 -3
- data/lib/fattureincloud_ruby_sdk/models/company_info_access_info.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_functions.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_functions_status.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_limits.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/company_plan_usage.rb +227 -0
- data/lib/fattureincloud_ruby_sdk/models/company_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/controlled_company.rb +22 -3
- data/lib/fattureincloud_ruby_sdk/models/create_archive_document_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_archive_document_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_cashbook_entry_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_cashbook_entry_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_client_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_client_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_f24_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_f24_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_issued_document_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_issued_document_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_payment_account_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_payment_account_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_payment_method_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_payment_method_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_product_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_product_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_receipt_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_receipt_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_received_document_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_received_document_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_supplier_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_supplier_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_vat_type_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_vat_type_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_webhooks_subscription_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_webhooks_subscription_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/currency.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/detailed_country.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/document_template.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/e_invoice_rejection_reason.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/email.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/email_attachment.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/email_data.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/email_data_default_sender_email.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/email_recipient_status.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/email_schedule.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/email_schedule_include.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/email_status.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/entity.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/entity_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/event_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/f24.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/f24_status.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/fatture_in_cloud_plan_type.rb +43 -0
- data/lib/fattureincloud_ruby_sdk/models/function_status.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_archive_document_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_cashbook_entry_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_client_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_company_info_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_company_plan_usage_response.rb +215 -0
- data/lib/fattureincloud_ruby_sdk/models/get_e_invoice_rejection_reason_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_email_data_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_existing_issued_document_totals_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_existing_issued_document_totals_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_existing_received_document_totals_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_existing_received_document_totals_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_f24_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_issued_document_pre_create_info_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_issued_document_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_new_issued_document_totals_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_new_issued_document_totals_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_payment_account_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_payment_method_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_product_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_receipt_pre_create_info_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_receipt_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_receipts_monthly_totals_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_received_document_pre_create_info_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_received_document_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_supplier_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_user_info_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_user_info_response_email_confirmation_state.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_user_info_response_info.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_vat_type_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_webhooks_subscription_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_ei_data.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_extra_data.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_items_list_item.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_options.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_payments_list_item.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_payments_list_item_payment_terms.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_default_values.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_extra_data_default_values.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_items_default_values.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_status.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_totals.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/join_issued_documents_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/language.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_archive_categories_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_archive_documents_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_archive_documents_response_page.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_cashbook_entries_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_cities_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_clients_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_clients_response_page.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_cost_centers_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_countries_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_currencies_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_delivery_notes_default_causals_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_detailed_countries_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_emails_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_emails_response_page.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_f24_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_f24_response_aggregated_data.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_f24_response_aggregation.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_f24_response_page.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_issued_documents_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_issued_documents_response_page.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_languages_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_payment_accounts_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_payment_methods_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_product_categories_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_products_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_products_response_page.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_receipts_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_receipts_response_page.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_received_document_categories_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_received_documents_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_received_documents_response_page.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_revenue_centers_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_suppliers_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_suppliers_response_page.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_templates_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_units_of_measure_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_user_companies_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_user_companies_response_data.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_vat_types_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_webhooks_subscriptions_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_archive_document_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_archive_document_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_cashbook_entry_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_cashbook_entry_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_client_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_client_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_f24_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_f24_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_issued_document_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_issued_document_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_payment_account_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_payment_account_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_payment_method_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_payment_method_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_product_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_product_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_receipt_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_receipt_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_received_document_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_received_document_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_supplier_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_supplier_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_vat_type_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_vat_type_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_webhooks_subscription_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_webhooks_subscription_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/monthly_total.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/original_document_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/pagination.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/payment_account.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/payment_account_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/payment_method.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/payment_method_details.rb +2 -2
- 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 +2 -2
- data/lib/fattureincloud_ruby_sdk/models/permissions_fic_issued_documents_detailed.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/product.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/receipt.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/receipt_items_list_item.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/receipt_pre_create_info.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/receipt_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/received_document.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/received_document_info.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/received_document_info_default_values.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/received_document_info_items_default_values.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/received_document_items_list_item.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/received_document_payments_list_item.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/received_document_payments_list_item_payment_terms.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/received_document_totals.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/received_document_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/schedule_email_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request_data.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request_options.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_response_data.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/sender_email.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/show_totals_mode.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/supplier.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/supplier_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/transform_issued_document_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/upload_archive_attachment_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/upload_f24_attachment_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/upload_issued_document_attachment_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/upload_received_document_attachment_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/user.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/user_company_role.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/vat_item.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/vat_kind.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/vat_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_error.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_error_validation_result.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_extra.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_response_data.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/webhooks_subscription.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/webhooks_subscription_config.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/webhooks_subscription_mapping.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/version.rb +3 -3
- data/lib/fattureincloud_ruby_sdk.rb +6 -3
- data/sdk-version.yaml +1 -1
- data/spec/models/company_plan_usage_spec.rb +43 -0
- data/spec/models/company_spec.rb +14 -0
- data/spec/models/fatture_in_cloud_plan_type_spec.rb +29 -0
- data/spec/models/get_company_plan_usage_response_spec.rb +39 -0
- data/spec/spec_helper.rb +2 -2
- metadata +225 -213
@@ -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.32
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.
|
9
|
+
OpenAPI Generator version: 7.3.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.32
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.
|
9
|
+
OpenAPI Generator version: 7.3.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.32
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.
|
9
|
+
OpenAPI Generator version: 7.3.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.32
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.
|
9
|
+
OpenAPI Generator version: 7.3.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.32
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.
|
9
|
+
OpenAPI Generator version: 7.3.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.32
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.
|
9
|
+
OpenAPI Generator version: 7.3.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.32
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.
|
9
|
+
OpenAPI Generator version: 7.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -29,6 +29,10 @@ module FattureInCloud_Ruby_Sdk
|
|
29
29
|
# Company list of controlled companies [Only if type=accountant]
|
30
30
|
attr_accessor :controlled_companies
|
31
31
|
|
32
|
+
attr_accessor :fic_license_expire
|
33
|
+
|
34
|
+
attr_accessor :fic_plan
|
35
|
+
|
32
36
|
# Company connection id
|
33
37
|
attr_accessor :connection_id
|
34
38
|
|
@@ -65,6 +69,8 @@ module FattureInCloud_Ruby_Sdk
|
|
65
69
|
:'type' => :'type',
|
66
70
|
:'access_token' => :'access_token',
|
67
71
|
:'controlled_companies' => :'controlled_companies',
|
72
|
+
:'fic_license_expire' => :'fic_license_expire',
|
73
|
+
:'fic_plan' => :'fic_plan',
|
68
74
|
:'connection_id' => :'connection_id',
|
69
75
|
:'tax_code' => :'tax_code'
|
70
76
|
}
|
@@ -83,6 +89,8 @@ module FattureInCloud_Ruby_Sdk
|
|
83
89
|
:'type' => :'CompanyType',
|
84
90
|
:'access_token' => :'String',
|
85
91
|
:'controlled_companies' => :'Array<ControlledCompany>',
|
92
|
+
:'fic_license_expire' => :'Date',
|
93
|
+
:'fic_plan' => :'FattureInCloudPlanType',
|
86
94
|
:'connection_id' => :'Integer',
|
87
95
|
:'tax_code' => :'String'
|
88
96
|
}
|
@@ -95,6 +103,7 @@ module FattureInCloud_Ruby_Sdk
|
|
95
103
|
:'name',
|
96
104
|
:'access_token',
|
97
105
|
:'controlled_companies',
|
106
|
+
:'fic_license_expire',
|
98
107
|
:'connection_id',
|
99
108
|
:'tax_code'
|
100
109
|
])
|
@@ -137,6 +146,14 @@ module FattureInCloud_Ruby_Sdk
|
|
137
146
|
end
|
138
147
|
end
|
139
148
|
|
149
|
+
if attributes.key?(:'fic_license_expire')
|
150
|
+
self.fic_license_expire = attributes[:'fic_license_expire']
|
151
|
+
end
|
152
|
+
|
153
|
+
if attributes.key?(:'fic_plan')
|
154
|
+
self.fic_plan = attributes[:'fic_plan']
|
155
|
+
end
|
156
|
+
|
140
157
|
if attributes.key?(:'connection_id')
|
141
158
|
self.connection_id = attributes[:'connection_id']
|
142
159
|
end
|
@@ -171,6 +188,8 @@ module FattureInCloud_Ruby_Sdk
|
|
171
188
|
type == o.type &&
|
172
189
|
access_token == o.access_token &&
|
173
190
|
controlled_companies == o.controlled_companies &&
|
191
|
+
fic_license_expire == o.fic_license_expire &&
|
192
|
+
fic_plan == o.fic_plan &&
|
174
193
|
connection_id == o.connection_id &&
|
175
194
|
tax_code == o.tax_code
|
176
195
|
end
|
@@ -184,7 +203,7 @@ module FattureInCloud_Ruby_Sdk
|
|
184
203
|
# Calculates hash code according to all attributes.
|
185
204
|
# @return [Integer] Hash code
|
186
205
|
def hash
|
187
|
-
[id, name, type, access_token, controlled_companies, connection_id, tax_code].hash
|
206
|
+
[id, name, type, access_token, controlled_companies, fic_license_expire, fic_plan, connection_id, tax_code].hash
|
188
207
|
end
|
189
208
|
|
190
209
|
# Builds the object from hash
|
@@ -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.32
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.
|
9
|
+
OpenAPI Generator version: 7.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -28,6 +28,10 @@ module FattureInCloud_Ruby_Sdk
|
|
28
28
|
|
29
29
|
attr_accessor :access_info
|
30
30
|
|
31
|
+
attr_accessor :fic_license_expire
|
32
|
+
|
33
|
+
attr_accessor :fic_plan_name
|
34
|
+
|
31
35
|
attr_accessor :plan_info
|
32
36
|
|
33
37
|
# Company accountant id
|
@@ -66,6 +70,8 @@ module FattureInCloud_Ruby_Sdk
|
|
66
70
|
:'email' => :'email',
|
67
71
|
:'type' => :'type',
|
68
72
|
:'access_info' => :'access_info',
|
73
|
+
:'fic_license_expire' => :'fic_license_expire',
|
74
|
+
:'fic_plan_name' => :'fic_plan_name',
|
69
75
|
:'plan_info' => :'plan_info',
|
70
76
|
:'accountant_id' => :'accountant_id',
|
71
77
|
:'is_accountant' => :'is_accountant'
|
@@ -85,6 +91,8 @@ module FattureInCloud_Ruby_Sdk
|
|
85
91
|
:'email' => :'String',
|
86
92
|
:'type' => :'CompanyType',
|
87
93
|
:'access_info' => :'CompanyInfoAccessInfo',
|
94
|
+
:'fic_license_expire' => :'Date',
|
95
|
+
:'fic_plan_name' => :'FattureInCloudPlanType',
|
88
96
|
:'plan_info' => :'CompanyInfoPlanInfo',
|
89
97
|
:'accountant_id' => :'Integer',
|
90
98
|
:'is_accountant' => :'Boolean'
|
@@ -98,6 +106,7 @@ module FattureInCloud_Ruby_Sdk
|
|
98
106
|
:'name',
|
99
107
|
:'email',
|
100
108
|
:'access_info',
|
109
|
+
:'fic_license_expire',
|
101
110
|
:'plan_info',
|
102
111
|
:'accountant_id',
|
103
112
|
:'is_accountant'
|
@@ -139,6 +148,14 @@ module FattureInCloud_Ruby_Sdk
|
|
139
148
|
self.access_info = attributes[:'access_info']
|
140
149
|
end
|
141
150
|
|
151
|
+
if attributes.key?(:'fic_license_expire')
|
152
|
+
self.fic_license_expire = attributes[:'fic_license_expire']
|
153
|
+
end
|
154
|
+
|
155
|
+
if attributes.key?(:'fic_plan_name')
|
156
|
+
self.fic_plan_name = attributes[:'fic_plan_name']
|
157
|
+
end
|
158
|
+
|
142
159
|
if attributes.key?(:'plan_info')
|
143
160
|
self.plan_info = attributes[:'plan_info']
|
144
161
|
end
|
@@ -177,6 +194,8 @@ module FattureInCloud_Ruby_Sdk
|
|
177
194
|
email == o.email &&
|
178
195
|
type == o.type &&
|
179
196
|
access_info == o.access_info &&
|
197
|
+
fic_license_expire == o.fic_license_expire &&
|
198
|
+
fic_plan_name == o.fic_plan_name &&
|
180
199
|
plan_info == o.plan_info &&
|
181
200
|
accountant_id == o.accountant_id &&
|
182
201
|
is_accountant == o.is_accountant
|
@@ -191,7 +210,7 @@ module FattureInCloud_Ruby_Sdk
|
|
191
210
|
# Calculates hash code according to all attributes.
|
192
211
|
# @return [Integer] Hash code
|
193
212
|
def hash
|
194
|
-
[id, name, email, type, access_info, plan_info, accountant_id, is_accountant].hash
|
213
|
+
[id, name, email, type, access_info, fic_license_expire, fic_plan_name, plan_info, accountant_id, is_accountant].hash
|
195
214
|
end
|
196
215
|
|
197
216
|
# Builds the object from hash
|
@@ -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.32
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.
|
9
|
+
OpenAPI Generator version: 7.3.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.32
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.
|
9
|
+
OpenAPI Generator version: 7.3.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.32
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.
|
9
|
+
OpenAPI Generator version: 7.3.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.32
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.
|
9
|
+
OpenAPI Generator version: 7.3.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.32
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.
|
9
|
+
OpenAPI Generator version: 7.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -0,0 +1,227 @@
|
|
1
|
+
=begin
|
2
|
+
#Fatture in Cloud API v2 - API Reference
|
3
|
+
|
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
|
+
|
6
|
+
The version of the OpenAPI document: 2.0.32
|
7
|
+
Contact: info@fattureincloud.it
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.3.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module FattureInCloud_Ruby_Sdk
|
17
|
+
class CompanyPlanUsage
|
18
|
+
# Plan limit
|
19
|
+
attr_accessor :limit
|
20
|
+
|
21
|
+
# Plan usage
|
22
|
+
attr_accessor :usage
|
23
|
+
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
25
|
+
def self.attribute_map
|
26
|
+
{
|
27
|
+
:'limit' => :'limit',
|
28
|
+
:'usage' => :'usage'
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# Returns all the JSON keys this model knows about
|
33
|
+
def self.acceptable_attributes
|
34
|
+
attribute_map.values
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
def self.openapi_types
|
39
|
+
{
|
40
|
+
:'limit' => :'Float',
|
41
|
+
:'usage' => :'Float'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# List of attributes with nullable: true
|
46
|
+
def self.openapi_nullable
|
47
|
+
Set.new([
|
48
|
+
:'limit',
|
49
|
+
:'usage'
|
50
|
+
])
|
51
|
+
end
|
52
|
+
|
53
|
+
# Initializes the object
|
54
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
55
|
+
def initialize(attributes = {})
|
56
|
+
if (!attributes.is_a?(Hash))
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FattureInCloud_Ruby_Sdk::CompanyPlanUsage` initialize method"
|
58
|
+
end
|
59
|
+
|
60
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FattureInCloud_Ruby_Sdk::CompanyPlanUsage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
64
|
+
end
|
65
|
+
h[k.to_sym] = v
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'limit')
|
69
|
+
self.limit = attributes[:'limit']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'usage')
|
73
|
+
self.usage = attributes[:'usage']
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
78
|
+
# @return Array for valid properties with the reasons
|
79
|
+
def list_invalid_properties
|
80
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
81
|
+
invalid_properties = Array.new
|
82
|
+
invalid_properties
|
83
|
+
end
|
84
|
+
|
85
|
+
# Check to see if the all the properties in the model are valid
|
86
|
+
# @return true if the model is valid
|
87
|
+
def valid?
|
88
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
89
|
+
true
|
90
|
+
end
|
91
|
+
|
92
|
+
# Checks equality by comparing each attribute.
|
93
|
+
# @param [Object] Object to be compared
|
94
|
+
def ==(o)
|
95
|
+
return true if self.equal?(o)
|
96
|
+
self.class == o.class &&
|
97
|
+
limit == o.limit &&
|
98
|
+
usage == o.usage
|
99
|
+
end
|
100
|
+
|
101
|
+
# @see the `==` method
|
102
|
+
# @param [Object] Object to be compared
|
103
|
+
def eql?(o)
|
104
|
+
self == o
|
105
|
+
end
|
106
|
+
|
107
|
+
# Calculates hash code according to all attributes.
|
108
|
+
# @return [Integer] Hash code
|
109
|
+
def hash
|
110
|
+
[limit, usage].hash
|
111
|
+
end
|
112
|
+
|
113
|
+
# Builds the object from hash
|
114
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
115
|
+
# @return [Object] Returns the model itself
|
116
|
+
def self.build_from_hash(attributes)
|
117
|
+
return nil unless attributes.is_a?(Hash)
|
118
|
+
attributes = attributes.transform_keys(&:to_sym)
|
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
|
123
|
+
elsif type =~ /\AArray<(.*)>/i
|
124
|
+
# check to ensure the input is an array given that the attribute
|
125
|
+
# is documented as an array but the input is not
|
126
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
127
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
128
|
+
end
|
129
|
+
elsif !attributes[attribute_map[key]].nil?
|
130
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
131
|
+
end
|
132
|
+
end
|
133
|
+
new(transformed_hash)
|
134
|
+
end
|
135
|
+
|
136
|
+
# Deserializes the data based on type
|
137
|
+
# @param string type Data type
|
138
|
+
# @param string value Value to be deserialized
|
139
|
+
# @return [Object] Deserialized data
|
140
|
+
def self._deserialize(type, value)
|
141
|
+
case type.to_sym
|
142
|
+
when :Time
|
143
|
+
Time.parse(value)
|
144
|
+
when :Date
|
145
|
+
Date.parse(value)
|
146
|
+
when :String
|
147
|
+
value.to_s
|
148
|
+
when :Integer
|
149
|
+
value.to_i
|
150
|
+
when :Float
|
151
|
+
value.to_f
|
152
|
+
when :Boolean
|
153
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
154
|
+
true
|
155
|
+
else
|
156
|
+
false
|
157
|
+
end
|
158
|
+
when :Object
|
159
|
+
# generic object (usually a Hash), return directly
|
160
|
+
value
|
161
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
162
|
+
inner_type = Regexp.last_match[:inner_type]
|
163
|
+
value.map { |v| _deserialize(inner_type, v) }
|
164
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
165
|
+
k_type = Regexp.last_match[:k_type]
|
166
|
+
v_type = Regexp.last_match[:v_type]
|
167
|
+
{}.tap do |hash|
|
168
|
+
value.each do |k, v|
|
169
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
170
|
+
end
|
171
|
+
end
|
172
|
+
when :Hash
|
173
|
+
value
|
174
|
+
else # model
|
175
|
+
# models (e.g. Pet) or oneOf
|
176
|
+
klass = FattureInCloud_Ruby_Sdk.const_get(type)
|
177
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
# Returns the string representation of the object
|
182
|
+
# @return [String] String presentation of the object
|
183
|
+
def to_s
|
184
|
+
to_hash.to_s
|
185
|
+
end
|
186
|
+
|
187
|
+
# to_body is an alias to to_hash (backward compatibility)
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
189
|
+
def to_body
|
190
|
+
to_hash
|
191
|
+
end
|
192
|
+
|
193
|
+
# Returns the object in the form of hash
|
194
|
+
# @return [Hash] Returns the object in the form of hash
|
195
|
+
def to_hash
|
196
|
+
hash = {}
|
197
|
+
self.class.attribute_map.each_pair do |attr, param|
|
198
|
+
value = self.send(attr)
|
199
|
+
if value.nil?
|
200
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
201
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
202
|
+
end
|
203
|
+
|
204
|
+
hash[param] = _to_hash(value)
|
205
|
+
end
|
206
|
+
hash
|
207
|
+
end
|
208
|
+
|
209
|
+
# Outputs non-array value in the form of hash
|
210
|
+
# For object, use to_hash. Otherwise, just return the value
|
211
|
+
# @param [Object] value Any valid value
|
212
|
+
# @return [Hash] Returns the value in the form of hash
|
213
|
+
def _to_hash(value)
|
214
|
+
if value.is_a?(Array)
|
215
|
+
value.compact.map { |v| _to_hash(v) }
|
216
|
+
elsif value.is_a?(Hash)
|
217
|
+
{}.tap do |hash|
|
218
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
219
|
+
end
|
220
|
+
elsif value.respond_to? :to_hash
|
221
|
+
value.to_hash
|
222
|
+
else
|
223
|
+
value
|
224
|
+
end
|
225
|
+
end
|
226
|
+
end
|
227
|
+
end
|
@@ -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.32
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.
|
9
|
+
OpenAPI Generator version: 7.3.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.32
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.
|
9
|
+
OpenAPI Generator version: 7.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -26,6 +26,10 @@ module FattureInCloud_Ruby_Sdk
|
|
26
26
|
# Controlled company access token Only if type=company]
|
27
27
|
attr_accessor :access_token
|
28
28
|
|
29
|
+
attr_accessor :fic_license_expire
|
30
|
+
|
31
|
+
attr_accessor :fic_plan
|
32
|
+
|
29
33
|
# Controlled company connection id
|
30
34
|
attr_accessor :connection_id
|
31
35
|
|
@@ -61,6 +65,8 @@ module FattureInCloud_Ruby_Sdk
|
|
61
65
|
:'name' => :'name',
|
62
66
|
:'type' => :'type',
|
63
67
|
:'access_token' => :'access_token',
|
68
|
+
:'fic_license_expire' => :'fic_license_expire',
|
69
|
+
:'fic_plan' => :'fic_plan',
|
64
70
|
:'connection_id' => :'connection_id',
|
65
71
|
:'tax_code' => :'tax_code'
|
66
72
|
}
|
@@ -78,6 +84,8 @@ module FattureInCloud_Ruby_Sdk
|
|
78
84
|
:'name' => :'String',
|
79
85
|
:'type' => :'CompanyType',
|
80
86
|
:'access_token' => :'String',
|
87
|
+
:'fic_license_expire' => :'Date',
|
88
|
+
:'fic_plan' => :'FattureInCloudPlanType',
|
81
89
|
:'connection_id' => :'Float',
|
82
90
|
:'tax_code' => :'String'
|
83
91
|
}
|
@@ -89,6 +97,7 @@ module FattureInCloud_Ruby_Sdk
|
|
89
97
|
:'id',
|
90
98
|
:'name',
|
91
99
|
:'access_token',
|
100
|
+
:'fic_license_expire',
|
92
101
|
:'connection_id',
|
93
102
|
:'tax_code'
|
94
103
|
])
|
@@ -125,6 +134,14 @@ module FattureInCloud_Ruby_Sdk
|
|
125
134
|
self.access_token = attributes[:'access_token']
|
126
135
|
end
|
127
136
|
|
137
|
+
if attributes.key?(:'fic_license_expire')
|
138
|
+
self.fic_license_expire = attributes[:'fic_license_expire']
|
139
|
+
end
|
140
|
+
|
141
|
+
if attributes.key?(:'fic_plan')
|
142
|
+
self.fic_plan = attributes[:'fic_plan']
|
143
|
+
end
|
144
|
+
|
128
145
|
if attributes.key?(:'connection_id')
|
129
146
|
self.connection_id = attributes[:'connection_id']
|
130
147
|
end
|
@@ -158,6 +175,8 @@ module FattureInCloud_Ruby_Sdk
|
|
158
175
|
name == o.name &&
|
159
176
|
type == o.type &&
|
160
177
|
access_token == o.access_token &&
|
178
|
+
fic_license_expire == o.fic_license_expire &&
|
179
|
+
fic_plan == o.fic_plan &&
|
161
180
|
connection_id == o.connection_id &&
|
162
181
|
tax_code == o.tax_code
|
163
182
|
end
|
@@ -171,7 +190,7 @@ module FattureInCloud_Ruby_Sdk
|
|
171
190
|
# Calculates hash code according to all attributes.
|
172
191
|
# @return [Integer] Hash code
|
173
192
|
def hash
|
174
|
-
[id, name, type, access_token, connection_id, tax_code].hash
|
193
|
+
[id, name, type, access_token, fic_license_expire, fic_plan, connection_id, tax_code].hash
|
175
194
|
end
|
176
195
|
|
177
196
|
# Builds the object from hash
|
@@ -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.32
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.
|
9
|
+
OpenAPI Generator version: 7.3.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.32
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.
|
9
|
+
OpenAPI Generator version: 7.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|