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.
Files changed (275) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +2 -0
  3. data/README.md +15 -10
  4. data/docs/Client.md +1 -0
  5. data/docs/EmailsApi.md +4 -4
  6. data/docs/InfoApi.md +2 -2
  7. data/docs/IssuedDocument.md +1 -0
  8. data/docs/IssuedDocumentEiData.md +1 -1
  9. data/docs/IssuedDocumentsApi.md +12 -12
  10. data/docs/IssuedEInvoicesApi.md +16 -16
  11. data/docs/ReceivedDocument.md +1 -0
  12. data/docs/Supplier.md +1 -0
  13. data/docs/WebhooksSubscription.md +1 -0
  14. data/docs/WebhooksSubscriptionConfig.md +8 -0
  15. data/docs/WebhooksSubscriptionMapping.md +7 -0
  16. data/fattureincloud_ruby_sdk.gemspec +2 -2
  17. data/lib/fattureincloud_ruby_sdk/api/archive_api.rb +2 -2
  18. data/lib/fattureincloud_ruby_sdk/api/cashbook_api.rb +2 -2
  19. data/lib/fattureincloud_ruby_sdk/api/clients_api.rb +2 -2
  20. data/lib/fattureincloud_ruby_sdk/api/companies_api.rb +2 -2
  21. data/lib/fattureincloud_ruby_sdk/api/emails_api.rb +4 -4
  22. data/lib/fattureincloud_ruby_sdk/api/info_api.rb +4 -4
  23. data/lib/fattureincloud_ruby_sdk/api/issued_documents_api.rb +8 -8
  24. data/lib/fattureincloud_ruby_sdk/api/issued_e_invoices_api.rb +10 -10
  25. data/lib/fattureincloud_ruby_sdk/api/products_api.rb +2 -2
  26. data/lib/fattureincloud_ruby_sdk/api/receipts_api.rb +2 -2
  27. data/lib/fattureincloud_ruby_sdk/api/received_documents_api.rb +2 -2
  28. data/lib/fattureincloud_ruby_sdk/api/settings_api.rb +2 -2
  29. data/lib/fattureincloud_ruby_sdk/api/suppliers_api.rb +2 -2
  30. data/lib/fattureincloud_ruby_sdk/api/taxes_api.rb +2 -2
  31. data/lib/fattureincloud_ruby_sdk/api/user_api.rb +2 -2
  32. data/lib/fattureincloud_ruby_sdk/api/webhooks_api.rb +2 -2
  33. data/lib/fattureincloud_ruby_sdk/api_client.rb +3 -3
  34. data/lib/fattureincloud_ruby_sdk/api_error.rb +2 -2
  35. data/lib/fattureincloud_ruby_sdk/configuration.rb +11 -9
  36. data/lib/fattureincloud_ruby_sdk/models/archive_document.rb +14 -19
  37. data/lib/fattureincloud_ruby_sdk/models/attachment_data.rb +14 -19
  38. data/lib/fattureincloud_ruby_sdk/models/cashbook_entry.rb +14 -19
  39. data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_document.rb +14 -19
  40. data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_kind.rb +2 -2
  41. data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_type.rb +2 -2
  42. data/lib/fattureincloud_ruby_sdk/models/city.rb +14 -19
  43. data/lib/fattureincloud_ruby_sdk/models/client.rb +26 -20
  44. data/lib/fattureincloud_ruby_sdk/models/client_type.rb +2 -2
  45. data/lib/fattureincloud_ruby_sdk/models/company.rb +14 -19
  46. data/lib/fattureincloud_ruby_sdk/models/company_info.rb +14 -19
  47. data/lib/fattureincloud_ruby_sdk/models/company_info_access_info.rb +14 -19
  48. data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info.rb +14 -19
  49. data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_functions.rb +14 -19
  50. data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_functions_status.rb +14 -19
  51. data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_limits.rb +14 -19
  52. data/lib/fattureincloud_ruby_sdk/models/company_type.rb +2 -2
  53. data/lib/fattureincloud_ruby_sdk/models/controlled_company.rb +14 -19
  54. data/lib/fattureincloud_ruby_sdk/models/create_archive_document_request.rb +14 -19
  55. data/lib/fattureincloud_ruby_sdk/models/create_archive_document_response.rb +14 -19
  56. data/lib/fattureincloud_ruby_sdk/models/create_cashbook_entry_request.rb +14 -19
  57. data/lib/fattureincloud_ruby_sdk/models/create_cashbook_entry_response.rb +14 -19
  58. data/lib/fattureincloud_ruby_sdk/models/create_client_request.rb +14 -19
  59. data/lib/fattureincloud_ruby_sdk/models/create_client_response.rb +14 -19
  60. data/lib/fattureincloud_ruby_sdk/models/create_f24_request.rb +14 -19
  61. data/lib/fattureincloud_ruby_sdk/models/create_f24_response.rb +14 -19
  62. data/lib/fattureincloud_ruby_sdk/models/create_issued_document_request.rb +14 -19
  63. data/lib/fattureincloud_ruby_sdk/models/create_issued_document_response.rb +14 -19
  64. data/lib/fattureincloud_ruby_sdk/models/create_payment_account_request.rb +14 -19
  65. data/lib/fattureincloud_ruby_sdk/models/create_payment_account_response.rb +14 -19
  66. data/lib/fattureincloud_ruby_sdk/models/create_payment_method_request.rb +14 -19
  67. data/lib/fattureincloud_ruby_sdk/models/create_payment_method_response.rb +14 -19
  68. data/lib/fattureincloud_ruby_sdk/models/create_product_request.rb +14 -19
  69. data/lib/fattureincloud_ruby_sdk/models/create_product_response.rb +14 -19
  70. data/lib/fattureincloud_ruby_sdk/models/create_receipt_request.rb +14 -19
  71. data/lib/fattureincloud_ruby_sdk/models/create_receipt_response.rb +14 -19
  72. data/lib/fattureincloud_ruby_sdk/models/create_received_document_request.rb +14 -19
  73. data/lib/fattureincloud_ruby_sdk/models/create_received_document_response.rb +14 -19
  74. data/lib/fattureincloud_ruby_sdk/models/create_supplier_request.rb +14 -19
  75. data/lib/fattureincloud_ruby_sdk/models/create_supplier_response.rb +14 -19
  76. data/lib/fattureincloud_ruby_sdk/models/create_vat_type_request.rb +14 -19
  77. data/lib/fattureincloud_ruby_sdk/models/create_vat_type_response.rb +14 -19
  78. data/lib/fattureincloud_ruby_sdk/models/create_webhooks_subscription_request.rb +14 -19
  79. data/lib/fattureincloud_ruby_sdk/models/create_webhooks_subscription_response.rb +14 -19
  80. data/lib/fattureincloud_ruby_sdk/models/currency.rb +14 -19
  81. data/lib/fattureincloud_ruby_sdk/models/detailed_country.rb +14 -19
  82. data/lib/fattureincloud_ruby_sdk/models/document_template.rb +14 -19
  83. data/lib/fattureincloud_ruby_sdk/models/e_invoice_rejection_reason.rb +14 -19
  84. data/lib/fattureincloud_ruby_sdk/models/email.rb +14 -19
  85. data/lib/fattureincloud_ruby_sdk/models/email_attachment.rb +14 -19
  86. data/lib/fattureincloud_ruby_sdk/models/email_data.rb +14 -19
  87. data/lib/fattureincloud_ruby_sdk/models/email_data_default_sender_email.rb +14 -19
  88. data/lib/fattureincloud_ruby_sdk/models/email_recipient_status.rb +2 -2
  89. data/lib/fattureincloud_ruby_sdk/models/email_schedule.rb +14 -19
  90. data/lib/fattureincloud_ruby_sdk/models/email_schedule_include.rb +14 -19
  91. data/lib/fattureincloud_ruby_sdk/models/email_status.rb +2 -2
  92. data/lib/fattureincloud_ruby_sdk/models/entity.rb +14 -19
  93. data/lib/fattureincloud_ruby_sdk/models/entity_type.rb +2 -2
  94. data/lib/fattureincloud_ruby_sdk/models/event_type.rb +6 -5
  95. data/lib/fattureincloud_ruby_sdk/models/f24.rb +14 -19
  96. data/lib/fattureincloud_ruby_sdk/models/f24_status.rb +2 -2
  97. data/lib/fattureincloud_ruby_sdk/models/function_status.rb +14 -19
  98. data/lib/fattureincloud_ruby_sdk/models/get_archive_document_response.rb +14 -19
  99. data/lib/fattureincloud_ruby_sdk/models/get_cashbook_entry_response.rb +14 -19
  100. data/lib/fattureincloud_ruby_sdk/models/get_client_response.rb +14 -19
  101. data/lib/fattureincloud_ruby_sdk/models/get_company_info_response.rb +14 -19
  102. data/lib/fattureincloud_ruby_sdk/models/get_e_invoice_rejection_reason_response.rb +14 -19
  103. data/lib/fattureincloud_ruby_sdk/models/get_email_data_response.rb +14 -19
  104. data/lib/fattureincloud_ruby_sdk/models/get_existing_issued_document_totals_request.rb +14 -19
  105. data/lib/fattureincloud_ruby_sdk/models/get_existing_issued_document_totals_response.rb +14 -19
  106. data/lib/fattureincloud_ruby_sdk/models/get_existing_received_document_totals_request.rb +14 -19
  107. data/lib/fattureincloud_ruby_sdk/models/get_existing_received_document_totals_response.rb +14 -19
  108. data/lib/fattureincloud_ruby_sdk/models/get_f24_response.rb +14 -19
  109. data/lib/fattureincloud_ruby_sdk/models/get_issued_document_pre_create_info_response.rb +14 -19
  110. data/lib/fattureincloud_ruby_sdk/models/get_issued_document_response.rb +14 -19
  111. data/lib/fattureincloud_ruby_sdk/models/get_new_issued_document_totals_request.rb +14 -19
  112. data/lib/fattureincloud_ruby_sdk/models/get_new_issued_document_totals_response.rb +14 -19
  113. data/lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_request.rb +14 -19
  114. data/lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_response.rb +14 -19
  115. data/lib/fattureincloud_ruby_sdk/models/get_payment_account_response.rb +14 -19
  116. data/lib/fattureincloud_ruby_sdk/models/get_payment_method_response.rb +14 -19
  117. data/lib/fattureincloud_ruby_sdk/models/get_product_response.rb +14 -19
  118. data/lib/fattureincloud_ruby_sdk/models/get_receipt_pre_create_info_response.rb +14 -19
  119. data/lib/fattureincloud_ruby_sdk/models/get_receipt_response.rb +14 -19
  120. data/lib/fattureincloud_ruby_sdk/models/get_receipts_monthly_totals_response.rb +14 -19
  121. data/lib/fattureincloud_ruby_sdk/models/get_received_document_pre_create_info_response.rb +14 -19
  122. data/lib/fattureincloud_ruby_sdk/models/get_received_document_response.rb +14 -19
  123. data/lib/fattureincloud_ruby_sdk/models/get_supplier_response.rb +14 -19
  124. data/lib/fattureincloud_ruby_sdk/models/get_user_info_response.rb +14 -19
  125. data/lib/fattureincloud_ruby_sdk/models/get_user_info_response_email_confirmation_state.rb +14 -19
  126. data/lib/fattureincloud_ruby_sdk/models/get_user_info_response_info.rb +14 -19
  127. data/lib/fattureincloud_ruby_sdk/models/get_vat_type_response.rb +14 -19
  128. data/lib/fattureincloud_ruby_sdk/models/get_webhooks_subscription_response.rb +14 -19
  129. data/lib/fattureincloud_ruby_sdk/models/issued_document.rb +26 -20
  130. data/lib/fattureincloud_ruby_sdk/models/issued_document_ei_data.rb +15 -20
  131. data/lib/fattureincloud_ruby_sdk/models/issued_document_extra_data.rb +14 -19
  132. data/lib/fattureincloud_ruby_sdk/models/issued_document_items_list_item.rb +14 -19
  133. data/lib/fattureincloud_ruby_sdk/models/issued_document_options.rb +14 -19
  134. data/lib/fattureincloud_ruby_sdk/models/issued_document_payments_list_item.rb +14 -19
  135. data/lib/fattureincloud_ruby_sdk/models/issued_document_payments_list_item_payment_terms.rb +14 -19
  136. data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info.rb +14 -19
  137. data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_default_values.rb +14 -19
  138. data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_extra_data_default_values.rb +14 -19
  139. data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_items_default_values.rb +14 -19
  140. data/lib/fattureincloud_ruby_sdk/models/issued_document_status.rb +2 -2
  141. data/lib/fattureincloud_ruby_sdk/models/issued_document_totals.rb +14 -19
  142. data/lib/fattureincloud_ruby_sdk/models/issued_document_type.rb +2 -2
  143. data/lib/fattureincloud_ruby_sdk/models/join_issued_documents_response.rb +14 -19
  144. data/lib/fattureincloud_ruby_sdk/models/language.rb +14 -19
  145. data/lib/fattureincloud_ruby_sdk/models/list_archive_categories_response.rb +14 -19
  146. data/lib/fattureincloud_ruby_sdk/models/list_archive_documents_response.rb +14 -19
  147. data/lib/fattureincloud_ruby_sdk/models/list_archive_documents_response_page.rb +14 -19
  148. data/lib/fattureincloud_ruby_sdk/models/list_cashbook_entries_response.rb +14 -19
  149. data/lib/fattureincloud_ruby_sdk/models/list_cities_response.rb +14 -19
  150. data/lib/fattureincloud_ruby_sdk/models/list_clients_response.rb +14 -19
  151. data/lib/fattureincloud_ruby_sdk/models/list_clients_response_page.rb +14 -19
  152. data/lib/fattureincloud_ruby_sdk/models/list_cost_centers_response.rb +14 -19
  153. data/lib/fattureincloud_ruby_sdk/models/list_countries_response.rb +14 -19
  154. data/lib/fattureincloud_ruby_sdk/models/list_currencies_response.rb +14 -19
  155. data/lib/fattureincloud_ruby_sdk/models/list_delivery_notes_default_causals_response.rb +14 -19
  156. data/lib/fattureincloud_ruby_sdk/models/list_detailed_countries_response.rb +14 -19
  157. data/lib/fattureincloud_ruby_sdk/models/list_emails_response.rb +14 -19
  158. data/lib/fattureincloud_ruby_sdk/models/list_emails_response_page.rb +14 -19
  159. data/lib/fattureincloud_ruby_sdk/models/list_f24_response.rb +14 -19
  160. data/lib/fattureincloud_ruby_sdk/models/list_f24_response_aggregated_data.rb +14 -19
  161. data/lib/fattureincloud_ruby_sdk/models/list_f24_response_aggregation.rb +14 -19
  162. data/lib/fattureincloud_ruby_sdk/models/list_f24_response_page.rb +14 -19
  163. data/lib/fattureincloud_ruby_sdk/models/list_issued_documents_response.rb +14 -19
  164. data/lib/fattureincloud_ruby_sdk/models/list_issued_documents_response_page.rb +14 -19
  165. data/lib/fattureincloud_ruby_sdk/models/list_languages_response.rb +14 -19
  166. data/lib/fattureincloud_ruby_sdk/models/list_payment_accounts_response.rb +14 -19
  167. data/lib/fattureincloud_ruby_sdk/models/list_payment_methods_response.rb +14 -19
  168. data/lib/fattureincloud_ruby_sdk/models/list_product_categories_response.rb +14 -19
  169. data/lib/fattureincloud_ruby_sdk/models/list_products_response.rb +14 -19
  170. data/lib/fattureincloud_ruby_sdk/models/list_products_response_page.rb +14 -19
  171. data/lib/fattureincloud_ruby_sdk/models/list_receipts_response.rb +14 -19
  172. data/lib/fattureincloud_ruby_sdk/models/list_receipts_response_page.rb +14 -19
  173. data/lib/fattureincloud_ruby_sdk/models/list_received_document_categories_response.rb +14 -19
  174. data/lib/fattureincloud_ruby_sdk/models/list_received_documents_response.rb +14 -19
  175. data/lib/fattureincloud_ruby_sdk/models/list_received_documents_response_page.rb +14 -19
  176. data/lib/fattureincloud_ruby_sdk/models/list_revenue_centers_response.rb +14 -19
  177. data/lib/fattureincloud_ruby_sdk/models/list_suppliers_response.rb +14 -19
  178. data/lib/fattureincloud_ruby_sdk/models/list_suppliers_response_page.rb +14 -19
  179. data/lib/fattureincloud_ruby_sdk/models/list_templates_response.rb +14 -19
  180. data/lib/fattureincloud_ruby_sdk/models/list_units_of_measure_response.rb +14 -19
  181. data/lib/fattureincloud_ruby_sdk/models/list_user_companies_response.rb +14 -19
  182. data/lib/fattureincloud_ruby_sdk/models/list_user_companies_response_data.rb +14 -19
  183. data/lib/fattureincloud_ruby_sdk/models/list_vat_types_response.rb +14 -19
  184. data/lib/fattureincloud_ruby_sdk/models/list_webhooks_subscriptions_response.rb +14 -19
  185. data/lib/fattureincloud_ruby_sdk/models/modify_archive_document_request.rb +14 -19
  186. data/lib/fattureincloud_ruby_sdk/models/modify_archive_document_response.rb +14 -19
  187. data/lib/fattureincloud_ruby_sdk/models/modify_cashbook_entry_request.rb +14 -19
  188. data/lib/fattureincloud_ruby_sdk/models/modify_cashbook_entry_response.rb +14 -19
  189. data/lib/fattureincloud_ruby_sdk/models/modify_client_request.rb +14 -19
  190. data/lib/fattureincloud_ruby_sdk/models/modify_client_response.rb +14 -19
  191. data/lib/fattureincloud_ruby_sdk/models/modify_f24_request.rb +14 -19
  192. data/lib/fattureincloud_ruby_sdk/models/modify_f24_response.rb +14 -19
  193. data/lib/fattureincloud_ruby_sdk/models/modify_issued_document_request.rb +14 -19
  194. data/lib/fattureincloud_ruby_sdk/models/modify_issued_document_response.rb +14 -19
  195. data/lib/fattureincloud_ruby_sdk/models/modify_payment_account_request.rb +14 -19
  196. data/lib/fattureincloud_ruby_sdk/models/modify_payment_account_response.rb +14 -19
  197. data/lib/fattureincloud_ruby_sdk/models/modify_payment_method_request.rb +14 -19
  198. data/lib/fattureincloud_ruby_sdk/models/modify_payment_method_response.rb +14 -19
  199. data/lib/fattureincloud_ruby_sdk/models/modify_product_request.rb +14 -19
  200. data/lib/fattureincloud_ruby_sdk/models/modify_product_response.rb +14 -19
  201. data/lib/fattureincloud_ruby_sdk/models/modify_receipt_request.rb +14 -19
  202. data/lib/fattureincloud_ruby_sdk/models/modify_receipt_response.rb +14 -19
  203. data/lib/fattureincloud_ruby_sdk/models/modify_received_document_request.rb +14 -19
  204. data/lib/fattureincloud_ruby_sdk/models/modify_received_document_response.rb +14 -19
  205. data/lib/fattureincloud_ruby_sdk/models/modify_supplier_request.rb +14 -19
  206. data/lib/fattureincloud_ruby_sdk/models/modify_supplier_response.rb +14 -19
  207. data/lib/fattureincloud_ruby_sdk/models/modify_vat_type_request.rb +14 -19
  208. data/lib/fattureincloud_ruby_sdk/models/modify_vat_type_response.rb +14 -19
  209. data/lib/fattureincloud_ruby_sdk/models/modify_webhooks_subscription_request.rb +14 -19
  210. data/lib/fattureincloud_ruby_sdk/models/modify_webhooks_subscription_response.rb +14 -19
  211. data/lib/fattureincloud_ruby_sdk/models/monthly_total.rb +14 -19
  212. data/lib/fattureincloud_ruby_sdk/models/original_document_type.rb +2 -2
  213. data/lib/fattureincloud_ruby_sdk/models/pagination.rb +14 -19
  214. data/lib/fattureincloud_ruby_sdk/models/payment_account.rb +14 -19
  215. data/lib/fattureincloud_ruby_sdk/models/payment_account_type.rb +2 -2
  216. data/lib/fattureincloud_ruby_sdk/models/payment_method.rb +14 -19
  217. data/lib/fattureincloud_ruby_sdk/models/payment_method_details.rb +14 -19
  218. data/lib/fattureincloud_ruby_sdk/models/payment_method_type.rb +2 -2
  219. data/lib/fattureincloud_ruby_sdk/models/payment_terms_type.rb +2 -2
  220. data/lib/fattureincloud_ruby_sdk/models/permission_level.rb +2 -2
  221. data/lib/fattureincloud_ruby_sdk/models/permissions.rb +14 -19
  222. data/lib/fattureincloud_ruby_sdk/models/permissions_fic_issued_documents_detailed.rb +14 -19
  223. data/lib/fattureincloud_ruby_sdk/models/product.rb +14 -19
  224. data/lib/fattureincloud_ruby_sdk/models/receipt.rb +14 -19
  225. data/lib/fattureincloud_ruby_sdk/models/receipt_items_list_item.rb +14 -19
  226. data/lib/fattureincloud_ruby_sdk/models/receipt_pre_create_info.rb +14 -19
  227. data/lib/fattureincloud_ruby_sdk/models/receipt_type.rb +2 -2
  228. data/lib/fattureincloud_ruby_sdk/models/received_document.rb +26 -20
  229. data/lib/fattureincloud_ruby_sdk/models/received_document_info.rb +14 -19
  230. data/lib/fattureincloud_ruby_sdk/models/received_document_info_default_values.rb +14 -19
  231. data/lib/fattureincloud_ruby_sdk/models/received_document_info_items_default_values.rb +14 -19
  232. data/lib/fattureincloud_ruby_sdk/models/received_document_items_list_item.rb +14 -19
  233. data/lib/fattureincloud_ruby_sdk/models/received_document_payments_list_item.rb +14 -19
  234. data/lib/fattureincloud_ruby_sdk/models/received_document_payments_list_item_payment_terms.rb +14 -19
  235. data/lib/fattureincloud_ruby_sdk/models/received_document_totals.rb +14 -19
  236. data/lib/fattureincloud_ruby_sdk/models/received_document_type.rb +2 -2
  237. data/lib/fattureincloud_ruby_sdk/models/schedule_email_request.rb +14 -19
  238. data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request.rb +14 -19
  239. data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request_data.rb +14 -19
  240. data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request_options.rb +14 -19
  241. data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_response.rb +14 -19
  242. data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_response_data.rb +14 -19
  243. data/lib/fattureincloud_ruby_sdk/models/sender_email.rb +14 -19
  244. data/lib/fattureincloud_ruby_sdk/models/show_totals_mode.rb +2 -2
  245. data/lib/fattureincloud_ruby_sdk/models/supplier.rb +26 -20
  246. data/lib/fattureincloud_ruby_sdk/models/supplier_type.rb +2 -2
  247. data/lib/fattureincloud_ruby_sdk/models/transform_issued_document_response.rb +14 -19
  248. data/lib/fattureincloud_ruby_sdk/models/upload_archive_attachment_response.rb +14 -19
  249. data/lib/fattureincloud_ruby_sdk/models/upload_f24_attachment_response.rb +14 -19
  250. data/lib/fattureincloud_ruby_sdk/models/upload_issued_document_attachment_response.rb +14 -19
  251. data/lib/fattureincloud_ruby_sdk/models/upload_received_document_attachment_response.rb +14 -19
  252. data/lib/fattureincloud_ruby_sdk/models/user.rb +14 -19
  253. data/lib/fattureincloud_ruby_sdk/models/user_company_role.rb +2 -2
  254. data/lib/fattureincloud_ruby_sdk/models/vat_item.rb +14 -19
  255. data/lib/fattureincloud_ruby_sdk/models/vat_kind.rb +2 -2
  256. data/lib/fattureincloud_ruby_sdk/models/vat_type.rb +14 -19
  257. data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response.rb +14 -19
  258. data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_error.rb +14 -19
  259. data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_error_validation_result.rb +14 -19
  260. data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_extra.rb +14 -19
  261. data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_response.rb +14 -19
  262. data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_response_data.rb +14 -19
  263. data/lib/fattureincloud_ruby_sdk/models/webhooks_subscription.rb +28 -24
  264. data/lib/fattureincloud_ruby_sdk/models/webhooks_subscription_config.rb +236 -0
  265. data/lib/fattureincloud_ruby_sdk/models/webhooks_subscription_mapping.rb +40 -0
  266. data/lib/fattureincloud_ruby_sdk/version.rb +3 -3
  267. data/lib/fattureincloud_ruby_sdk.rb +4 -2
  268. data/sdk-version.yaml +1 -1
  269. data/spec/api_client_spec.rb +2 -2
  270. data/spec/configuration_spec.rb +2 -2
  271. data/spec/models/webhooks_subscription_config_spec.rb +35 -0
  272. data/spec/models/webhooks_subscription_mapping_spec.rb +28 -0
  273. data/spec/models/webhooks_subscription_spec.rb +9 -0
  274. data/spec/spec_helper.rb +2 -2
  275. 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.29
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: 6.6.0
9
+ OpenAPI Generator version: 7.0.1
10
10
 
11
11
  =end
12
12
 
@@ -107,6 +107,7 @@ module FattureInCloud_Ruby_Sdk
107
107
  # Show invalid properties with the reasons. Usually used together with valid?
108
108
  # @return Array for valid properties with the reasons
109
109
  def list_invalid_properties
110
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
110
111
  invalid_properties = Array.new
111
112
  invalid_properties
112
113
  end
@@ -114,6 +115,7 @@ module FattureInCloud_Ruby_Sdk
114
115
  # Check to see if the all the properties in the model are valid
115
116
  # @return true if the model is valid
116
117
  def valid?
118
+ warn '[DEPRECATED] the `valid?` method is obsolete'
117
119
  true
118
120
  end
119
121
 
@@ -145,37 +147,30 @@ module FattureInCloud_Ruby_Sdk
145
147
  # @param [Hash] attributes Model attributes in the form of hash
146
148
  # @return [Object] Returns the model itself
147
149
  def self.build_from_hash(attributes)
148
- new.build_from_hash(attributes)
149
- end
150
-
151
- # Builds the object from hash
152
- # @param [Hash] attributes Model attributes in the form of hash
153
- # @return [Object] Returns the model itself
154
- def build_from_hash(attributes)
155
150
  return nil unless attributes.is_a?(Hash)
156
151
  attributes = attributes.transform_keys(&:to_sym)
157
- self.class.openapi_types.each_pair do |key, type|
158
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
159
- self.send("#{key}=", nil)
152
+ transformed_hash = {}
153
+ openapi_types.each_pair do |key, type|
154
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
155
+ transformed_hash["#{key}"] = nil
160
156
  elsif type =~ /\AArray<(.*)>/i
161
157
  # check to ensure the input is an array given that the attribute
162
158
  # is documented as an array but the input is not
163
- if attributes[self.class.attribute_map[key]].is_a?(Array)
164
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
159
+ if attributes[attribute_map[key]].is_a?(Array)
160
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
165
161
  end
166
- elsif !attributes[self.class.attribute_map[key]].nil?
167
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
162
+ elsif !attributes[attribute_map[key]].nil?
163
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
168
164
  end
169
165
  end
170
-
171
- self
166
+ new(transformed_hash)
172
167
  end
173
168
 
174
169
  # Deserializes the data based on type
175
170
  # @param string type Data type
176
171
  # @param string value Value to be deserialized
177
172
  # @return [Object] Deserialized data
178
- def _deserialize(type, value)
173
+ def self._deserialize(type, value)
179
174
  case type.to_sym
180
175
  when :Time
181
176
  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.29
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: 6.6.0
9
+ OpenAPI Generator version: 7.0.1
10
10
 
11
11
  =end
12
12
 
@@ -237,6 +237,7 @@ module FattureInCloud_Ruby_Sdk
237
237
  # Show invalid properties with the reasons. Usually used together with valid?
238
238
  # @return Array for valid properties with the reasons
239
239
  def list_invalid_properties
240
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
240
241
  invalid_properties = Array.new
241
242
  invalid_properties
242
243
  end
@@ -244,6 +245,7 @@ module FattureInCloud_Ruby_Sdk
244
245
  # Check to see if the all the properties in the model are valid
245
246
  # @return true if the model is valid
246
247
  def valid?
248
+ warn '[DEPRECATED] the `valid?` method is obsolete'
247
249
  true
248
250
  end
249
251
 
@@ -286,37 +288,30 @@ module FattureInCloud_Ruby_Sdk
286
288
  # @param [Hash] attributes Model attributes in the form of hash
287
289
  # @return [Object] Returns the model itself
288
290
  def self.build_from_hash(attributes)
289
- new.build_from_hash(attributes)
290
- end
291
-
292
- # Builds the object from hash
293
- # @param [Hash] attributes Model attributes in the form of hash
294
- # @return [Object] Returns the model itself
295
- def build_from_hash(attributes)
296
291
  return nil unless attributes.is_a?(Hash)
297
292
  attributes = attributes.transform_keys(&:to_sym)
298
- self.class.openapi_types.each_pair do |key, type|
299
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
300
- self.send("#{key}=", nil)
293
+ transformed_hash = {}
294
+ openapi_types.each_pair do |key, type|
295
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
296
+ transformed_hash["#{key}"] = nil
301
297
  elsif type =~ /\AArray<(.*)>/i
302
298
  # check to ensure the input is an array given that the attribute
303
299
  # is documented as an array but the input is not
304
- if attributes[self.class.attribute_map[key]].is_a?(Array)
305
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
300
+ if attributes[attribute_map[key]].is_a?(Array)
301
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
306
302
  end
307
- elsif !attributes[self.class.attribute_map[key]].nil?
308
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
303
+ elsif !attributes[attribute_map[key]].nil?
304
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
309
305
  end
310
306
  end
311
-
312
- self
307
+ new(transformed_hash)
313
308
  end
314
309
 
315
310
  # Deserializes the data based on type
316
311
  # @param string type Data type
317
312
  # @param string value Value to be deserialized
318
313
  # @return [Object] Deserialized data
319
- def _deserialize(type, value)
314
+ def self._deserialize(type, value)
320
315
  case type.to_sym
321
316
  when :Time
322
317
  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.29
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: 6.6.0
9
+ OpenAPI Generator version: 7.0.1
10
10
 
11
11
  =end
12
12
 
@@ -75,6 +75,7 @@ module FattureInCloud_Ruby_Sdk
75
75
  # Show invalid properties with the reasons. Usually used together with valid?
76
76
  # @return Array for valid properties with the reasons
77
77
  def list_invalid_properties
78
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
78
79
  invalid_properties = Array.new
79
80
  invalid_properties
80
81
  end
@@ -82,6 +83,7 @@ module FattureInCloud_Ruby_Sdk
82
83
  # Check to see if the all the properties in the model are valid
83
84
  # @return true if the model is valid
84
85
  def valid?
86
+ warn '[DEPRECATED] the `valid?` method is obsolete'
85
87
  true
86
88
  end
87
89
 
@@ -110,37 +112,30 @@ module FattureInCloud_Ruby_Sdk
110
112
  # @param [Hash] attributes Model attributes in the form of hash
111
113
  # @return [Object] Returns the model itself
112
114
  def self.build_from_hash(attributes)
113
- new.build_from_hash(attributes)
114
- end
115
-
116
- # Builds the object from hash
117
- # @param [Hash] attributes Model attributes in the form of hash
118
- # @return [Object] Returns the model itself
119
- def build_from_hash(attributes)
120
115
  return nil unless attributes.is_a?(Hash)
121
116
  attributes = attributes.transform_keys(&:to_sym)
122
- self.class.openapi_types.each_pair do |key, type|
123
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
124
- self.send("#{key}=", nil)
117
+ transformed_hash = {}
118
+ openapi_types.each_pair do |key, type|
119
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
120
+ transformed_hash["#{key}"] = nil
125
121
  elsif type =~ /\AArray<(.*)>/i
126
122
  # check to ensure the input is an array given that the attribute
127
123
  # is documented as an array but the input is not
128
- if attributes[self.class.attribute_map[key]].is_a?(Array)
129
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
124
+ if attributes[attribute_map[key]].is_a?(Array)
125
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
130
126
  end
131
- elsif !attributes[self.class.attribute_map[key]].nil?
132
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
127
+ elsif !attributes[attribute_map[key]].nil?
128
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
133
129
  end
134
130
  end
135
-
136
- self
131
+ new(transformed_hash)
137
132
  end
138
133
 
139
134
  # Deserializes the data based on type
140
135
  # @param string type Data type
141
136
  # @param string value Value to be deserialized
142
137
  # @return [Object] Deserialized data
143
- def _deserialize(type, value)
138
+ def self._deserialize(type, value)
144
139
  case type.to_sym
145
140
  when :Time
146
141
  Time.parse(value)
@@ -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.29
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: 6.6.0
9
+ OpenAPI Generator version: 7.0.1
10
10
 
11
11
  =end
12
12
 
@@ -168,6 +168,7 @@ module FattureInCloud_Ruby_Sdk
168
168
  # Show invalid properties with the reasons. Usually used together with valid?
169
169
  # @return Array for valid properties with the reasons
170
170
  def list_invalid_properties
171
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
171
172
  invalid_properties = Array.new
172
173
  invalid_properties
173
174
  end
@@ -175,6 +176,7 @@ module FattureInCloud_Ruby_Sdk
175
176
  # Check to see if the all the properties in the model are valid
176
177
  # @return true if the model is valid
177
178
  def valid?
179
+ warn '[DEPRECATED] the `valid?` method is obsolete'
178
180
  true
179
181
  end
180
182
 
@@ -212,37 +214,30 @@ module FattureInCloud_Ruby_Sdk
212
214
  # @param [Hash] attributes Model attributes in the form of hash
213
215
  # @return [Object] Returns the model itself
214
216
  def self.build_from_hash(attributes)
215
- new.build_from_hash(attributes)
216
- end
217
-
218
- # Builds the object from hash
219
- # @param [Hash] attributes Model attributes in the form of hash
220
- # @return [Object] Returns the model itself
221
- def build_from_hash(attributes)
222
217
  return nil unless attributes.is_a?(Hash)
223
218
  attributes = attributes.transform_keys(&:to_sym)
224
- self.class.openapi_types.each_pair do |key, type|
225
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
226
- self.send("#{key}=", nil)
219
+ transformed_hash = {}
220
+ openapi_types.each_pair do |key, type|
221
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
222
+ transformed_hash["#{key}"] = nil
227
223
  elsif type =~ /\AArray<(.*)>/i
228
224
  # check to ensure the input is an array given that the attribute
229
225
  # is documented as an array but the input is not
230
- if attributes[self.class.attribute_map[key]].is_a?(Array)
231
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
226
+ if attributes[attribute_map[key]].is_a?(Array)
227
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
232
228
  end
233
- elsif !attributes[self.class.attribute_map[key]].nil?
234
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
229
+ elsif !attributes[attribute_map[key]].nil?
230
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
235
231
  end
236
232
  end
237
-
238
- self
233
+ new(transformed_hash)
239
234
  end
240
235
 
241
236
  # Deserializes the data based on type
242
237
  # @param string type Data type
243
238
  # @param string value Value to be deserialized
244
239
  # @return [Object] Deserialized data
245
- def _deserialize(type, value)
240
+ def self._deserialize(type, value)
246
241
  case type.to_sym
247
242
  when :Time
248
243
  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.29
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: 6.6.0
9
+ OpenAPI Generator version: 7.0.1
10
10
 
11
11
  =end
12
12
 
@@ -78,6 +78,7 @@ module FattureInCloud_Ruby_Sdk
78
78
  # Show invalid properties with the reasons. Usually used together with valid?
79
79
  # @return Array for valid properties with the reasons
80
80
  def list_invalid_properties
81
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
81
82
  invalid_properties = Array.new
82
83
  invalid_properties
83
84
  end
@@ -85,6 +86,7 @@ module FattureInCloud_Ruby_Sdk
85
86
  # Check to see if the all the properties in the model are valid
86
87
  # @return true if the model is valid
87
88
  def valid?
89
+ warn '[DEPRECATED] the `valid?` method is obsolete'
88
90
  true
89
91
  end
90
92
 
@@ -113,37 +115,30 @@ module FattureInCloud_Ruby_Sdk
113
115
  # @param [Hash] attributes Model attributes in the form of hash
114
116
  # @return [Object] Returns the model itself
115
117
  def self.build_from_hash(attributes)
116
- new.build_from_hash(attributes)
117
- end
118
-
119
- # Builds the object from hash
120
- # @param [Hash] attributes Model attributes in the form of hash
121
- # @return [Object] Returns the model itself
122
- def build_from_hash(attributes)
123
118
  return nil unless attributes.is_a?(Hash)
124
119
  attributes = attributes.transform_keys(&:to_sym)
125
- self.class.openapi_types.each_pair do |key, type|
126
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
127
- self.send("#{key}=", nil)
120
+ transformed_hash = {}
121
+ openapi_types.each_pair do |key, type|
122
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
123
+ transformed_hash["#{key}"] = nil
128
124
  elsif type =~ /\AArray<(.*)>/i
129
125
  # check to ensure the input is an array given that the attribute
130
126
  # is documented as an array but the input is not
131
- if attributes[self.class.attribute_map[key]].is_a?(Array)
132
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
127
+ if attributes[attribute_map[key]].is_a?(Array)
128
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
133
129
  end
134
- elsif !attributes[self.class.attribute_map[key]].nil?
135
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
130
+ elsif !attributes[attribute_map[key]].nil?
131
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
136
132
  end
137
133
  end
138
-
139
- self
134
+ new(transformed_hash)
140
135
  end
141
136
 
142
137
  # Deserializes the data based on type
143
138
  # @param string type Data type
144
139
  # @param string value Value to be deserialized
145
140
  # @return [Object] Deserialized data
146
- def _deserialize(type, value)
141
+ def self._deserialize(type, value)
147
142
  case type.to_sym
148
143
  when :Time
149
144
  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.29
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: 6.6.0
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.29
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: 6.6.0
9
+ OpenAPI Generator version: 7.0.1
10
10
 
11
11
  =end
12
12
 
@@ -136,6 +136,7 @@ module FattureInCloud_Ruby_Sdk
136
136
  # Show invalid properties with the reasons. Usually used together with valid?
137
137
  # @return Array for valid properties with the reasons
138
138
  def list_invalid_properties
139
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
139
140
  invalid_properties = Array.new
140
141
  invalid_properties
141
142
  end
@@ -143,6 +144,7 @@ module FattureInCloud_Ruby_Sdk
143
144
  # Check to see if the all the properties in the model are valid
144
145
  # @return true if the model is valid
145
146
  def valid?
147
+ warn '[DEPRECATED] the `valid?` method is obsolete'
146
148
  true
147
149
  end
148
150
 
@@ -177,37 +179,30 @@ module FattureInCloud_Ruby_Sdk
177
179
  # @param [Hash] attributes Model attributes in the form of hash
178
180
  # @return [Object] Returns the model itself
179
181
  def self.build_from_hash(attributes)
180
- new.build_from_hash(attributes)
181
- end
182
-
183
- # Builds the object from hash
184
- # @param [Hash] attributes Model attributes in the form of hash
185
- # @return [Object] Returns the model itself
186
- def build_from_hash(attributes)
187
182
  return nil unless attributes.is_a?(Hash)
188
183
  attributes = attributes.transform_keys(&:to_sym)
189
- self.class.openapi_types.each_pair do |key, type|
190
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
191
- self.send("#{key}=", nil)
184
+ transformed_hash = {}
185
+ openapi_types.each_pair do |key, type|
186
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
187
+ transformed_hash["#{key}"] = nil
192
188
  elsif type =~ /\AArray<(.*)>/i
193
189
  # check to ensure the input is an array given that the attribute
194
190
  # is documented as an array but the input is not
195
- if attributes[self.class.attribute_map[key]].is_a?(Array)
196
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
191
+ if attributes[attribute_map[key]].is_a?(Array)
192
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
197
193
  end
198
- elsif !attributes[self.class.attribute_map[key]].nil?
199
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
194
+ elsif !attributes[attribute_map[key]].nil?
195
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
200
196
  end
201
197
  end
202
-
203
- self
198
+ new(transformed_hash)
204
199
  end
205
200
 
206
201
  # Deserializes the data based on type
207
202
  # @param string type Data type
208
203
  # @param string value Value to be deserialized
209
204
  # @return [Object] Deserialized data
210
- def _deserialize(type, value)
205
+ def self._deserialize(type, value)
211
206
  case type.to_sym
212
207
  when :Time
213
208
  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.29
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: 6.6.0
9
+ OpenAPI Generator version: 7.0.1
10
10
 
11
11
  =end
12
12
 
@@ -97,6 +97,7 @@ module FattureInCloud_Ruby_Sdk
97
97
  # Show invalid properties with the reasons. Usually used together with valid?
98
98
  # @return Array for valid properties with the reasons
99
99
  def list_invalid_properties
100
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
100
101
  invalid_properties = Array.new
101
102
  invalid_properties
102
103
  end
@@ -104,6 +105,7 @@ module FattureInCloud_Ruby_Sdk
104
105
  # Check to see if the all the properties in the model are valid
105
106
  # @return true if the model is valid
106
107
  def valid?
108
+ warn '[DEPRECATED] the `valid?` method is obsolete'
107
109
  true
108
110
  end
109
111
 
@@ -134,37 +136,30 @@ module FattureInCloud_Ruby_Sdk
134
136
  # @param [Hash] attributes Model attributes in the form of hash
135
137
  # @return [Object] Returns the model itself
136
138
  def self.build_from_hash(attributes)
137
- new.build_from_hash(attributes)
138
- end
139
-
140
- # Builds the object from hash
141
- # @param [Hash] attributes Model attributes in the form of hash
142
- # @return [Object] Returns the model itself
143
- def build_from_hash(attributes)
144
139
  return nil unless attributes.is_a?(Hash)
145
140
  attributes = attributes.transform_keys(&:to_sym)
146
- self.class.openapi_types.each_pair do |key, type|
147
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
148
- self.send("#{key}=", nil)
141
+ transformed_hash = {}
142
+ openapi_types.each_pair do |key, type|
143
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
144
+ transformed_hash["#{key}"] = nil
149
145
  elsif type =~ /\AArray<(.*)>/i
150
146
  # check to ensure the input is an array given that the attribute
151
147
  # is documented as an array but the input is not
152
- if attributes[self.class.attribute_map[key]].is_a?(Array)
153
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
148
+ if attributes[attribute_map[key]].is_a?(Array)
149
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
154
150
  end
155
- elsif !attributes[self.class.attribute_map[key]].nil?
156
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
151
+ elsif !attributes[attribute_map[key]].nil?
152
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
157
153
  end
158
154
  end
159
-
160
- self
155
+ new(transformed_hash)
161
156
  end
162
157
 
163
158
  # Deserializes the data based on type
164
159
  # @param string type Data type
165
160
  # @param string value Value to be deserialized
166
161
  # @return [Object] Deserialized data
167
- def _deserialize(type, value)
162
+ def self._deserialize(type, value)
168
163
  case type.to_sym
169
164
  when :Time
170
165
  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.29
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: 6.6.0
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.29
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: 6.6.0
9
+ OpenAPI Generator version: 7.0.1
10
10
 
11
11
  =end
12
12
 
@@ -435,6 +435,7 @@ module FattureInCloud_Ruby_Sdk
435
435
  # Show invalid properties with the reasons. Usually used together with valid?
436
436
  # @return Array for valid properties with the reasons
437
437
  def list_invalid_properties
438
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
438
439
  invalid_properties = Array.new
439
440
  invalid_properties
440
441
  end
@@ -442,6 +443,7 @@ module FattureInCloud_Ruby_Sdk
442
443
  # Check to see if the all the properties in the model are valid
443
444
  # @return true if the model is valid
444
445
  def valid?
446
+ warn '[DEPRECATED] the `valid?` method is obsolete'
445
447
  true
446
448
  end
447
449
 
@@ -504,37 +506,30 @@ module FattureInCloud_Ruby_Sdk
504
506
  # @param [Hash] attributes Model attributes in the form of hash
505
507
  # @return [Object] Returns the model itself
506
508
  def self.build_from_hash(attributes)
507
- new.build_from_hash(attributes)
508
- end
509
-
510
- # Builds the object from hash
511
- # @param [Hash] attributes Model attributes in the form of hash
512
- # @return [Object] Returns the model itself
513
- def build_from_hash(attributes)
514
509
  return nil unless attributes.is_a?(Hash)
515
510
  attributes = attributes.transform_keys(&:to_sym)
516
- self.class.openapi_types.each_pair do |key, type|
517
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
518
- self.send("#{key}=", nil)
511
+ transformed_hash = {}
512
+ openapi_types.each_pair do |key, type|
513
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
514
+ transformed_hash["#{key}"] = nil
519
515
  elsif type =~ /\AArray<(.*)>/i
520
516
  # check to ensure the input is an array given that the attribute
521
517
  # is documented as an array but the input is not
522
- if attributes[self.class.attribute_map[key]].is_a?(Array)
523
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
518
+ if attributes[attribute_map[key]].is_a?(Array)
519
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
524
520
  end
525
- elsif !attributes[self.class.attribute_map[key]].nil?
526
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
521
+ elsif !attributes[attribute_map[key]].nil?
522
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
527
523
  end
528
524
  end
529
-
530
- self
525
+ new(transformed_hash)
531
526
  end
532
527
 
533
528
  # Deserializes the data based on type
534
529
  # @param string type Data type
535
530
  # @param string value Value to be deserialized
536
531
  # @return [Object] Deserialized data
537
- def _deserialize(type, value)
532
+ def self._deserialize(type, value)
538
533
  case type.to_sym
539
534
  when :Time
540
535
  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.29
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: 6.6.0
9
+ OpenAPI Generator version: 7.0.1
10
10
 
11
11
  =end
12
12