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
 
@@ -19,7 +19,7 @@ module FattureInCloud_Ruby_Sdk
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Get e-invoice rejection reason
22
+ # Get E-Invoice Rejection Reason
23
23
  # Get e-invoice rejection reason
24
24
  # @param company_id [Integer] The ID of the company.
25
25
  # @param document_id [Integer] The ID of the document.
@@ -30,7 +30,7 @@ module FattureInCloud_Ruby_Sdk
30
30
  data
31
31
  end
32
32
 
33
- # Get e-invoice rejection reason
33
+ # Get E-Invoice Rejection Reason
34
34
  # Get e-invoice rejection reason
35
35
  # @param company_id [Integer] The ID of the company.
36
36
  # @param document_id [Integer] The ID of the document.
@@ -88,7 +88,7 @@ module FattureInCloud_Ruby_Sdk
88
88
  return data, status_code, headers
89
89
  end
90
90
 
91
- # Get e-invoice XML
91
+ # Get E-Invoice XML
92
92
  # Downloads the e-invoice in XML format.
93
93
  # @param company_id [Integer] The ID of the company.
94
94
  # @param document_id [Integer] The ID of the document.
@@ -100,7 +100,7 @@ module FattureInCloud_Ruby_Sdk
100
100
  data
101
101
  end
102
102
 
103
- # Get e-invoice XML
103
+ # Get E-Invoice XML
104
104
  # Downloads the e-invoice in XML format.
105
105
  # @param company_id [Integer] The ID of the company.
106
106
  # @param document_id [Integer] The ID of the document.
@@ -160,7 +160,7 @@ module FattureInCloud_Ruby_Sdk
160
160
  return data, status_code, headers
161
161
  end
162
162
 
163
- # Send the e-invoice
163
+ # Send E-Invoice
164
164
  # Sends the e-invoice to SDI.
165
165
  # @param company_id [Integer] The ID of the company.
166
166
  # @param document_id [Integer] The ID of the document.
@@ -172,7 +172,7 @@ module FattureInCloud_Ruby_Sdk
172
172
  data
173
173
  end
174
174
 
175
- # Send the e-invoice
175
+ # Send E-Invoice
176
176
  # Sends the e-invoice to SDI.
177
177
  # @param company_id [Integer] The ID of the company.
178
178
  # @param document_id [Integer] The ID of the document.
@@ -236,7 +236,7 @@ module FattureInCloud_Ruby_Sdk
236
236
  return data, status_code, headers
237
237
  end
238
238
 
239
- # Verify e-invoice XML
239
+ # Verify E-Invoice XML
240
240
  # Verifies the e-invoice XML format. Checks if all of the mandatory fields are filled and compliant to the right format.
241
241
  # @param company_id [Integer] The ID of the company.
242
242
  # @param document_id [Integer] The ID of the document.
@@ -247,7 +247,7 @@ module FattureInCloud_Ruby_Sdk
247
247
  data
248
248
  end
249
249
 
250
- # Verify e-invoice XML
250
+ # Verify E-Invoice XML
251
251
  # Verifies the e-invoice XML format. Checks if all of the mandatory fields are filled and compliant to the right format.
252
252
  # @param company_id [Integer] The ID of the company.
253
253
  # @param document_id [Integer] The ID of the document.
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -31,7 +31,7 @@ module FattureInCloud_Ruby_Sdk
31
31
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
32
32
  def initialize(config = Configuration.default)
33
33
  @config = config
34
- @user_agent = "FattureInCloud/2.0.17/Ruby-SDK"
34
+ @user_agent = "FattureInCloud/2.0.18/Ruby-SDK"
35
35
  @default_headers = {
36
36
  'Content-Type' => 'application/json',
37
37
  'User-Agent' => @user_agent
@@ -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
 
@@ -152,7 +152,7 @@ module FattureInCloud_Ruby_Sdk
152
152
  @scheme = 'https'
153
153
  @host = 'api-v2.fattureincloud.it'
154
154
  @base_path = ''
155
- @server_index = 0
155
+ @server_index = nil
156
156
  @server_operation_index = {}
157
157
  @server_variables = {}
158
158
  @server_operation_variables = {}
@@ -200,10 +200,12 @@ module FattureInCloud_Ruby_Sdk
200
200
 
201
201
  # Returns base URL for specified operation based on server settings
202
202
  def base_url(operation = nil)
203
- index = server_operation_index[operation]
204
- return "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') if index == nil
205
-
206
- server_url(index, server_operation_variables.fetch(operation, server_variables), operation_server_settings[operation])
203
+ if operation_server_settings.key?(operation) then
204
+ index = server_operation_index.fetch(operation, server_index)
205
+ server_url(index.nil? ? 0 : index, server_operation_variables.fetch(operation, server_variables), operation_server_settings[operation])
206
+ else
207
+ server_index.nil? ? "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') : server_url(server_index, server_variables, nil)
208
+ end
207
209
  end
208
210
 
209
211
  # Gets API key (with prefix if set).
@@ -265,8 +267,8 @@ module FattureInCloud_Ruby_Sdk
265
267
  servers = server_settings if servers == nil
266
268
 
267
269
  # check array index out of bound
268
- if (index < 0 || index >= servers.size)
269
- fail ArgumentError, "Invalid index #{index} when selecting the server. Must be less than #{servers.size}"
270
+ if (index.nil? || index < 0 || index >= servers.size)
271
+ fail ArgumentError, "Invalid index #{index} when selecting the server. Must not be nil and must be less than #{servers.size}"
270
272
  end
271
273
 
272
274
  server = servers[index]
@@ -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
 
@@ -117,6 +117,7 @@ module FattureInCloud_Ruby_Sdk
117
117
  # Show invalid properties with the reasons. Usually used together with valid?
118
118
  # @return Array for valid properties with the reasons
119
119
  def list_invalid_properties
120
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
120
121
  invalid_properties = Array.new
121
122
  invalid_properties
122
123
  end
@@ -124,6 +125,7 @@ module FattureInCloud_Ruby_Sdk
124
125
  # Check to see if the all the properties in the model are valid
125
126
  # @return true if the model is valid
126
127
  def valid?
128
+ warn '[DEPRECATED] the `valid?` method is obsolete'
127
129
  true
128
130
  end
129
131
 
@@ -156,37 +158,30 @@ module FattureInCloud_Ruby_Sdk
156
158
  # @param [Hash] attributes Model attributes in the form of hash
157
159
  # @return [Object] Returns the model itself
158
160
  def self.build_from_hash(attributes)
159
- new.build_from_hash(attributes)
160
- end
161
-
162
- # Builds the object from hash
163
- # @param [Hash] attributes Model attributes in the form of hash
164
- # @return [Object] Returns the model itself
165
- def build_from_hash(attributes)
166
161
  return nil unless attributes.is_a?(Hash)
167
162
  attributes = attributes.transform_keys(&:to_sym)
168
- self.class.openapi_types.each_pair do |key, type|
169
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
170
- self.send("#{key}=", nil)
163
+ transformed_hash = {}
164
+ openapi_types.each_pair do |key, type|
165
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
166
+ transformed_hash["#{key}"] = nil
171
167
  elsif type =~ /\AArray<(.*)>/i
172
168
  # check to ensure the input is an array given that the attribute
173
169
  # is documented as an array but the input is not
174
- if attributes[self.class.attribute_map[key]].is_a?(Array)
175
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
170
+ if attributes[attribute_map[key]].is_a?(Array)
171
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
176
172
  end
177
- elsif !attributes[self.class.attribute_map[key]].nil?
178
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
173
+ elsif !attributes[attribute_map[key]].nil?
174
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
179
175
  end
180
176
  end
181
-
182
- self
177
+ new(transformed_hash)
183
178
  end
184
179
 
185
180
  # Deserializes the data based on type
186
181
  # @param string type Data type
187
182
  # @param string value Value to be deserialized
188
183
  # @return [Object] Deserialized data
189
- def _deserialize(type, value)
184
+ def self._deserialize(type, value)
190
185
  case type.to_sym
191
186
  when :Time
192
187
  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
 
@@ -67,6 +67,7 @@ module FattureInCloud_Ruby_Sdk
67
67
  # Show invalid properties with the reasons. Usually used together with valid?
68
68
  # @return Array for valid properties with the reasons
69
69
  def list_invalid_properties
70
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
70
71
  invalid_properties = Array.new
71
72
  invalid_properties
72
73
  end
@@ -74,6 +75,7 @@ module FattureInCloud_Ruby_Sdk
74
75
  # Check to see if the all the properties in the model are valid
75
76
  # @return true if the model is valid
76
77
  def valid?
78
+ warn '[DEPRECATED] the `valid?` method is obsolete'
77
79
  true
78
80
  end
79
81
 
@@ -101,37 +103,30 @@ module FattureInCloud_Ruby_Sdk
101
103
  # @param [Hash] attributes Model attributes in the form of hash
102
104
  # @return [Object] Returns the model itself
103
105
  def self.build_from_hash(attributes)
104
- new.build_from_hash(attributes)
105
- end
106
-
107
- # Builds the object from hash
108
- # @param [Hash] attributes Model attributes in the form of hash
109
- # @return [Object] Returns the model itself
110
- def build_from_hash(attributes)
111
106
  return nil unless attributes.is_a?(Hash)
112
107
  attributes = attributes.transform_keys(&:to_sym)
113
- self.class.openapi_types.each_pair do |key, type|
114
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
115
- self.send("#{key}=", nil)
108
+ transformed_hash = {}
109
+ openapi_types.each_pair do |key, type|
110
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
111
+ transformed_hash["#{key}"] = nil
116
112
  elsif type =~ /\AArray<(.*)>/i
117
113
  # check to ensure the input is an array given that the attribute
118
114
  # is documented as an array but the input is not
119
- if attributes[self.class.attribute_map[key]].is_a?(Array)
120
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
115
+ if attributes[attribute_map[key]].is_a?(Array)
116
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
121
117
  end
122
- elsif !attributes[self.class.attribute_map[key]].nil?
123
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
118
+ elsif !attributes[attribute_map[key]].nil?
119
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
124
120
  end
125
121
  end
126
-
127
- self
122
+ new(transformed_hash)
128
123
  end
129
124
 
130
125
  # Deserializes the data based on type
131
126
  # @param string type Data type
132
127
  # @param string value Value to be deserialized
133
128
  # @return [Object] Deserialized data
134
- def _deserialize(type, value)
129
+ def self._deserialize(type, value)
135
130
  case type.to_sym
136
131
  when :Time
137
132
  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
 
@@ -183,6 +183,7 @@ module FattureInCloud_Ruby_Sdk
183
183
  # Show invalid properties with the reasons. Usually used together with valid?
184
184
  # @return Array for valid properties with the reasons
185
185
  def list_invalid_properties
186
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
186
187
  invalid_properties = Array.new
187
188
  invalid_properties
188
189
  end
@@ -190,6 +191,7 @@ module FattureInCloud_Ruby_Sdk
190
191
  # Check to see if the all the properties in the model are valid
191
192
  # @return true if the model is valid
192
193
  def valid?
194
+ warn '[DEPRECATED] the `valid?` method is obsolete'
193
195
  true
194
196
  end
195
197
 
@@ -227,37 +229,30 @@ module FattureInCloud_Ruby_Sdk
227
229
  # @param [Hash] attributes Model attributes in the form of hash
228
230
  # @return [Object] Returns the model itself
229
231
  def self.build_from_hash(attributes)
230
- new.build_from_hash(attributes)
231
- end
232
-
233
- # Builds the object from hash
234
- # @param [Hash] attributes Model attributes in the form of hash
235
- # @return [Object] Returns the model itself
236
- def build_from_hash(attributes)
237
232
  return nil unless attributes.is_a?(Hash)
238
233
  attributes = attributes.transform_keys(&:to_sym)
239
- self.class.openapi_types.each_pair do |key, type|
240
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
241
- self.send("#{key}=", nil)
234
+ transformed_hash = {}
235
+ openapi_types.each_pair do |key, type|
236
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
237
+ transformed_hash["#{key}"] = nil
242
238
  elsif type =~ /\AArray<(.*)>/i
243
239
  # check to ensure the input is an array given that the attribute
244
240
  # is documented as an array but the input is not
245
- if attributes[self.class.attribute_map[key]].is_a?(Array)
246
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
241
+ if attributes[attribute_map[key]].is_a?(Array)
242
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
247
243
  end
248
- elsif !attributes[self.class.attribute_map[key]].nil?
249
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
244
+ elsif !attributes[attribute_map[key]].nil?
245
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
250
246
  end
251
247
  end
252
-
253
- self
248
+ new(transformed_hash)
254
249
  end
255
250
 
256
251
  # Deserializes the data based on type
257
252
  # @param string type Data type
258
253
  # @param string value Value to be deserialized
259
254
  # @return [Object] Deserialized data
260
- def _deserialize(type, value)
255
+ def self._deserialize(type, value)
261
256
  case type.to_sym
262
257
  when :Time
263
258
  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