fattureincloud_ruby_sdk 2.0.20 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (280) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +2 -2
  4. data/docs/Company.md +1 -0
  5. data/docs/IssuedDocument.md +0 -1
  6. data/docs/IssuedDocumentEiData.md +1 -1
  7. data/docs/IssuedDocumentExtraData.md +0 -1
  8. data/fattureincloud_ruby_sdk.gemspec +2 -2
  9. data/lib/fattureincloud_ruby_sdk/api/archive_api.rb +2 -2
  10. data/lib/fattureincloud_ruby_sdk/api/cashbook_api.rb +2 -2
  11. data/lib/fattureincloud_ruby_sdk/api/clients_api.rb +2 -2
  12. data/lib/fattureincloud_ruby_sdk/api/companies_api.rb +2 -2
  13. data/lib/fattureincloud_ruby_sdk/api/emails_api.rb +2 -2
  14. data/lib/fattureincloud_ruby_sdk/api/info_api.rb +2 -2
  15. data/lib/fattureincloud_ruby_sdk/api/issued_documents_api.rb +2 -2
  16. data/lib/fattureincloud_ruby_sdk/api/issued_e_invoices_api.rb +2 -2
  17. data/lib/fattureincloud_ruby_sdk/api/products_api.rb +2 -2
  18. data/lib/fattureincloud_ruby_sdk/api/receipts_api.rb +2 -2
  19. data/lib/fattureincloud_ruby_sdk/api/received_documents_api.rb +2 -2
  20. data/lib/fattureincloud_ruby_sdk/api/settings_api.rb +2 -2
  21. data/lib/fattureincloud_ruby_sdk/api/suppliers_api.rb +2 -2
  22. data/lib/fattureincloud_ruby_sdk/api/taxes_api.rb +2 -2
  23. data/lib/fattureincloud_ruby_sdk/api/user_api.rb +2 -2
  24. data/lib/fattureincloud_ruby_sdk/api/webhooks_api.rb +2 -2
  25. data/lib/fattureincloud_ruby_sdk/api_client.rb +5 -5
  26. data/lib/fattureincloud_ruby_sdk/api_error.rb +2 -2
  27. data/lib/fattureincloud_ruby_sdk/configuration.rb +2 -2
  28. data/lib/fattureincloud_ruby_sdk/filter/operator.rb +4 -0
  29. data/lib/fattureincloud_ruby_sdk/models/archive_document.rb +2 -2
  30. data/lib/fattureincloud_ruby_sdk/models/attachment_data.rb +2 -2
  31. data/lib/fattureincloud_ruby_sdk/models/cashbook_entry.rb +2 -2
  32. data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_document.rb +2 -2
  33. data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_kind.rb +2 -2
  34. data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_type.rb +2 -2
  35. data/lib/fattureincloud_ruby_sdk/models/city.rb +2 -2
  36. data/lib/fattureincloud_ruby_sdk/models/client.rb +2 -2
  37. data/lib/fattureincloud_ruby_sdk/models/client_type.rb +2 -2
  38. data/lib/fattureincloud_ruby_sdk/models/company.rb +18 -7
  39. data/lib/fattureincloud_ruby_sdk/models/company_info.rb +2 -2
  40. data/lib/fattureincloud_ruby_sdk/models/company_info_access_info.rb +2 -2
  41. data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info.rb +2 -2
  42. data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_functions.rb +2 -2
  43. data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_functions_status.rb +2 -2
  44. data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_limits.rb +2 -2
  45. data/lib/fattureincloud_ruby_sdk/models/company_plan_usage.rb +2 -2
  46. data/lib/fattureincloud_ruby_sdk/models/company_type.rb +2 -2
  47. data/lib/fattureincloud_ruby_sdk/models/controlled_company.rb +2 -2
  48. data/lib/fattureincloud_ruby_sdk/models/create_archive_document_request.rb +2 -2
  49. data/lib/fattureincloud_ruby_sdk/models/create_archive_document_response.rb +2 -2
  50. data/lib/fattureincloud_ruby_sdk/models/create_cashbook_entry_request.rb +2 -2
  51. data/lib/fattureincloud_ruby_sdk/models/create_cashbook_entry_response.rb +2 -2
  52. data/lib/fattureincloud_ruby_sdk/models/create_client_request.rb +2 -2
  53. data/lib/fattureincloud_ruby_sdk/models/create_client_response.rb +2 -2
  54. data/lib/fattureincloud_ruby_sdk/models/create_f24_request.rb +2 -2
  55. data/lib/fattureincloud_ruby_sdk/models/create_f24_response.rb +2 -2
  56. data/lib/fattureincloud_ruby_sdk/models/create_issued_document_request.rb +2 -2
  57. data/lib/fattureincloud_ruby_sdk/models/create_issued_document_response.rb +2 -2
  58. data/lib/fattureincloud_ruby_sdk/models/create_payment_account_request.rb +2 -2
  59. data/lib/fattureincloud_ruby_sdk/models/create_payment_account_response.rb +2 -2
  60. data/lib/fattureincloud_ruby_sdk/models/create_payment_method_request.rb +2 -2
  61. data/lib/fattureincloud_ruby_sdk/models/create_payment_method_response.rb +2 -2
  62. data/lib/fattureincloud_ruby_sdk/models/create_product_request.rb +2 -2
  63. data/lib/fattureincloud_ruby_sdk/models/create_product_response.rb +2 -2
  64. data/lib/fattureincloud_ruby_sdk/models/create_receipt_request.rb +2 -2
  65. data/lib/fattureincloud_ruby_sdk/models/create_receipt_response.rb +2 -2
  66. data/lib/fattureincloud_ruby_sdk/models/create_received_document_request.rb +2 -2
  67. data/lib/fattureincloud_ruby_sdk/models/create_received_document_response.rb +2 -2
  68. data/lib/fattureincloud_ruby_sdk/models/create_supplier_request.rb +2 -2
  69. data/lib/fattureincloud_ruby_sdk/models/create_supplier_response.rb +2 -2
  70. data/lib/fattureincloud_ruby_sdk/models/create_vat_type_request.rb +2 -2
  71. data/lib/fattureincloud_ruby_sdk/models/create_vat_type_response.rb +2 -2
  72. data/lib/fattureincloud_ruby_sdk/models/create_webhooks_subscription_request.rb +2 -2
  73. data/lib/fattureincloud_ruby_sdk/models/create_webhooks_subscription_response.rb +2 -2
  74. data/lib/fattureincloud_ruby_sdk/models/currency.rb +2 -2
  75. data/lib/fattureincloud_ruby_sdk/models/detailed_country.rb +2 -2
  76. data/lib/fattureincloud_ruby_sdk/models/document_template.rb +2 -2
  77. data/lib/fattureincloud_ruby_sdk/models/e_invoice_rejection_reason.rb +2 -2
  78. data/lib/fattureincloud_ruby_sdk/models/email.rb +2 -2
  79. data/lib/fattureincloud_ruby_sdk/models/email_attachment.rb +2 -2
  80. data/lib/fattureincloud_ruby_sdk/models/email_data.rb +2 -2
  81. data/lib/fattureincloud_ruby_sdk/models/email_data_default_sender_email.rb +2 -2
  82. data/lib/fattureincloud_ruby_sdk/models/email_recipient_status.rb +2 -2
  83. data/lib/fattureincloud_ruby_sdk/models/email_schedule.rb +2 -2
  84. data/lib/fattureincloud_ruby_sdk/models/email_schedule_include.rb +2 -2
  85. data/lib/fattureincloud_ruby_sdk/models/email_status.rb +2 -2
  86. data/lib/fattureincloud_ruby_sdk/models/entity.rb +2 -2
  87. data/lib/fattureincloud_ruby_sdk/models/entity_type.rb +2 -2
  88. data/lib/fattureincloud_ruby_sdk/models/event_type.rb +2 -2
  89. data/lib/fattureincloud_ruby_sdk/models/f24.rb +2 -2
  90. data/lib/fattureincloud_ruby_sdk/models/f24_status.rb +2 -2
  91. data/lib/fattureincloud_ruby_sdk/models/fatture_in_cloud_plan_type.rb +2 -2
  92. data/lib/fattureincloud_ruby_sdk/models/function_status.rb +2 -2
  93. data/lib/fattureincloud_ruby_sdk/models/get_archive_document_response.rb +2 -2
  94. data/lib/fattureincloud_ruby_sdk/models/get_cashbook_entry_response.rb +2 -2
  95. data/lib/fattureincloud_ruby_sdk/models/get_client_response.rb +2 -2
  96. data/lib/fattureincloud_ruby_sdk/models/get_company_info_response.rb +2 -2
  97. data/lib/fattureincloud_ruby_sdk/models/get_company_plan_usage_response.rb +2 -2
  98. data/lib/fattureincloud_ruby_sdk/models/get_e_invoice_rejection_reason_response.rb +2 -2
  99. data/lib/fattureincloud_ruby_sdk/models/get_email_data_response.rb +2 -2
  100. data/lib/fattureincloud_ruby_sdk/models/get_existing_issued_document_totals_request.rb +2 -2
  101. data/lib/fattureincloud_ruby_sdk/models/get_existing_issued_document_totals_response.rb +2 -2
  102. data/lib/fattureincloud_ruby_sdk/models/get_existing_received_document_totals_request.rb +2 -2
  103. data/lib/fattureincloud_ruby_sdk/models/get_existing_received_document_totals_response.rb +2 -2
  104. data/lib/fattureincloud_ruby_sdk/models/get_f24_response.rb +2 -2
  105. data/lib/fattureincloud_ruby_sdk/models/get_issued_document_pre_create_info_response.rb +2 -2
  106. data/lib/fattureincloud_ruby_sdk/models/get_issued_document_response.rb +2 -2
  107. data/lib/fattureincloud_ruby_sdk/models/get_new_issued_document_totals_request.rb +2 -2
  108. data/lib/fattureincloud_ruby_sdk/models/get_new_issued_document_totals_response.rb +2 -2
  109. data/lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_request.rb +2 -2
  110. data/lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_response.rb +2 -2
  111. data/lib/fattureincloud_ruby_sdk/models/get_payment_account_response.rb +2 -2
  112. data/lib/fattureincloud_ruby_sdk/models/get_payment_method_response.rb +2 -2
  113. data/lib/fattureincloud_ruby_sdk/models/get_product_response.rb +2 -2
  114. data/lib/fattureincloud_ruby_sdk/models/get_receipt_pre_create_info_response.rb +2 -2
  115. data/lib/fattureincloud_ruby_sdk/models/get_receipt_response.rb +2 -2
  116. data/lib/fattureincloud_ruby_sdk/models/get_receipts_monthly_totals_response.rb +2 -2
  117. data/lib/fattureincloud_ruby_sdk/models/get_received_document_pre_create_info_response.rb +2 -2
  118. data/lib/fattureincloud_ruby_sdk/models/get_received_document_response.rb +2 -2
  119. data/lib/fattureincloud_ruby_sdk/models/get_supplier_response.rb +2 -2
  120. data/lib/fattureincloud_ruby_sdk/models/get_user_info_response.rb +2 -2
  121. data/lib/fattureincloud_ruby_sdk/models/get_user_info_response_email_confirmation_state.rb +2 -2
  122. data/lib/fattureincloud_ruby_sdk/models/get_user_info_response_info.rb +2 -2
  123. data/lib/fattureincloud_ruby_sdk/models/get_vat_type_response.rb +2 -2
  124. data/lib/fattureincloud_ruby_sdk/models/get_webhooks_subscription_response.rb +2 -2
  125. data/lib/fattureincloud_ruby_sdk/models/issued_document.rb +3 -14
  126. data/lib/fattureincloud_ruby_sdk/models/issued_document_ei_data.rb +2 -4
  127. data/lib/fattureincloud_ruby_sdk/models/issued_document_extra_data.rb +3 -13
  128. data/lib/fattureincloud_ruby_sdk/models/issued_document_items_list_item.rb +2 -2
  129. data/lib/fattureincloud_ruby_sdk/models/issued_document_options.rb +2 -2
  130. data/lib/fattureincloud_ruby_sdk/models/issued_document_payments_list_item.rb +2 -2
  131. data/lib/fattureincloud_ruby_sdk/models/issued_document_payments_list_item_payment_terms.rb +2 -2
  132. data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info.rb +2 -2
  133. data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_default_values.rb +2 -2
  134. data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_extra_data_default_values.rb +2 -2
  135. data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_items_default_values.rb +2 -2
  136. data/lib/fattureincloud_ruby_sdk/models/issued_document_status.rb +2 -2
  137. data/lib/fattureincloud_ruby_sdk/models/issued_document_totals.rb +2 -2
  138. data/lib/fattureincloud_ruby_sdk/models/issued_document_type.rb +2 -2
  139. data/lib/fattureincloud_ruby_sdk/models/join_issued_documents_response.rb +2 -2
  140. data/lib/fattureincloud_ruby_sdk/models/language.rb +2 -2
  141. data/lib/fattureincloud_ruby_sdk/models/list_archive_categories_response.rb +2 -2
  142. data/lib/fattureincloud_ruby_sdk/models/list_archive_documents_response.rb +2 -2
  143. data/lib/fattureincloud_ruby_sdk/models/list_archive_documents_response_page.rb +2 -2
  144. data/lib/fattureincloud_ruby_sdk/models/list_cashbook_entries_response.rb +2 -2
  145. data/lib/fattureincloud_ruby_sdk/models/list_cities_response.rb +2 -2
  146. data/lib/fattureincloud_ruby_sdk/models/list_clients_response.rb +2 -2
  147. data/lib/fattureincloud_ruby_sdk/models/list_clients_response_page.rb +2 -2
  148. data/lib/fattureincloud_ruby_sdk/models/list_cost_centers_response.rb +2 -2
  149. data/lib/fattureincloud_ruby_sdk/models/list_countries_response.rb +2 -2
  150. data/lib/fattureincloud_ruby_sdk/models/list_currencies_response.rb +2 -2
  151. data/lib/fattureincloud_ruby_sdk/models/list_delivery_notes_default_causals_response.rb +2 -2
  152. data/lib/fattureincloud_ruby_sdk/models/list_detailed_countries_response.rb +2 -2
  153. data/lib/fattureincloud_ruby_sdk/models/list_emails_response.rb +2 -2
  154. data/lib/fattureincloud_ruby_sdk/models/list_emails_response_page.rb +2 -2
  155. data/lib/fattureincloud_ruby_sdk/models/list_f24_response.rb +2 -2
  156. data/lib/fattureincloud_ruby_sdk/models/list_f24_response_aggregated_data.rb +2 -2
  157. data/lib/fattureincloud_ruby_sdk/models/list_f24_response_aggregation.rb +2 -2
  158. data/lib/fattureincloud_ruby_sdk/models/list_f24_response_page.rb +2 -2
  159. data/lib/fattureincloud_ruby_sdk/models/list_issued_documents_response.rb +2 -2
  160. data/lib/fattureincloud_ruby_sdk/models/list_issued_documents_response_page.rb +2 -2
  161. data/lib/fattureincloud_ruby_sdk/models/list_languages_response.rb +2 -2
  162. data/lib/fattureincloud_ruby_sdk/models/list_payment_accounts_response.rb +2 -2
  163. data/lib/fattureincloud_ruby_sdk/models/list_payment_methods_response.rb +2 -2
  164. data/lib/fattureincloud_ruby_sdk/models/list_product_categories_response.rb +2 -2
  165. data/lib/fattureincloud_ruby_sdk/models/list_products_response.rb +2 -2
  166. data/lib/fattureincloud_ruby_sdk/models/list_products_response_page.rb +2 -2
  167. data/lib/fattureincloud_ruby_sdk/models/list_receipts_response.rb +2 -2
  168. data/lib/fattureincloud_ruby_sdk/models/list_receipts_response_page.rb +2 -2
  169. data/lib/fattureincloud_ruby_sdk/models/list_received_document_categories_response.rb +2 -2
  170. data/lib/fattureincloud_ruby_sdk/models/list_received_documents_response.rb +2 -2
  171. data/lib/fattureincloud_ruby_sdk/models/list_received_documents_response_page.rb +2 -2
  172. data/lib/fattureincloud_ruby_sdk/models/list_revenue_centers_response.rb +2 -2
  173. data/lib/fattureincloud_ruby_sdk/models/list_suppliers_response.rb +2 -2
  174. data/lib/fattureincloud_ruby_sdk/models/list_suppliers_response_page.rb +2 -2
  175. data/lib/fattureincloud_ruby_sdk/models/list_templates_response.rb +2 -2
  176. data/lib/fattureincloud_ruby_sdk/models/list_units_of_measure_response.rb +2 -2
  177. data/lib/fattureincloud_ruby_sdk/models/list_user_companies_response.rb +2 -2
  178. data/lib/fattureincloud_ruby_sdk/models/list_user_companies_response_data.rb +2 -2
  179. data/lib/fattureincloud_ruby_sdk/models/list_vat_types_response.rb +2 -2
  180. data/lib/fattureincloud_ruby_sdk/models/list_webhooks_subscriptions_response.rb +2 -2
  181. data/lib/fattureincloud_ruby_sdk/models/modify_archive_document_request.rb +2 -2
  182. data/lib/fattureincloud_ruby_sdk/models/modify_archive_document_response.rb +2 -2
  183. data/lib/fattureincloud_ruby_sdk/models/modify_cashbook_entry_request.rb +2 -2
  184. data/lib/fattureincloud_ruby_sdk/models/modify_cashbook_entry_response.rb +2 -2
  185. data/lib/fattureincloud_ruby_sdk/models/modify_client_request.rb +2 -2
  186. data/lib/fattureincloud_ruby_sdk/models/modify_client_response.rb +2 -2
  187. data/lib/fattureincloud_ruby_sdk/models/modify_f24_request.rb +2 -2
  188. data/lib/fattureincloud_ruby_sdk/models/modify_f24_response.rb +2 -2
  189. data/lib/fattureincloud_ruby_sdk/models/modify_issued_document_request.rb +2 -2
  190. data/lib/fattureincloud_ruby_sdk/models/modify_issued_document_response.rb +2 -2
  191. data/lib/fattureincloud_ruby_sdk/models/modify_payment_account_request.rb +2 -2
  192. data/lib/fattureincloud_ruby_sdk/models/modify_payment_account_response.rb +2 -2
  193. data/lib/fattureincloud_ruby_sdk/models/modify_payment_method_request.rb +2 -2
  194. data/lib/fattureincloud_ruby_sdk/models/modify_payment_method_response.rb +2 -2
  195. data/lib/fattureincloud_ruby_sdk/models/modify_product_request.rb +2 -2
  196. data/lib/fattureincloud_ruby_sdk/models/modify_product_response.rb +2 -2
  197. data/lib/fattureincloud_ruby_sdk/models/modify_receipt_request.rb +2 -2
  198. data/lib/fattureincloud_ruby_sdk/models/modify_receipt_response.rb +2 -2
  199. data/lib/fattureincloud_ruby_sdk/models/modify_received_document_request.rb +2 -2
  200. data/lib/fattureincloud_ruby_sdk/models/modify_received_document_response.rb +2 -2
  201. data/lib/fattureincloud_ruby_sdk/models/modify_supplier_request.rb +2 -2
  202. data/lib/fattureincloud_ruby_sdk/models/modify_supplier_response.rb +2 -2
  203. data/lib/fattureincloud_ruby_sdk/models/modify_vat_type_request.rb +2 -2
  204. data/lib/fattureincloud_ruby_sdk/models/modify_vat_type_response.rb +2 -2
  205. data/lib/fattureincloud_ruby_sdk/models/modify_webhooks_subscription_request.rb +2 -2
  206. data/lib/fattureincloud_ruby_sdk/models/modify_webhooks_subscription_response.rb +2 -2
  207. data/lib/fattureincloud_ruby_sdk/models/monthly_total.rb +2 -2
  208. data/lib/fattureincloud_ruby_sdk/models/original_document_type.rb +2 -2
  209. data/lib/fattureincloud_ruby_sdk/models/pagination.rb +2 -2
  210. data/lib/fattureincloud_ruby_sdk/models/payment_account.rb +2 -2
  211. data/lib/fattureincloud_ruby_sdk/models/payment_account_type.rb +2 -2
  212. data/lib/fattureincloud_ruby_sdk/models/payment_method.rb +2 -2
  213. data/lib/fattureincloud_ruby_sdk/models/payment_method_details.rb +2 -2
  214. data/lib/fattureincloud_ruby_sdk/models/payment_method_type.rb +2 -2
  215. data/lib/fattureincloud_ruby_sdk/models/payment_terms_type.rb +2 -2
  216. data/lib/fattureincloud_ruby_sdk/models/permission_level.rb +2 -2
  217. data/lib/fattureincloud_ruby_sdk/models/permissions.rb +2 -2
  218. data/lib/fattureincloud_ruby_sdk/models/permissions_fic_issued_documents_detailed.rb +2 -2
  219. data/lib/fattureincloud_ruby_sdk/models/product.rb +2 -2
  220. data/lib/fattureincloud_ruby_sdk/models/receipt.rb +2 -2
  221. data/lib/fattureincloud_ruby_sdk/models/receipt_items_list_item.rb +2 -2
  222. data/lib/fattureincloud_ruby_sdk/models/receipt_pre_create_info.rb +2 -2
  223. data/lib/fattureincloud_ruby_sdk/models/receipt_type.rb +2 -2
  224. data/lib/fattureincloud_ruby_sdk/models/received_document.rb +2 -2
  225. data/lib/fattureincloud_ruby_sdk/models/received_document_info.rb +2 -2
  226. data/lib/fattureincloud_ruby_sdk/models/received_document_info_default_values.rb +2 -2
  227. data/lib/fattureincloud_ruby_sdk/models/received_document_info_items_default_values.rb +2 -2
  228. data/lib/fattureincloud_ruby_sdk/models/received_document_items_list_item.rb +2 -2
  229. data/lib/fattureincloud_ruby_sdk/models/received_document_payments_list_item.rb +2 -2
  230. data/lib/fattureincloud_ruby_sdk/models/received_document_payments_list_item_payment_terms.rb +2 -2
  231. data/lib/fattureincloud_ruby_sdk/models/received_document_totals.rb +2 -2
  232. data/lib/fattureincloud_ruby_sdk/models/received_document_type.rb +2 -2
  233. data/lib/fattureincloud_ruby_sdk/models/schedule_email_request.rb +2 -2
  234. data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request.rb +2 -2
  235. data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request_data.rb +2 -2
  236. data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request_options.rb +2 -2
  237. data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_response.rb +2 -2
  238. data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_response_data.rb +2 -2
  239. data/lib/fattureincloud_ruby_sdk/models/sender_email.rb +2 -2
  240. data/lib/fattureincloud_ruby_sdk/models/show_totals_mode.rb +2 -2
  241. data/lib/fattureincloud_ruby_sdk/models/supplier.rb +2 -2
  242. data/lib/fattureincloud_ruby_sdk/models/supplier_type.rb +2 -2
  243. data/lib/fattureincloud_ruby_sdk/models/transform_issued_document_response.rb +2 -2
  244. data/lib/fattureincloud_ruby_sdk/models/upload_archive_attachment_response.rb +2 -2
  245. data/lib/fattureincloud_ruby_sdk/models/upload_f24_attachment_response.rb +2 -2
  246. data/lib/fattureincloud_ruby_sdk/models/upload_issued_document_attachment_response.rb +2 -2
  247. data/lib/fattureincloud_ruby_sdk/models/upload_received_document_attachment_response.rb +2 -2
  248. data/lib/fattureincloud_ruby_sdk/models/user.rb +2 -2
  249. data/lib/fattureincloud_ruby_sdk/models/user_company_role.rb +2 -2
  250. data/lib/fattureincloud_ruby_sdk/models/vat_item.rb +2 -2
  251. data/lib/fattureincloud_ruby_sdk/models/vat_kind.rb +2 -2
  252. data/lib/fattureincloud_ruby_sdk/models/vat_type.rb +2 -2
  253. data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response.rb +2 -2
  254. data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_error.rb +2 -2
  255. data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_error_validation_result.rb +2 -2
  256. data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_extra.rb +2 -2
  257. data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_response.rb +2 -2
  258. data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_response_data.rb +2 -2
  259. data/lib/fattureincloud_ruby_sdk/models/webhooks_subscription.rb +2 -2
  260. data/lib/fattureincloud_ruby_sdk/models/webhooks_subscription_config.rb +2 -2
  261. data/lib/fattureincloud_ruby_sdk/models/webhooks_subscription_mapping.rb +2 -2
  262. data/lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb +126 -28
  263. data/lib/fattureincloud_ruby_sdk/version.rb +3 -3
  264. data/lib/fattureincloud_ruby_sdk.rb +2 -2
  265. data/sdk-version.yaml +1 -1
  266. data/spec/api/issued_documents_api_spec.rb +8 -8
  267. data/spec/filter/operator_spec.rb +2 -0
  268. data/spec/models/company_spec.rb +7 -0
  269. data/spec/models/create_issued_document_response_spec.rb +1 -2
  270. data/spec/models/get_issued_document_response_spec.rb +0 -1
  271. data/spec/models/get_new_issued_document_totals_request_spec.rb +0 -1
  272. data/spec/models/issued_document_extra_data_spec.rb +0 -6
  273. data/spec/models/issued_document_spec.rb +0 -7
  274. data/spec/models/list_issued_documents_response_page_spec.rb +0 -1
  275. data/spec/models/list_issued_documents_response_spec.rb +1 -2
  276. data/spec/models/modify_issued_document_request_spec.rb +0 -1
  277. data/spec/models/modify_issued_document_response_spec.rb +1 -2
  278. data/spec/oauth2/oauth2_spec.rb +53 -1
  279. data/spec/spec_helper.rb +2 -2
  280. metadata +220 -220
@@ -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.32
6
+ The version of the OpenAPI document: 2.1.0
7
7
  Contact: info@fattureincloud.it
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.3.0
9
+ Generator version: 7.6.0
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
5
5
 
6
- The version of the OpenAPI document: 2.0.32
6
+ The version of the OpenAPI document: 2.1.0
7
7
  Contact: info@fattureincloud.it
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.3.0
9
+ Generator version: 7.6.0
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
5
5
 
6
- The version of the OpenAPI document: 2.0.32
6
+ The version of the OpenAPI document: 2.1.0
7
7
  Contact: info@fattureincloud.it
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.3.0
9
+ Generator version: 7.6.0
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
5
5
 
6
- The version of the OpenAPI document: 2.0.32
6
+ The version of the OpenAPI document: 2.1.0
7
7
  Contact: info@fattureincloud.it
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.3.0
9
+ Generator version: 7.6.0
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
5
5
 
6
- The version of the OpenAPI document: 2.0.32
6
+ The version of the OpenAPI document: 2.1.0
7
7
  Contact: info@fattureincloud.it
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.3.0
9
+ Generator version: 7.6.0
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
5
5
 
6
- The version of the OpenAPI document: 2.0.32
6
+ The version of the OpenAPI document: 2.1.0
7
7
  Contact: info@fattureincloud.it
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.3.0
9
+ Generator version: 7.6.0
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
5
5
 
6
- The version of the OpenAPI document: 2.0.32
6
+ The version of the OpenAPI document: 2.1.0
7
7
  Contact: info@fattureincloud.it
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.3.0
9
+ Generator version: 7.6.0
10
10
 
11
11
  =end
12
12
 
@@ -2,8 +2,40 @@ require 'uri'
2
2
  require 'typhoeus'
3
3
 
4
4
  module FattureInCloud_Ruby_Sdk
5
- # The OAuth2AuthorizationCodeManager class is used to manage the OAuth2 authorization code flow.
6
- class OAuth2AuthorizationCodeManager
5
+ # The OAuth2Manager class is used to manage the OAuth2 flow.
6
+ class OAuth2Manager
7
+ attr_accessor :client_id, :base_uri
8
+
9
+ # Initializes a new instance of the OAuth2Manager class.
10
+ # @param [String] client_id The client id.
11
+ # @param [String] base_uri The base uri.
12
+ def initialize(client_id, base_uri = 'https://api-v2.fattureincloud.it')
13
+ @client_id = client_id
14
+ @base_uri = base_uri
15
+ end
16
+
17
+ # Get the access token.
18
+ # @param [String] url The url.
19
+ # @param [Object] data The request data.
20
+ # @return [Object] The response body.
21
+ def execute_post(url, body)
22
+ res = Typhoeus.post(url, body: body)
23
+ if res.response_code != 200
24
+ raise "Error fetching token: #{res.response_body}"
25
+ end
26
+ JSON.parse(res.body)
27
+ end
28
+
29
+ # Build the scopes string.
30
+ # @param [Array<Scope>] scopes The scopes.
31
+ # @return [String] The scopes string.
32
+ def self.get_scope_string(scopes)
33
+ scopes.map { |scope| scope.to_s }.join(' ')
34
+ end
35
+ end
36
+
37
+ # The OAuth2AuthorizationCodeManager class is used to manage the OAuth2 authorization code flow.
38
+ class OAuth2AuthorizationCodeManager < OAuth2Manager
7
39
  attr_accessor :client_id, :client_secret, :redirect_uri, :base_uri
8
40
 
9
41
  # Initializes a new instance of the OAuth2AuthorizationCodeManager class.
@@ -12,10 +44,9 @@ module FattureInCloud_Ruby_Sdk
12
44
  # @param [String] redirect_uri The redirect uri.
13
45
  # @param [String] base_uri The base uri.
14
46
  def initialize(client_id, client_secret, redirect_uri, base_uri = 'https://api-v2.fattureincloud.it')
15
- @client_id = client_id
47
+ super client_id, base_uri
16
48
  @client_secret = client_secret
17
49
  @redirect_uri = redirect_uri
18
- @base_uri = base_uri
19
50
  end
20
51
 
21
52
  # Get the authorization url.
@@ -24,8 +55,8 @@ module FattureInCloud_Ruby_Sdk
24
55
  # @return [String] The authorization url.
25
56
  def get_authorization_url(scopes, state)
26
57
  authorization_uri = "#{@base_uri}/oauth/authorize"
27
- scope_string = OAuth2AuthorizationCodeManager.get_scope_string(scopes)
28
-
58
+ scope_string = OAuth2Manager.get_scope_string(scopes)
59
+
29
60
  params = {
30
61
  'response_type': 'code',
31
62
  'client_id': @client_id,
@@ -40,7 +71,7 @@ module FattureInCloud_Ruby_Sdk
40
71
 
41
72
  # Get the access token.
42
73
  # @param [String] code The code.
43
- # @return [OAuth2AuthorizationCodeTokenResponse] The access token.
74
+ # @return [OAuth2TokenResponse] The access token.
44
75
  def fetch_token(code)
45
76
  token_uri = "#{@base_uri}/oauth/token"
46
77
  data = {
@@ -51,18 +82,14 @@ module FattureInCloud_Ruby_Sdk
51
82
  'code': code,
52
83
  }
53
84
 
54
- res = Typhoeus.post(token_uri, body: data)
55
- if res.response_code != 200
56
- raise "Error fetching token: #{res.response_body}"
57
- end
58
- json = JSON.parse(res.body)
85
+ json = execute_post(token_uri, data)
59
86
 
60
- OAuth2AuthorizationCodeTokenResponse.new(json["token_type"], json['access_token'], json['refresh_token'], json['expires_in'])
87
+ OAuth2TokenResponse.new(json["token_type"], json['access_token'], json['refresh_token'], json['expires_in'])
61
88
  end
62
89
 
63
90
  # Get the refresh token.
64
91
  # @param [String] refresh_token The refresh token.
65
- # @return [OAuth2AuthorizationCodeTokenResponse] The access token.
92
+ # @return [OAuth2TokenResponse] The access token.
66
93
  def refresh_token(refresh_token)
67
94
  token_uri = "#{@base_uri}/oauth/token"
68
95
  data = {
@@ -72,13 +99,9 @@ module FattureInCloud_Ruby_Sdk
72
99
  'refresh_token': refresh_token,
73
100
  }
74
101
 
75
- res = Typhoeus.post(token_uri, body: data)
76
- if res.response_code != 200
77
- raise "Error fetching token: #{res.response_body}"
78
- end
79
- json = JSON.parse(res.body)
102
+ json = execute_post(token_uri, data)
80
103
 
81
- OAuth2AuthorizationCodeTokenResponse.new(json["token_type"], json['access_token'], json['refresh_token'], json['expires_in'])
104
+ OAuth2TokenResponse.new(json["token_type"], json['access_token'], json['refresh_token'], json['expires_in'])
82
105
  end
83
106
 
84
107
 
@@ -89,19 +112,73 @@ module FattureInCloud_Ruby_Sdk
89
112
  url_obj = URI::decode_www_form(URI.parse(url).query).to_h
90
113
  OAuth2AuthorizationCodeParams.new(url_obj['code'], url_obj['state'])
91
114
  end
115
+ end
116
+
117
+ # The OAuth2DeviceCodeManager class is used to manage the OAuth2 device code flow.
118
+ class OAuth2DeviceCodeManager < OAuth2Manager
119
+ attr_accessor :client_id, :base_uri
92
120
 
93
- # Build rh escopes string.
121
+ # Initializes a new instance of the OAuth2DeviceCodeManager class.
122
+ # @param [String] client_id The client id.
123
+ # @param [String] base_uri The base uri.
124
+ def initialize(client_id, base_uri = 'https://api-v2.fattureincloud.it')
125
+ super client_id, base_uri
126
+ end
127
+
128
+ # Get the device code.
94
129
  # @param [Array<Scope>] scopes The scopes.
95
- # @return [String] The scopes string.
96
- def self.get_scope_string(scopes)
97
- scopes.map { |scope| scope.to_s }.join(' ')
130
+ # @return [OAuth2DeviceCodeResponse] The device code.
131
+ def get_device_code(scopes)
132
+ device_uri = "#{@base_uri}/oauth/device"
133
+ scope_string = OAuth2Manager.get_scope_string(scopes)
134
+
135
+ data = {
136
+ 'client_id': @client_id,
137
+ 'scope': scope_string
138
+ }
139
+
140
+ json = execute_post(device_uri, data)["data"]
141
+
142
+ OAuth2DeviceCodeResponse.new(json["device_code"], json['user_code'], json['scope'], json['verification_uri'], json['interval'], json['expires_in'])
143
+ end
144
+
145
+ # Get the access token.
146
+ # @param [String] code The device code.
147
+ # @return [OAuth2TokenResponse] The access token.
148
+ def fetch_token(code)
149
+ token_uri = "#{@base_uri}/oauth/token"
150
+ data = {
151
+ 'grant_type': 'urn:ietf:params:oauth:grant-type:device_code',
152
+ 'client_id': @client_id,
153
+ 'device_code': code,
154
+ }
155
+
156
+ json = execute_post(token_uri, data)
157
+
158
+ OAuth2TokenResponse.new(json["token_type"], json['access_token'], json['refresh_token'], json['expires_in'])
159
+ end
160
+
161
+ # Get the refresh token.
162
+ # @param [String] refresh_token The refresh token.
163
+ # @return [OAuth2TokenResponse] The access token.
164
+ def refresh_token(refresh_token)
165
+ token_uri = "#{@base_uri}/oauth/token"
166
+ data = {
167
+ 'grant_type': 'refresh_token',
168
+ 'client_id': @client_id,
169
+ 'refresh_token': refresh_token,
170
+ }
171
+
172
+ json = execute_post(token_uri, data)
173
+
174
+ OAuth2TokenResponse.new(json["token_type"], json['access_token'], json['refresh_token'], json['expires_in'])
98
175
  end
99
176
  end
100
177
 
101
178
  # The Oauth2AuthorizationCodeParams class is used to manage the OAuth2 redirect url query parameters.
102
179
  class OAuth2AuthorizationCodeParams
103
180
  attr_accessor :authorization_code, :state
104
-
181
+
105
182
  # Initializes a new instance of the OAuth2AuthorizationCodeParams class.
106
183
  # @param [String] authorization_code The authorization code.
107
184
  # @param [String] state The state.
@@ -111,11 +188,11 @@ module FattureInCloud_Ruby_Sdk
111
188
  end
112
189
  end
113
190
 
114
- # The OAuth2AuthorizationCodeTokenResponse class is used to manage the OAuth2 authorization code token response.
115
- class OAuth2AuthorizationCodeTokenResponse
191
+ # The OAuth2TokenResponse class is used to manage the OAuth2 token response.
192
+ class OAuth2TokenResponse
116
193
  attr_accessor :token_type, :access_token, :refresh_token, :expires_in
117
194
 
118
- # Initializes a new instance of the OAuth2AuthorizationCodeTokenResponse class.
195
+ # Initializes a new instance of the OAuth2TokenResponse class.
119
196
  # @param [String] token_type The token type.
120
197
  # @param [String] access_token The access token.
121
198
  # @param [String] refresh_token The refresh token.
@@ -127,4 +204,25 @@ module FattureInCloud_Ruby_Sdk
127
204
  @expires_in = expires_in
128
205
  end
129
206
  end
207
+
208
+ # The OAuth2DeviceCodeResponse class is used to manage the OAuth2 device code response.
209
+ class OAuth2DeviceCodeResponse
210
+ attr_accessor :device_code, :user_code, :scope, :verification_uri, :interval, :expires_in
211
+
212
+ # Initializes a new instance of the OAuth2TokenResponse class.
213
+ # @param [String] device_code The token type.
214
+ # @param [String] user_code The access token.
215
+ # @param [Object] user_code The access token.
216
+ # @param [String] verification_uri The verification uri.
217
+ # @param [Number] interval The interval between two requests.
218
+ # @param [Number] expires_in The expire time.
219
+ def initialize(device_code, user_code, scope, verification_uri, interval, expires_in)
220
+ @device_code = device_code
221
+ @user_code = user_code
222
+ @scope = scope
223
+ @verification_uri = verification_uri
224
+ @interval = interval
225
+ @expires_in = expires_in
226
+ end
227
+ end
130
228
  end
@@ -3,13 +3,13 @@
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.32
6
+ The version of the OpenAPI document: 2.1.0
7
7
  Contact: info@fattureincloud.it
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.3.0
9
+ Generator version: 7.6.0
10
10
 
11
11
  =end
12
12
 
13
13
  module FattureInCloud_Ruby_Sdk
14
- VERSION = '2.0.20'
14
+ VERSION = '2.1.0'
15
15
  end
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
5
5
 
6
- The version of the OpenAPI document: 2.0.32
6
+ The version of the OpenAPI document: 2.1.0
7
7
  Contact: info@fattureincloud.it
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.3.0
9
+ Generator version: 7.6.0
10
10
 
11
11
  =end
12
12
 
data/sdk-version.yaml CHANGED
@@ -1,2 +1,2 @@
1
1
  info:
2
- version: 2.0.20
2
+ version: 2.1.0