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
 
@@ -73,6 +73,7 @@ module FattureInCloud_Ruby_Sdk
73
73
  # Show invalid properties with the reasons. Usually used together with valid?
74
74
  # @return Array for valid properties with the reasons
75
75
  def list_invalid_properties
76
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
76
77
  invalid_properties = Array.new
77
78
  invalid_properties
78
79
  end
@@ -80,6 +81,7 @@ module FattureInCloud_Ruby_Sdk
80
81
  # Check to see if the all the properties in the model are valid
81
82
  # @return true if the model is valid
82
83
  def valid?
84
+ warn '[DEPRECATED] the `valid?` method is obsolete'
83
85
  true
84
86
  end
85
87
 
@@ -108,37 +110,30 @@ module FattureInCloud_Ruby_Sdk
108
110
  # @param [Hash] attributes Model attributes in the form of hash
109
111
  # @return [Object] Returns the model itself
110
112
  def self.build_from_hash(attributes)
111
- new.build_from_hash(attributes)
112
- end
113
-
114
- # Builds the object from hash
115
- # @param [Hash] attributes Model attributes in the form of hash
116
- # @return [Object] Returns the model itself
117
- def build_from_hash(attributes)
118
113
  return nil unless attributes.is_a?(Hash)
119
114
  attributes = attributes.transform_keys(&:to_sym)
120
- self.class.openapi_types.each_pair do |key, type|
121
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
122
- self.send("#{key}=", nil)
115
+ transformed_hash = {}
116
+ openapi_types.each_pair do |key, type|
117
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
118
+ transformed_hash["#{key}"] = nil
123
119
  elsif type =~ /\AArray<(.*)>/i
124
120
  # check to ensure the input is an array given that the attribute
125
121
  # is documented as an array but the input is not
126
- if attributes[self.class.attribute_map[key]].is_a?(Array)
127
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
122
+ if attributes[attribute_map[key]].is_a?(Array)
123
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
128
124
  end
129
- elsif !attributes[self.class.attribute_map[key]].nil?
130
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
125
+ elsif !attributes[attribute_map[key]].nil?
126
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
131
127
  end
132
128
  end
133
-
134
- self
129
+ new(transformed_hash)
135
130
  end
136
131
 
137
132
  # Deserializes the data based on type
138
133
  # @param string type Data type
139
134
  # @param string value Value to be deserialized
140
135
  # @return [Object] Deserialized data
141
- def _deserialize(type, value)
136
+ def self._deserialize(type, value)
142
137
  case type.to_sym
143
138
  when :Time
144
139
  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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -127,6 +127,7 @@ module FattureInCloud_Ruby_Sdk
127
127
  # Show invalid properties with the reasons. Usually used together with valid?
128
128
  # @return Array for valid properties with the reasons
129
129
  def list_invalid_properties
130
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
130
131
  invalid_properties = Array.new
131
132
  invalid_properties
132
133
  end
@@ -134,6 +135,7 @@ module FattureInCloud_Ruby_Sdk
134
135
  # Check to see if the all the properties in the model are valid
135
136
  # @return true if the model is valid
136
137
  def valid?
138
+ warn '[DEPRECATED] the `valid?` method is obsolete'
137
139
  true
138
140
  end
139
141
 
@@ -167,37 +169,30 @@ module FattureInCloud_Ruby_Sdk
167
169
  # @param [Hash] attributes Model attributes in the form of hash
168
170
  # @return [Object] Returns the model itself
169
171
  def self.build_from_hash(attributes)
170
- new.build_from_hash(attributes)
171
- end
172
-
173
- # Builds the object from hash
174
- # @param [Hash] attributes Model attributes in the form of hash
175
- # @return [Object] Returns the model itself
176
- def build_from_hash(attributes)
177
172
  return nil unless attributes.is_a?(Hash)
178
173
  attributes = attributes.transform_keys(&:to_sym)
179
- self.class.openapi_types.each_pair do |key, type|
180
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
181
- self.send("#{key}=", nil)
174
+ transformed_hash = {}
175
+ openapi_types.each_pair do |key, type|
176
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
177
+ transformed_hash["#{key}"] = nil
182
178
  elsif type =~ /\AArray<(.*)>/i
183
179
  # check to ensure the input is an array given that the attribute
184
180
  # is documented as an array but the input is not
185
- if attributes[self.class.attribute_map[key]].is_a?(Array)
186
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
181
+ if attributes[attribute_map[key]].is_a?(Array)
182
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
187
183
  end
188
- elsif !attributes[self.class.attribute_map[key]].nil?
189
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
184
+ elsif !attributes[attribute_map[key]].nil?
185
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
190
186
  end
191
187
  end
192
-
193
- self
188
+ new(transformed_hash)
194
189
  end
195
190
 
196
191
  # Deserializes the data based on type
197
192
  # @param string type Data type
198
193
  # @param string value Value to be deserialized
199
194
  # @return [Object] Deserialized data
200
- def _deserialize(type, value)
195
+ def self._deserialize(type, value)
201
196
  case type.to_sym
202
197
  when :Time
203
198
  Time.parse(value)
@@ -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
 
@@ -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
 
@@ -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
 
@@ -147,6 +147,7 @@ module FattureInCloud_Ruby_Sdk
147
147
  # Show invalid properties with the reasons. Usually used together with valid?
148
148
  # @return Array for valid properties with the reasons
149
149
  def list_invalid_properties
150
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
150
151
  invalid_properties = Array.new
151
152
  invalid_properties
152
153
  end
@@ -154,6 +155,7 @@ module FattureInCloud_Ruby_Sdk
154
155
  # Check to see if the all the properties in the model are valid
155
156
  # @return true if the model is valid
156
157
  def valid?
158
+ warn '[DEPRECATED] the `valid?` method is obsolete'
157
159
  true
158
160
  end
159
161
 
@@ -189,37 +191,30 @@ module FattureInCloud_Ruby_Sdk
189
191
  # @param [Hash] attributes Model attributes in the form of hash
190
192
  # @return [Object] Returns the model itself
191
193
  def self.build_from_hash(attributes)
192
- new.build_from_hash(attributes)
193
- end
194
-
195
- # Builds the object from hash
196
- # @param [Hash] attributes Model attributes in the form of hash
197
- # @return [Object] Returns the model itself
198
- def build_from_hash(attributes)
199
194
  return nil unless attributes.is_a?(Hash)
200
195
  attributes = attributes.transform_keys(&:to_sym)
201
- 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)