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
 
@@ -66,6 +66,7 @@ module FattureInCloud_Ruby_Sdk
66
66
  # Show invalid properties with the reasons. Usually used together with valid?
67
67
  # @return Array for valid properties with the reasons
68
68
  def list_invalid_properties
69
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
69
70
  invalid_properties = Array.new
70
71
  invalid_properties
71
72
  end
@@ -73,6 +74,7 @@ module FattureInCloud_Ruby_Sdk
73
74
  # Check to see if the all the properties in the model are valid
74
75
  # @return true if the model is valid
75
76
  def valid?
77
+ warn '[DEPRECATED] the `valid?` method is obsolete'
76
78
  true
77
79
  end
78
80
 
@@ -100,37 +102,30 @@ module FattureInCloud_Ruby_Sdk
100
102
  # @param [Hash] attributes Model attributes in the form of hash
101
103
  # @return [Object] Returns the model itself
102
104
  def self.build_from_hash(attributes)
103
- new.build_from_hash(attributes)
104
- end
105
-
106
- # Builds the object from hash
107
- # @param [Hash] attributes Model attributes in the form of hash
108
- # @return [Object] Returns the model itself
109
- def build_from_hash(attributes)
110
105
  return nil unless attributes.is_a?(Hash)
111
106
  attributes = attributes.transform_keys(&:to_sym)
112
- self.class.openapi_types.each_pair do |key, type|
113
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
114
- self.send("#{key}=", nil)
107
+ transformed_hash = {}
108
+ openapi_types.each_pair do |key, type|
109
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
110
+ transformed_hash["#{key}"] = nil
115
111
  elsif type =~ /\AArray<(.*)>/i
116
112
  # check to ensure the input is an array given that the attribute
117
113
  # is documented as an array but the input is not
118
- if attributes[self.class.attribute_map[key]].is_a?(Array)
119
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
114
+ if attributes[attribute_map[key]].is_a?(Array)
115
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
120
116
  end
121
- elsif !attributes[self.class.attribute_map[key]].nil?
122
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
117
+ elsif !attributes[attribute_map[key]].nil?
118
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
123
119
  end
124
120
  end
125
-
126
- self
121
+ new(transformed_hash)
127
122
  end
128
123
 
129
124
  # Deserializes the data based on type
130
125
  # @param string type Data type
131
126
  # @param string value Value to be deserialized
132
127
  # @return [Object] Deserialized data
133
- def _deserialize(type, value)
128
+ def self._deserialize(type, value)
134
129
  case type.to_sym
135
130
  when :Time
136
131
  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
 
@@ -65,6 +65,7 @@ module FattureInCloud_Ruby_Sdk
65
65
  # Show invalid properties with the reasons. Usually used together with valid?
66
66
  # @return Array for valid properties with the reasons
67
67
  def list_invalid_properties
68
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
68
69
  invalid_properties = Array.new
69
70
  invalid_properties
70
71
  end
@@ -72,6 +73,7 @@ module FattureInCloud_Ruby_Sdk
72
73
  # Check to see if the all the properties in the model are valid
73
74
  # @return true if the model is valid
74
75
  def valid?
76
+ warn '[DEPRECATED] the `valid?` method is obsolete'
75
77
  true
76
78
  end
77
79
 
@@ -99,37 +101,30 @@ module FattureInCloud_Ruby_Sdk
99
101
  # @param [Hash] attributes Model attributes in the form of hash
100
102
  # @return [Object] Returns the model itself
101
103
  def self.build_from_hash(attributes)
102
- new.build_from_hash(attributes)
103
- end
104
-
105
- # Builds the object from hash
106
- # @param [Hash] attributes Model attributes in the form of hash
107
- # @return [Object] Returns the model itself
108
- def build_from_hash(attributes)
109
104
  return nil unless attributes.is_a?(Hash)
110
105
  attributes = attributes.transform_keys(&:to_sym)
111
- self.class.openapi_types.each_pair do |key, type|
112
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
113
- self.send("#{key}=", nil)
106
+ transformed_hash = {}
107
+ openapi_types.each_pair do |key, type|
108
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
109
+ transformed_hash["#{key}"] = nil
114
110
  elsif type =~ /\AArray<(.*)>/i
115
111
  # check to ensure the input is an array given that the attribute
116
112
  # is documented as an array but the input is not
117
- if attributes[self.class.attribute_map[key]].is_a?(Array)
118
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
113
+ if attributes[attribute_map[key]].is_a?(Array)
114
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
119
115
  end
120
- elsif !attributes[self.class.attribute_map[key]].nil?
121
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
116
+ elsif !attributes[attribute_map[key]].nil?
117
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
122
118
  end
123
119
  end
124
-
125
- self
120
+ new(transformed_hash)
126
121
  end
127
122
 
128
123
  # Deserializes the data based on type
129
124
  # @param string type Data type
130
125
  # @param string value Value to be deserialized
131
126
  # @return [Object] Deserialized data
132
- def _deserialize(type, value)
127
+ def self._deserialize(type, value)
133
128
  case type.to_sym
134
129
  when :Time
135
130
  Time.parse(value)
@@ -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
 
@@ -77,6 +77,7 @@ module FattureInCloud_Ruby_Sdk
77
77
  # Show invalid properties with the reasons. Usually used together with valid?
78
78
  # @return Array for valid properties with the reasons
79
79
  def list_invalid_properties
80
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
80
81
  invalid_properties = Array.new
81
82
  invalid_properties
82
83
  end
@@ -84,6 +85,7 @@ module FattureInCloud_Ruby_Sdk
84
85
  # Check to see if the all the properties in the model are valid
85
86
  # @return true if the model is valid
86
87
  def valid?
88
+ warn '[DEPRECATED] the `valid?` method is obsolete'
87
89
  true
88
90
  end
89
91
 
@@ -112,37 +114,30 @@ module FattureInCloud_Ruby_Sdk
112
114
  # @param [Hash] attributes Model attributes in the form of hash
113
115
  # @return [Object] Returns the model itself
114
116
  def self.build_from_hash(attributes)
115
- new.build_from_hash(attributes)
116
- end
117
-
118
- # Builds the object from hash
119
- # @param [Hash] attributes Model attributes in the form of hash
120
- # @return [Object] Returns the model itself
121
- def build_from_hash(attributes)
122
117
  return nil unless attributes.is_a?(Hash)
123
118
  attributes = attributes.transform_keys(&:to_sym)
124
- self.class.openapi_types.each_pair do |key, type|
125
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
126
- self.send("#{key}=", nil)
119
+ transformed_hash = {}
120
+ openapi_types.each_pair do |key, type|
121
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
122
+ transformed_hash["#{key}"] = nil
127
123
  elsif type =~ /\AArray<(.*)>/i
128
124
  # check to ensure the input is an array given that the attribute
129
125
  # is documented as an array but the input is not
130
- if attributes[self.class.attribute_map[key]].is_a?(Array)
131
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
126
+ if attributes[attribute_map[key]].is_a?(Array)
127
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
132
128
  end
133
- elsif !attributes[self.class.attribute_map[key]].nil?
134
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
129
+ elsif !attributes[attribute_map[key]].nil?
130
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
135
131
  end
136
132
  end
137
-
138
- self
133
+ new(transformed_hash)
139
134
  end
140
135
 
141
136
  # Deserializes the data based on type
142
137
  # @param string type Data type
143
138
  # @param string value Value to be deserialized
144
139
  # @return [Object] Deserialized data
145
- def _deserialize(type, value)
140
+ def self._deserialize(type, value)
146
141
  case type.to_sym
147
142
  when :Time
148
143
  Time.parse(value)
@@ -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
 
@@ -87,6 +87,7 @@ module FattureInCloud_Ruby_Sdk
87
87
  # Show invalid properties with the reasons. Usually used together with valid?
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
90
91
  invalid_properties = Array.new
91
92
  invalid_properties
92
93
  end
@@ -94,6 +95,7 @@ module FattureInCloud_Ruby_Sdk
94
95
  # Check to see if the all the properties in the model are valid
95
96
  # @return true if the model is valid
96
97
  def valid?
98
+ warn '[DEPRECATED] the `valid?` method is obsolete'
97
99
  true
98
100
  end
99
101
 
@@ -123,37 +125,30 @@ module FattureInCloud_Ruby_Sdk
123
125
  # @param [Hash] attributes Model attributes in the form of hash
124
126
  # @return [Object] Returns the model itself
125
127
  def self.build_from_hash(attributes)
126
- new.build_from_hash(attributes)
127
- end
128
-
129
- # Builds the object from hash
130
- # @param [Hash] attributes Model attributes in the form of hash
131
- # @return [Object] Returns the model itself
132
- def build_from_hash(attributes)
133
128
  return nil unless attributes.is_a?(Hash)
134
129
  attributes = attributes.transform_keys(&:to_sym)
135
- self.class.openapi_types.each_pair do |key, type|
136
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
137
- self.send("#{key}=", nil)
130
+ transformed_hash = {}
131
+ openapi_types.each_pair do |key, type|
132
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
133
+ transformed_hash["#{key}"] = nil
138
134
  elsif type =~ /\AArray<(.*)>/i
139
135
  # check to ensure the input is an array given that the attribute
140
136
  # is documented as an array but the input is not
141
- if attributes[self.class.attribute_map[key]].is_a?(Array)
142
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
137
+ if attributes[attribute_map[key]].is_a?(Array)
138
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
143
139
  end
144
- elsif !attributes[self.class.attribute_map[key]].nil?
145
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
140
+ elsif !attributes[attribute_map[key]].nil?
141
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
146
142
  end
147
143
  end
148
-
149
- self
144
+ new(transformed_hash)
150
145
  end
151
146
 
152
147
  # Deserializes the data based on type
153
148
  # @param string type Data type
154
149
  # @param string value Value to be deserialized
155
150
  # @return [Object] Deserialized data
156
- def _deserialize(type, value)
151
+ def self._deserialize(type, value)
157
152
  case type.to_sym
158
153
  when :Time
159
154
  Time.parse(value)
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
5
5
 
6
- The version of the OpenAPI document: 2.0.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
 
@@ -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
 
@@ -149,6 +149,7 @@ module FattureInCloud_Ruby_Sdk
149
149
  # Show invalid properties with the reasons. Usually used together with valid?
150
150
  # @return Array for valid properties with the reasons
151
151
  def list_invalid_properties
152
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
152
153
  invalid_properties = Array.new
153
154
  invalid_properties
154
155
  end
@@ -156,6 +157,7 @@ module FattureInCloud_Ruby_Sdk
156
157
  # Check to see if the all the properties in the model are valid
157
158
  # @return true if the model is valid
158
159
  def valid?
160
+ warn '[DEPRECATED] the `valid?` method is obsolete'
159
161
  true
160
162
  end
161
163
 
@@ -189,37 +191,30 @@ module FattureInCloud_Ruby_Sdk
189
191
  # @param [Hash] attributes Model attributes in the form of hash
190
192
  # @return [Object] Returns the model itself
191
193
  def self.build_from_hash(attributes)
192
- new.build_from_hash(attributes)
193
- end
194
-
195
- # Builds the object from hash
196
- # @param [Hash] attributes Model attributes in the form of hash
197
- # @return [Object] Returns the model itself
198
- def build_from_hash(attributes)
199
194
  return nil unless attributes.is_a?(Hash)
200
195
  attributes = attributes.transform_keys(&:to_sym)
201
- self.class.openapi_types.each_pair do |key, type|
202
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
203
- self.send("#{key}=", nil)
196
+ transformed_hash = {}
197
+ openapi_types.each_pair do |key, type|
198
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
199
+ transformed_hash["#{key}"] = nil
204
200
  elsif type =~ /\AArray<(.*)>/i
205
201
  # check to ensure the input is an array given that the attribute
206
202
  # is documented as an array but the input is not
207
- if attributes[self.class.attribute_map[key]].is_a?(Array)
208
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
203
+ if attributes[attribute_map[key]].is_a?(Array)
204
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
209
205
  end
210
- elsif !attributes[self.class.attribute_map[key]].nil?
211
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
206
+ elsif !attributes[attribute_map[key]].nil?
207
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
212
208
  end
213
209
  end
214
-
215
- self
210
+ new(transformed_hash)
216
211
  end
217
212
 
218
213
  # Deserializes the data based on type
219
214
  # @param string type Data type
220
215
  # @param string value Value to be deserialized
221
216
  # @return [Object] Deserialized data
222
- def _deserialize(type, value)
217
+ def self._deserialize(type, value)
223
218
  case type.to_sym
224
219
  when :Time
225
220
  Time.parse(value)
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
5
5
 
6
- The version of the OpenAPI document: 2.0.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
 
@@ -180,6 +180,7 @@ module FattureInCloud_Ruby_Sdk
180
180
  # Show invalid properties with the reasons. Usually used together with valid?
181
181
  # @return Array for valid properties with the reasons
182
182
  def list_invalid_properties
183
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
183
184
  invalid_properties = Array.new
184
185
  if !@details.nil? && @details.length > 5
185
186
  invalid_properties.push('invalid value for "details", number of items must be less than or equal to 5.')
@@ -191,6 +192,7 @@ module FattureInCloud_Ruby_Sdk
191
192
  # Check to see if the all the properties in the model are valid
192
193
  # @return true if the model is valid
193
194
  def valid?
195
+ warn '[DEPRECATED] the `valid?` method is obsolete'
194
196
  return false if !@details.nil? && @details.length > 5
195
197
  true
196
198
  end
@@ -238,37 +240,30 @@ module FattureInCloud_Ruby_Sdk
238
240
  # @param [Hash] attributes Model attributes in the form of hash
239
241
  # @return [Object] Returns the model itself
240
242
  def self.build_from_hash(attributes)
241
- new.build_from_hash(attributes)
242
- end
243
-
244
- # Builds the object from hash
245
- # @param [Hash] attributes Model attributes in the form of hash
246
- # @return [Object] Returns the model itself
247
- def build_from_hash(attributes)
248
243
  return nil unless attributes.is_a?(Hash)
249
244
  attributes = attributes.transform_keys(&:to_sym)
250
- self.class.openapi_types.each_pair do |key, type|
251
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
252
- self.send("#{key}=", nil)
245
+ transformed_hash = {}
246
+ openapi_types.each_pair do |key, type|
247
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
248
+ transformed_hash["#{key}"] = nil
253
249
  elsif type =~ /\AArray<(.*)>/i
254
250
  # check to ensure the input is an array given that the attribute
255
251
  # is documented as an array but the input is not
256
- if attributes[self.class.attribute_map[key]].is_a?(Array)
257
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
252
+ if attributes[attribute_map[key]].is_a?(Array)
253
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
258
254
  end
259
- elsif !attributes[self.class.attribute_map[key]].nil?
260
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
255
+ elsif !attributes[attribute_map[key]].nil?
256
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
261
257
  end
262
258
  end
263
-
264
- self
259
+ new(transformed_hash)
265
260
  end
266
261
 
267
262
  # Deserializes the data based on type
268
263
  # @param string type Data type
269
264
  # @param string value Value to be deserialized
270
265
  # @return [Object] Deserialized data
271
- def _deserialize(type, value)
266
+ def self._deserialize(type, value)
272
267
  case type.to_sym
273
268
  when :Time
274
269
  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
 
@@ -77,6 +77,7 @@ module FattureInCloud_Ruby_Sdk
77
77
  # Show invalid properties with the reasons. Usually used together with valid?
78
78
  # @return Array for valid properties with the reasons
79
79
  def list_invalid_properties
80
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
80
81
  invalid_properties = Array.new
81
82
  invalid_properties
82
83
  end
@@ -84,6 +85,7 @@ module FattureInCloud_Ruby_Sdk
84
85
  # Check to see if the all the properties in the model are valid
85
86
  # @return true if the model is valid
86
87
  def valid?
88
+ warn '[DEPRECATED] the `valid?` method is obsolete'
87
89
  true
88
90
  end
89
91
 
@@ -112,37 +114,30 @@ module FattureInCloud_Ruby_Sdk
112
114
  # @param [Hash] attributes Model attributes in the form of hash
113
115
  # @return [Object] Returns the model itself
114
116
  def self.build_from_hash(attributes)
115
- new.build_from_hash(attributes)
116
- end
117
-
118
- # Builds the object from hash
119
- # @param [Hash] attributes Model attributes in the form of hash
120
- # @return [Object] Returns the model itself
121
- def build_from_hash(attributes)
122
117
  return nil unless attributes.is_a?(Hash)
123
118
  attributes = attributes.transform_keys(&:to_sym)
124
- self.class.openapi_types.each_pair do |key, type|
125
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
126
- self.send("#{key}=", nil)
119
+ transformed_hash = {}
120
+ openapi_types.each_pair do |key, type|
121
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
122
+ transformed_hash["#{key}"] = nil
127
123
  elsif type =~ /\AArray<(.*)>/i
128
124
  # check to ensure the input is an array given that the attribute
129
125
  # is documented as an array but the input is not
130
- if attributes[self.class.attribute_map[key]].is_a?(Array)
131
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
126
+ if attributes[attribute_map[key]].is_a?(Array)
127
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
132
128
  end
133
- elsif !attributes[self.class.attribute_map[key]].nil?
134
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
129
+ elsif !attributes[attribute_map[key]].nil?
130
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
135
131
  end
136
132
  end
137
-
138
- self
133
+ new(transformed_hash)
139
134
  end
140
135
 
141
136
  # Deserializes the data based on type
142
137
  # @param string type Data type
143
138
  # @param string value Value to be deserialized
144
139
  # @return [Object] Deserialized data
145
- def _deserialize(type, value)
140
+ def self._deserialize(type, value)
146
141
  case type.to_sym
147
142
  when :Time
148
143
  Time.parse(value)
@@ -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