fattureincloud_ruby_sdk 2.0.20 → 2.0.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (278) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +2 -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/version.rb +3 -3
  263. data/lib/fattureincloud_ruby_sdk.rb +2 -2
  264. data/sdk-version.yaml +1 -1
  265. data/spec/api/issued_documents_api_spec.rb +8 -8
  266. data/spec/filter/operator_spec.rb +2 -0
  267. data/spec/models/company_spec.rb +7 -0
  268. data/spec/models/create_issued_document_response_spec.rb +1 -2
  269. data/spec/models/get_issued_document_response_spec.rb +0 -1
  270. data/spec/models/get_new_issued_document_totals_request_spec.rb +0 -1
  271. data/spec/models/issued_document_extra_data_spec.rb +0 -6
  272. data/spec/models/issued_document_spec.rb +0 -7
  273. data/spec/models/list_issued_documents_response_page_spec.rb +0 -1
  274. data/spec/models/list_issued_documents_response_spec.rb +1 -2
  275. data/spec/models/modify_issued_document_request_spec.rb +0 -1
  276. data/spec/models/modify_issued_document_response_spec.rb +1 -2
  277. data/spec/spec_helper.rb +2 -2
  278. 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.0.33
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.0.33
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.0.33
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.0.33
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.0.33
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.0.33
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.0.33
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,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.0.33
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.0.21'
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.0.33
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.0.21
@@ -21,7 +21,7 @@ describe 'IssuedDocumentsApi' do
21
21
  # run before each test
22
22
  @api_instance = FattureInCloud_Ruby_Sdk::IssuedDocumentsApi.new
23
23
 
24
- @create_issued_document_response_obj = { "data": { "id": 12345, "type": "receipt", "year": 2021, "numeration": "rec123", "subject": "", "visible_subject": "", "rc_center": "", "ei_cassa_type": nil, "ei_withholding_tax_causal": nil, "ei_other_withholding_tax_type": nil, "ei_other_withholding_tax_causal": nil, "stamp_duty": 0, "use_gross_prices": false, "e_invoice": false, "agyo_company_id": nil, "agyo_id": nil, "agyo_sent_at": nil, "delivery_note": false, "accompanying_invoice": false, "amount_net": 68.18, "amount_vat": 6.82, "amount_gross": 75, "amount_due_discount": 0, "amount_rivalsa": 0, "amount_cassa": 0, "amount_withholding_tax": 0, "amount_other_withholding_tax": 0, "permanent_token": "6pzguy12h45rn9yqwertp43t7ec90vr", "h_margins": 15, "v_margins": 16, "show_payment_method": false, "show_payments": true, "show_totals": "all", "show_paypal_button": true, "show_notification_button": false, "is_marked": false, "created_at": "2021-08-13 09:30:20", "updated_at": "2021-08-23 05:34:20", "entity": { "id": 54321, "name": "Mary Red S.r.L.", "vat_number": "IT05432181211", "tax_code": "IT05432181211", "address_street": "Corso impero, 66", "address_postal_code": "20900", "address_city": "Milano", "address_province": "MI", "address_extra": "", "country": "Italia", "certified_email": "mary@pec.red.com", "ei_code": "ABCXCR1" }, "date": "2021-08-20", "number": 1, "currency": { "id": "EUR", "exchange_rate": "1.00000", "symbol": "\u20ac" }, "language": { "code": "it", "name": "Italiano" }, "notes": "", "rivalsa": 0, "cassa": 0, "withholding_tax": 0, "withholding_tax_taxable": 100, "other_withholding_tax": 0, "payment_method": { "id": 4, "name": "Credit card" }, "use_split_payment": false, "merged_in": nil, "original_document": nil, "items_list": [{ "product_id": 5432, "code": "SG3", "name": "Soggiorno", "measure": "", "net_price": 68.18182, "category": "", "id": 277876033, "gross_price": 75, "apply_withholding_taxes": true, "discount": 0, "discount_highlight": false, "in_dn": false, "qty": 1, "vat": { "id": 3, "value": 10, "description": "" }, "stock": false, "description": "", "not_taxable": false }], "payments_list": [{ "amount": 75, "due_date": "2020-08-23", "paid_date": nil, "id": 69078013, "payment_terms": { "days": 0, "type": "standard" }, "status": "not_paid", "payment_account": nil }], "attachment_url": "kdijrnf893hnwkfk45f50f.pdf", "seen_date": nil, "next_due_date": "2020-08-23", "template": { "id": 2821, "name": "Light Smoke" }, "extra_data": nil, "url": "y12h45rn9yf2mse0p43t7ec90vr.pdf", "locked": false, "has_ts_pay_pending_payment": false, "show_tspay_button": false, "pay_with_tspay_url": nil } }
24
+ @create_issued_document_response_obj = { "data": { "id": 12345, "type": "receipt", "year": 2021, "numeration": "rec123", "subject": "", "visible_subject": "", "rc_center": "", "ei_cassa_type": nil, "ei_withholding_tax_causal": nil, "ei_other_withholding_tax_type": nil, "ei_other_withholding_tax_causal": nil, "stamp_duty": 0, "use_gross_prices": false, "e_invoice": false, "agyo_company_id": nil, "agyo_id": nil, "agyo_sent_at": nil, "delivery_note": false, "accompanying_invoice": false, "amount_net": 68.18, "amount_vat": 6.82, "amount_gross": 75, "amount_due_discount": 0, "amount_rivalsa": 0, "amount_cassa": 0, "amount_withholding_tax": 0, "amount_other_withholding_tax": 0, "permanent_token": "6pzguy12h45rn9yqwertp43t7ec90vr", "h_margins": 15, "v_margins": 16, "show_payment_method": false, "show_payments": true, "show_totals": "all", "show_notification_button": false, "is_marked": false, "created_at": "2021-08-13 09:30:20", "updated_at": "2021-08-23 05:34:20", "entity": { "id": 54321, "name": "Mary Red S.r.L.", "vat_number": "IT05432181211", "tax_code": "IT05432181211", "address_street": "Corso impero, 66", "address_postal_code": "20900", "address_city": "Milano", "address_province": "MI", "address_extra": "", "country": "Italia", "certified_email": "mary@pec.red.com", "ei_code": "ABCXCR1" }, "date": "2021-08-20", "number": 1, "currency": { "id": "EUR", "exchange_rate": "1.00000", "symbol": "\u20ac" }, "language": { "code": "it", "name": "Italiano" }, "notes": "", "rivalsa": 0, "cassa": 0, "withholding_tax": 0, "withholding_tax_taxable": 100, "other_withholding_tax": 0, "payment_method": { "id": 4, "name": "Credit card" }, "use_split_payment": false, "merged_in": nil, "original_document": nil, "items_list": [{ "product_id": 5432, "code": "SG3", "name": "Soggiorno", "measure": "", "net_price": 68.18182, "category": "", "id": 277876033, "gross_price": 75, "apply_withholding_taxes": true, "discount": 0, "discount_highlight": false, "in_dn": false, "qty": 1, "vat": { "id": 3, "value": 10, "description": "" }, "stock": false, "description": "", "not_taxable": false }], "payments_list": [{ "amount": 75, "due_date": "2020-08-23", "paid_date": nil, "id": 69078013, "payment_terms": { "days": 0, "type": "standard" }, "status": "not_paid", "payment_account": nil }], "attachment_url": "kdijrnf893hnwkfk45f50f.pdf", "seen_date": nil, "next_due_date": "2020-08-23", "template": { "id": 2821, "name": "Light Smoke" }, "extra_data": nil, "url": "y12h45rn9yf2mse0p43t7ec90vr.pdf", "locked": false, "has_ts_pay_pending_payment": false, "show_tspay_button": false, "pay_with_tspay_url": nil } }
25
25
  allow(@api_instance).to receive(:create_issued_document) { @create_issued_document_response_obj }
26
26
 
27
27
  @get_email_data_response_obj = { "data": { "recipient_email": "mary.red@example.com", "default_sender_email": { "id": 0, "email": "no-reply@fattureincloud.it" }, "sender_emails_list": [{ "id": 0, "email": "no-reply@fattureincloud.it" }, { "id": 888, "email": "mariorossi@fattureincloud.it" }], "cc_email": "m.rossi@exxample.com", "subject": "Nostra pro forma nr. 1", "body": "Gentile Mario Rossi,<br>per vedere la nostra pro forma di o per scaricarne una copia in versione PDF prema sul bottone sottoastante.<br><br>{{allegati}}<br><br>Cordiali saluti,<br><b>Mario Rossi<\/b>", "document_exists": true, "delivery_note_exists": false, "attachment_exists": false, "accompanying_invoice_exists": false } }
@@ -30,7 +30,7 @@ describe 'IssuedDocumentsApi' do
30
30
  @get_existing_issued_document_totals_response_obj = { "data": { "amount_net": 68.18, "amount_rivalsa": 13.64, "amount_net_with_rivalsa": 81.82000000000001, "taxable_amount": 81.82, "vat_list": { "10": { "amount_net": 81.82, "amount_vat": 8.18 } }, "amount_vat": 8.18, "amount_gross": 90, "amount_due": 90, "amount_due_discount": 0, "payments_sum": 75 } }
31
31
  allow(@api_instance).to receive(:get_existing_issued_document_totals) { @get_existing_issued_document_totals_response_obj }
32
32
 
33
- @get_issued_document_response_obj = { "data": { "id": 12345, "type": "receipt", "year": 2021, "numeration": "rec123", "subject": "", "visible_subject": "", "rc_center": "", "ei_cassa_type": nil, "ei_withholding_tax_causal": nil, "ei_other_withholding_tax_type": nil, "ei_other_withholding_tax_causal": nil, "stamp_duty": 0, "use_gross_prices": false, "e_invoice": false, "agyo_company_id": nil, "agyo_id": nil, "agyo_sent_at": nil, "delivery_note": false, "accompanying_invoice": false, "amount_net": 68.18, "amount_vat": 6.82, "amount_gross": 75, "amount_due_discount": 0, "amount_rivalsa": 0, "amount_cassa": 0, "amount_withholding_tax": 0, "amount_other_withholding_tax": 0, "permanent_token": "6pzguy12h45rn9yqwertp43t7ec90vr", "h_margins": 15, "v_margins": 16, "show_payment_method": false, "show_payments": true, "show_totals": "all", "show_paypal_button": true, "show_notification_button": false, "is_marked": false, "created_at": "2021-08-13 09:30:20", "updated_at": "2021-08-23 05:34:20", "entity": { "id": 54321, "name": "Mary Red S.r.L.", "vat_number": "IT05432181211", "tax_code": "IT05432181211", "address_street": "Corso impero, 66", "address_postal_code": "20900", "address_city": "Milano", "address_province": "MI", "address_extra": "", "country": "Italia", "certified_email": "mary@pec.red.com", "ei_code": "ABCXCR1" }, "date": "2021-08-20", "number": 1, "currency": { "id": "EUR", "exchange_rate": "1.00000", "symbol": "\u20ac" }, "language": { "code": "it", "name": "Italiano" }, "notes": "", "rivalsa": 0, "cassa": 0, "withholding_tax": 0, "withholding_tax_taxable": 100, "other_withholding_tax": 0, "payment_method": { "id": 4, "name": "Credit card" }, "use_split_payment": false, "merged_in": nil, "original_document": nil, "items_list": [{ "product_id": 5432, "code": "SG3", "name": "Soggiorno", "measure": "", "net_price": 68.18182, "category": "", "id": 277876033, "gross_price": 75, "apply_withholding_taxes": true, "discount": 0, "discount_highlight": false, "in_dn": false, "qty": 1, "vat": { "id": 3, "value": 10, "description": "" }, "stock": false, "description": "", "not_taxable": false }], "payments_list": [{ "amount": 75, "due_date": "2020-08-23", "paid_date": nil, "id": 69078013, "payment_terms": { "days": 0, "type": "standard" }, "status": "not_paid", "payment_account": nil }], "attachment_url": "kdijrnf893hnwkfk45f50f.pdf", "seen_date": nil, "next_due_date": "2020-08-23", "template": { "id": 2821, "name": "Light Smoke" }, "extra_data": nil, "url": "y12h45rn9yf2mse0p43t7ec90vr.pdf", "locked": false, "has_ts_pay_pending_payment": false, "show_tspay_button": false, "pay_with_tspay_url": nil } }
33
+ @get_issued_document_response_obj = { "data": { "id": 12345, "type": "receipt", "year": 2021, "numeration": "rec123", "subject": "", "visible_subject": "", "rc_center": "", "ei_cassa_type": nil, "ei_withholding_tax_causal": nil, "ei_other_withholding_tax_type": nil, "ei_other_withholding_tax_causal": nil, "stamp_duty": 0, "use_gross_prices": false, "e_invoice": false, "agyo_company_id": nil, "agyo_id": nil, "agyo_sent_at": nil, "delivery_note": false, "accompanying_invoice": false, "amount_net": 68.18, "amount_vat": 6.82, "amount_gross": 75, "amount_due_discount": 0, "amount_rivalsa": 0, "amount_cassa": 0, "amount_withholding_tax": 0, "amount_other_withholding_tax": 0, "permanent_token": "6pzguy12h45rn9yqwertp43t7ec90vr", "h_margins": 15, "v_margins": 16, "show_payment_method": false, "show_payments": true, "show_totals": "all", "show_notification_button": false, "is_marked": false, "created_at": "2021-08-13 09:30:20", "updated_at": "2021-08-23 05:34:20", "entity": { "id": 54321, "name": "Mary Red S.r.L.", "vat_number": "IT05432181211", "tax_code": "IT05432181211", "address_street": "Corso impero, 66", "address_postal_code": "20900", "address_city": "Milano", "address_province": "MI", "address_extra": "", "country": "Italia", "certified_email": "mary@pec.red.com", "ei_code": "ABCXCR1" }, "date": "2021-08-20", "number": 1, "currency": { "id": "EUR", "exchange_rate": "1.00000", "symbol": "\u20ac" }, "language": { "code": "it", "name": "Italiano" }, "notes": "", "rivalsa": 0, "cassa": 0, "withholding_tax": 0, "withholding_tax_taxable": 100, "other_withholding_tax": 0, "payment_method": { "id": 4, "name": "Credit card" }, "use_split_payment": false, "merged_in": nil, "original_document": nil, "items_list": [{ "product_id": 5432, "code": "SG3", "name": "Soggiorno", "measure": "", "net_price": 68.18182, "category": "", "id": 277876033, "gross_price": 75, "apply_withholding_taxes": true, "discount": 0, "discount_highlight": false, "in_dn": false, "qty": 1, "vat": { "id": 3, "value": 10, "description": "" }, "stock": false, "description": "", "not_taxable": false }], "payments_list": [{ "amount": 75, "due_date": "2020-08-23", "paid_date": nil, "id": 69078013, "payment_terms": { "days": 0, "type": "standard" }, "status": "not_paid", "payment_account": nil }], "attachment_url": "kdijrnf893hnwkfk45f50f.pdf", "seen_date": nil, "next_due_date": "2020-08-23", "template": { "id": 2821, "name": "Light Smoke" }, "extra_data": nil, "url": "y12h45rn9yf2mse0p43t7ec90vr.pdf", "locked": false, "has_ts_pay_pending_payment": false, "show_tspay_button": false, "pay_with_tspay_url": nil } }
34
34
  allow(@api_instance).to receive(:get_issued_document) { @get_issued_document_response_obj }
35
35
 
36
36
  @get_issued_document_pre_create_info_response_obj = { "data": { "numerations": { "2018": { "AB123": 2 }, "2019": { "123": nil }, "2020": { "ABC": 2 }, "2021": { "rec123": 2 } }, "dn_numerations": { "2017": { "": 1000 }, "2018": { "": 112 }, "2019": { "": 526 }, "2020": { "": 11 }, "2021": { "": 110 } }, "default_values": { "template": { "id": 111, "type": "standard", "name": "Light Smoke" }, "dn_template": { "id": 222, "type": "delivery_note", "name": "DDT 1" }, "ai_template": { "id": 333, "type": "accompanying_invoice", "name": "FT Accompagnatoria 1" }, "notes": "", "rivalsa": 0, "cassa": 0, "withholding_tax": 0, "withholding_tax_taxable": 100, "other_withholding_tax": 0, "use_gross_prices": false, "payment_method": { "id": 123321, "name": "Bonifico bancario", "is_default": true, "details": [{ "title": "Banca", "description": "Indesa" }, { "title": "IBAN", "description": "IT17QA12345600000003498936" }, { "title": "Intestatario", "description": "Mario Rossi" }], "bank_iban": "IT17QA12345600000003498936", "bank_name": "Indesa", "bank_beneficiary": "Mario Rossi", "ei_payment_method": "MP05" }, "show_payment_method": true, "ei_cassa_type": nil, "ei_withholding_tax_causal": "B", "ei_other_withholding_tax_type": nil, "ei_other_withholding_tax_causal": nil, "ei_default_document_type": "TD01" }, "extra_data_default_values": { "ts_communication": false, "ts_tipo_spesa": "SR", "ts_flag_tipo_spesa": 0, "ts_pagamento_tracciato": false }, "items_default_values": { "vat": { "id": 0, "value": 22, "description": "", "notes": "", "e_invoice": true, "ei_type": "0", "ei_description": "", "is_disabled": false, "editable": false, "default": true } }, "countries_list": ["Italia", "Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Anguilla", "Antartide", "Antigua e Barbuda", "Antille Olandesi", "Arabia Saudita", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaigian", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belgio", "Belize", "Benin", "Bermuda", "Bhutan", "Bielorussia", "Bolivia", "Bosnia ed Erzegovina", "Botswana", "Brasile", "Brunei", "Bulgaria", "Burkina Faso", "Burundi", "Cambogia", "Camerun", "Canada", "Capo Verde", "Ciad", "Cile", "Cina", "Cipro", "Citt\u00e0 del Vaticano", "Colombia", "Comore", "Corea del Nord", "Corea del Sud", "Costa Rica", "Costa d\'Avorio", "Croazia", "Cuba", "Danimarca", "Dominica", "Ecuador", "Egitto", "El Salvador", "Emirati Arabi Uniti", "Eritrea", "Estonia", "Etiopia", "Fiji", "Filippine", "Finlandia", "Francia", "Gabon", "Gambia", "Georgia", "Georgia del Sud e isole Sandwich", "Germania", "Ghana", "Giamaica", "Giappone", "Gibilterra", "Gibuti", "Giordania", "Grecia", "Grenada", "Groenlandia", "Guadalupa", "Guam", "Guatemala", "Guernsey - Channel Islands", "Guinea", "Guinea Equatoriale", "Guinea-Bissau", "Guyana", "Guyana Francese", "Haiti", "Heard Island e McDonald Islands", "Honduras", "Hong Kong", "India", "Indonesia", "Iran", "Iraq", "Irlanda", "Islanda", "Isola Bouvet", "Isola Christmas", "Isola di Man", "Isola Norfolk", "Isole Canarie (Spagna)", "Isole Cayman", "Isole Cocos e Keeling", "Isole Cook", "Isole Falkland", "Isole F\u00e6r \u00d8er", "Isole Marianne Settentrionali", "Isole Marshall", "Isole Minori Esterne degli USA", "Isole Pitcairn", "Isole Salomone", "Isole Vergini Americane", "Isole Vergini Britanniche", "Isole \u00c5land", "Israele", "Jersey - Channel Islands", "Kazakistan", "Kenia", "Kirghizistan", "Kiribati", "Kosovo", "Kuwait", "Laos", "Lesotho", "Lettonia", "Libano", "Liberia", "Libia", "Liechtenstein", "Lituania", "Lussemburgo", "Macao", "Macedonia", "Macedonia del Nord", "Madagascar", "Malawi", "Malaysia", "Maldive", "Mali", "Malta", "Marocco", "Martinica", "Mauritania", "Mauritius", "Mayotte", "Messico", "Micronesia", "Moldavia", "Monaco", "Mongolia", "Montenegro", "Montserrat", "Mozambico", "Myanmar", "Namibia", "Nauru", "Nepal", "Nicaragua", "Niger", "Nigeria", "Niue", "Norvegia", "Nuova Caledonia", "Nuova Zelanda", "Oman", "Paesi Bassi", "Pakistan", "Palau", "Panama", "Papua Nuova Guinea", "Paraguay", "Per\u00f9", "Polinesia Francese", "Polonia", "Porto Rico", "Portogallo", "Qatar", "Regno Unito", "Repubblica Ceca", "Repubblica Centrafricana", "Repubblica Democratica del Congo", "Repubblica Dominicana", "Repubblica del Congo", "Riunione", "Romania", "Ruanda", "Russia", "Sahara Occidentale", "Saint Barthelemy", "Saint Kitts e Nevis", "Saint Pierre e Miquelon", "Saint Vincent e Grenadine", "Samoa", "Samoa Americane", "San Marino", "Sant\'Elena", "Santa Lucia", "Senegal", "Serbia", "Seychelles", "Sierra Leone", "Singapore", "Siria", "Slovacchia", "Slovenia", "Somalia", "Spagna", "Sri Lanka", "Stato di Palestina", "Stati Uniti", "Sudafrica", "Sud Sudan", "Sudan", "Suriname", "Svalbard e Jan Mayen", "Svezia", "Svizzera", "Swaziland", "S\u00e3o Tom\u00e9 e Pr\u00edncipe", "Tagikistan", "Taiwan", "Tanzania", "Terre australi e ant. francesi", "Terr. Britannico dell\'Oc. Ind.", "Thailandia", "Timor Est", "Togo", "Tokelau", "Tonga", "Trinidad e Tobago", "Tunisia", "Turchia", "Turkmenistan", "Turks e Caicos", "Tuvalu", "Ucraina", "Uganda", "Ungheria", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela", "Vietnam", "Wallis e Futuna", "Yemen", "Zambia", "Zimbabwe"], "currencies_list": [{ "id": "AED", "symbol": "AED", "html_symbol": "AED", "exchange_rate": "4.09500" }, { "id": "ALL", "symbol": "ALL", "html_symbol": "ALL", "exchange_rate": "121.50000" }, { "id": "AUD", "symbol": "AUD", "html_symbol": "AUD", "exchange_rate": "1.62094" }, { "id": "AZN", "symbol": "AZN", "html_symbol": "AZN", "exchange_rate": "2.00130" }, { "id": "BGN", "symbol": "\u043b\u0432", "html_symbol": "BGN", "exchange_rate": "1.95583" }, { "id": "BRL", "symbol": "R$", "html_symbol": "R$", "exchange_rate": "4.50410" }, { "id": "BYN", "symbol": "BYN", "html_symbol": "BYN", "exchange_rate": "2.41000" }, { "id": "CAD", "symbol": "CAD", "html_symbol": "CAD", "exchange_rate": "1.49841" }, { "id": "CFA", "symbol": "CFA", "html_symbol": "CFA", "exchange_rate": "656.68000" }, { "id": "CHF", "symbol": "Fr.", "html_symbol": "Fr.", "exchange_rate": "1.12559" }, { "id": "CNY", "symbol": "CNY", "html_symbol": "CNY", "exchange_rate": "7.70160" }, { "id": "CRC", "symbol": "\u20a1", "html_symbol": "₡", "exchange_rate": "659.17000" }, { "id": "CZK", "symbol": "K\u010d", "html_symbol": "CZK", "exchange_rate": "25.80600" }, { "id": "DKK", "symbol": "kr.", "html_symbol": "kr.", "exchange_rate": "7.46750" }, { "id": "DOP", "symbol": "DOP", "html_symbol": "DOP", "exchange_rate": "56.50000" }, { "id": "DZD", "symbol": "DZD", "html_symbol": "DZD", "exchange_rate": "134.28300" }, { "id": "EGP", "symbol": "EGP", "html_symbol": "EGP", "exchange_rate": "18.98030" }, { "id": "EUR", "symbol": "\u20ac", "html_symbol": "€", "exchange_rate": "1.00000" }, { "id": "GBP", "symbol": "\u00a3", "html_symbol": "£", "exchange_rate": "0.88096" }, { "id": "GHS", "symbol": "GHS", "html_symbol": "GHS", "exchange_rate": "5.45834" }, { "id": "HKD", "symbol": "HK$", "html_symbol": "HK$", "exchange_rate": "8.75450" }, { "id": "HRK", "symbol": "HRK", "html_symbol": "HRK", "exchange_rate": "7.42640" }, { "id": "HUF", "symbol": "HUF", "html_symbol": "HUF", "exchange_rate": "326.24000" }, { "id": "ILS", "symbol": "\u20aa", "html_symbol": "₪", "exchange_rate": "4.02680" }, { "id": "INR", "symbol": "INR", "html_symbol": "INR", "exchange_rate": "77.76050" }, { "id": "ISK", "symbol": "ISK", "html_symbol": "ISK", "exchange_rate": "135.94600" }, { "id": "JPY", "symbol": "\u00a5", "html_symbol": "¥", "exchange_rate": "123.05800" }, { "id": "KRW", "symbol": "KRW", "html_symbol": "KRW", "exchange_rate": "1329.20000" }, { "id": "MAD", "symbol": "MAD", "html_symbol": "MAD", "exchange_rate": "10.78900" }, { "id": "MKD", "symbol": "MKD", "html_symbol": "MKD", "exchange_rate": "61.36700" }, { "id": "MXN", "symbol": "Mex$", "html_symbol": "Mex$", "exchange_rate": "21.17900" }, { "id": "MYR", "symbol": "MYR", "html_symbol": "MYR", "exchange_rate": "4.67310" }, { "id": "NGN", "symbol": "NGN", "html_symbol": "NGN", "exchange_rate": "405.17000" }, { "id": "NIS", "symbol": "NIS", "html_symbol": "NIS", "exchange_rate": "4020.00000" }, { "id": "NOK", "symbol": "kr", "html_symbol": "kr", "exchange_rate": "9.76270" }, { "id": "NZD", "symbol": "NZD", "html_symbol": "NZD", "exchange_rate": "1.71687" }, { "id": "OMR", "symbol": "OMR", "html_symbol": "OMR", "exchange_rate": "0.42950" }, { "id": "PEN", "symbol": "PEN", "html_symbol": "PEN", "exchange_rate": "3.73400" }, { "id": "PLN", "symbol": "z\u0142", "html_symbol": "PLN", "exchange_rate": "4.30330" }, { "id": "QAR", "symbol": "QAR", "html_symbol": "QAR", "exchange_rate": "4.06270" }, { "id": "RON", "symbol": "RON", "html_symbol": "RON", "exchange_rate": "4.66891" }, { "id": "RSD", "symbol": "RSD", "html_symbol": "RSD", "exchange_rate": "117.39414" }, { "id": "RUB", "symbol": "\u20bd", "html_symbol": "₽", "exchange_rate": "71.70370" }, { "id": "SAR", "symbol": "SAR", "html_symbol": "SAR", "exchange_rate": "4.18520" }, { "id": "SEK", "symbol": "SEK", "html_symbol": "SEK", "exchange_rate": "10.73374" }, { "id": "SGD", "symbol": "SGD", "html_symbol": "SGD", "exchange_rate": "1.53800" }, { "id": "THB", "symbol": "THB", "html_symbol": "THB", "exchange_rate": "35.56400" }, { "id": "TND", "symbol": "TND", "html_symbol": "TND", "exchange_rate": "3.34010" }, { "id": "TRY", "symbol": "TRY", "html_symbol": "TRY", "exchange_rate": "6.81590" }, { "id": "TWD", "symbol": "TWD", "html_symbol": "TWD", "exchange_rate": "35.14200" }, { "id": "UAH", "symbol": "UAH", "html_symbol": "UAH", "exchange_rate": "29.31490" }, { "id": "USD", "symbol": "$", "html_symbol": "$", "exchange_rate": "1.11570" }, { "id": "VND", "symbol": "\u20ab", "html_symbol": "₫", "exchange_rate": "26100.00000" }, { "id": "ZAR", "symbol": "R", "html_symbol": "R", "exchange_rate": "16.03080" }], "templates_list": [{ "id": 10, "name": "New Standard S1" }, { "id": 11, "name": "New Standard S2" }, { "id": 12, "name": "New Professionisti P1" }, { "id": 13, "name": "New Buste" }, { "id": 14, "name": "New Professionisti P2" }, { "id": 101, "name": "Clear lines" }, { "id": 106, "name": "Minimalist" }, { "id": 107, "name": "Squared" }, { "id": 108, "name": "Modern" }, { "id": 150, "name": "Bright Colors" }, { "id": 681, "name": "Modern Spese di trasporto" }, { "id": 682, "name": "Modern ciao" }, { "id": 2821, "name": "Light Smoke" }, { "id": 2823, "name": "IDEAVERDE" }, { "id": 2824, "name": "LS problem" }, { "id": 2825, "name": "Light Smoke 2nd CASSA" }, { "id": 2826, "name": "LIGHT NUOVO" }, { "id": 2827, "name": "STAND" }], "dn_templates_list": [{ "id": 660, "name": "DDT 1" }, { "id": 680, "name": "DDT Prova" }], "ai_templates_list": [{ "id": 663, "name": "FT Accompagnatoria 1" }], "payment_methods_list": [{ "id": 555, "name": "Rimessa diretta", "is_default": false, "details": [], "bank_iban": nil, "bank_name": nil, "bank_beneficiary": nil, "ei_payment_method": nil }, { "id": 123321, "name": "Bonifico bancario", "is_default": true, "details": [{ "title": "Banca", "description": "Indesa" }, { "title": "IBAN", "description": "IT17QA12345600000003498936" }, { "title": "Intestatario", "description": "Mario Rossi" }], "bank_iban": "IT17QA12345600000003498936", "bank_name": "Indesa", "bank_beneficiary": "Mario Rossi", "ei_payment_method": "MP05" }], "payment_accounts_list": [{ "id": 21, "name": "Indesa - Carta conto" }, { "id": 287, "name": "Bonifico_Bancario" }], "vat_types_list": [{ "id": 1409, "value": 15, "description": "ALIQUOTA #1234#", "ei_type": "0", "is_disabled": false }, { "id": 1332, "value": 0, "description": "Non imp. art. 17 c. 6 lett. A TER DPR 633\/72", "ei_type": "0", "is_disabled": false }], "measures_list": ["pezzi", "kg", "litri", "ore", "giorni", "km", "mesi"], "languages_list": [{ "code": "it", "name": "Italiano" }, { "code": "en", "name": "Inglese" }, { "code": "de", "name": "Tedesco" }, { "code": "fr", "name": "Francese" }, { "code": "es", "name": "Spagnolo" }, { "code": "pt", "name": "Portoghese" }, { "code": "el", "name": "Greco" }, { "code": "pl", "name": "Polacco" }, { "code": "sl", "name": "Sloveno" }], "ei_structure": { "FatturaElettronicaHeader": { "idx": 1, "children": { "DatiTrasmissione": { "idx": 1, "children": { "ContattiTrasmittente": { "idx": 5, "children": { "Telefono": { "idx": 1, "type": "text", "length": [5, 12] }, "Email": { "idx": 2, "type": "text", "length": [7, 256] } } } } }, "CedentePrestatore": { "idx": 2, "children": { "DatiAnagrafici": { "idx": 1, "children": { "Anagrafica": { "idx": 3, "children": { "CodEORI": { "idx": 5, "type": "text", "length": [13, 17] } } }, "AlboProfessionale": { "idx": 4, "type": "text", "length": [1, 60] }, "ProvinciaAlbo": { "idx": 5, "type": "text", "length": 2 }, "NumeroIscrizioneAlbo": { "idx": 6, "type": "text", "length": [1, 60] }, "DataIscrizioneAlbo": { "idx": 7, "type": "date", "length": 10 } } }, "Sede": { "idx": 2, "children": { "NumeroCivico": { "idx": 2, "type": "text", "length": [1, 8] } } }, "StabileOrganizzazione": { "idx": 3, "children": { "Indirizzo": { "idx": 1, "type": "text", "length": [1, 60] }, "NumeroCivico": { "idx": 2, "type": "text", "length": [1, 8] }, "CAP": { "idx": 3, "type": "text", "length": 5 }, "Comune": { "idx": 4, "type": "text", "length": [1, 60] }, "Provincia": { "idx": 5, "type": "text", "length": 2 }, "Nazione": { "idx": 6, "type": "text", "length": 2 } } }, "Contatti": { "idx": 5, "children": { "Telefono": { "idx": 1, "type": "text", "length": [5, 12] }, "Fax": { "idx": 2, "type": "text", "length": [5, 12] }, "Email": { "idx": 3, "type": "text", "length": [7, 256] } } }, "RiferimentoAmministrazione": { "idx": 6, "type": "text", "length": [1, 20] } } }, "CessionarioCommittente": { "idx": 4, "children": { "DatiAnagrafici": { "idx": 1, "children": { "Anagrafica": { "idx": 3, "children": { "Nome": { "idx": 2, "type": "text", "length": [2, 50] }, "Cognome": { "idx": 3, "type": "text", "length": [2, 50] }, "Titolo": { "idx": 4, "type": "text", "length": [2, 10] }, "CodEORI": { "idx": 5, "type": "text", "length": [13, 17] } } } } }, "StabileOrganizzazione": { "idx": 3, "children": { "Indirizzo": { "idx": 1, "type": "text", "length": [1, 60] }, "NumeroCivico": { "idx": 2, "type": "text", "length": [1, 8] }, "CAP": { "idx": 3, "type": "text", "length": 5 }, "Comune": { "idx": 4, "type": "text", "length": [1, 60] }, "Provincia": { "idx": 5, "type": "text", "length": 2 }, "Nazione": { "idx": 6, "type": "text", "length": 2 } } }, "RappresentanteFiscale": { "idx": 4, "children": { "IdFiscaleIVA": { "idx": 1, "children": { "IdPaese": { "idx": 1, "type": "text", "length": 2 }, "IdCodice": { "idx": 2, "type": "text", "length": [1, 28] } } }, "Denominazione": { "idx": 2, "type": "text", "length": [1, 80] }, "Nome": { "idx": 3, "type": "text", "length": [1, 60] }, "Cognome": { "idx": 4, "type": "text", "length": [1, 60] } } } } } } }, "FatturaElettronicaBody": { "idx": 2, "children": { "DatiGenerali": { "idx": 1, "children": { "DatiGeneraliDocumento": { "idx": 1, "children": { "TipoDocumento": { "idx": 1, "type": "select", "options": { "TD01": "TD01 - fattura", "TD02": "TD02 - acconto\/anticipo su fattura", "TD03": "TD03 - acconto\/anticipo su parcella", "TD04": "TD04 - nota di credito", "TD05": "TD05 - nota di debito", "TD06": "TD06 - parcella", "TD16": "TD16 - integrazione fattura reverse charge interno", "TD17": "TD17 - integrazione\/autofattura per acquisto servizi dall\'estero", "TD18": "TD18 - integrazione per acquisto di beni intracomunitari", "TD19": "TD19 - integrazione\/autofattura per acquisto di beni ex art.17 c.2 DPR 633\/72", "TD20": "TD20 - autofattura per regolarizzazione e integrazione delle fatture (art.6 c.8 d.lgs. 471\/97 o art.46 c.5 D.L. 331\/93)", "TD21": "TD21 - autofattura per splafonamento", "TD22": "TD22 - estrazione beni da Deposito IVA", "TD23": "TD23 - estrazione beni da Deposito IVA con versamento dell\'IVA", "TD24": "TD24 - fattura differita di cui all\'art. 21, comma 4, lett. a)", "TD25": "TD25 - fattura differita di cui all\'art. 21, comma 4, terzo periodo, lett. b)", "TD26": "TD26 - cessione di beni ammortizzabili e per passaggi interni (ex art.36 DPR 633\/72)", "TD27": "TD27 - fattura per autoconsumo o per cessioni gratuite senza rivalsa" } }, "Arrotondamento": { "idx": 10, "type": "text", "format": "decimal", "length": [4, 15] }, "Causale": { "idx": 11, "array": true, "type": "text", "length": [1, 200] }, "Art73": { "idx": 12, "type": "select", "options": { "SI": "Si" } } } }, "DatiOrdineAcquisto": { "idx": 2, "array": true, "children": { "RiferimentoNumeroLinea": { "idx": 1, "type": "text", "array": true, "length": [1, 4] }, "IdDocumento": { "idx": 2, "type": "text", "length": [1, 20] }, "Data": { "idx": 3, "type": "date", "length": 10 }, "NumItem": { "idx": 4, "type": "text", "length": [1, 20] }, "CodiceCommessaConvenzione": { "idx": 5, "type": "text", "length": [1, 100] }, "CodiceCUP": { "idx": 6, "type": "text", "length": [1, 15] }, "CodiceCIG": { "idx": 7, "type": "text", "length": [1, 15] } } }, "DatiContratto": { "idx": 3, "array": true, "children": { "RiferimentoNumeroLinea": { "idx": 1, "type": "text", "array": true, "length": [1, 4] }, "IdDocumento": { "idx": 2, "type": "text", "length": [1, 20] }, "Data": { "idx": 3, "type": "date", "length": 10 }, "NumItem": { "idx": 4, "type": "text", "length": [1, 20] }, "CodiceCommessaConvenzione": { "idx": 5, "type": "text", "length": [1, 100] }, "CodiceCUP": { "idx": 6, "type": "text", "length": [1, 15] }, "CodiceCIG": { "idx": 7, "type": "text", "length": [1, 15] } } }, "DatiConvenzione": { "idx": 4, "array": true, "children": { "RiferimentoNumeroLinea": { "idx": 1, "type": "text", "array": true, "length": [1, 4] }, "IdDocumento": { "idx": 2, "type": "text", "length": [1, 20] }, "Data": { "idx": 3, "type": "date", "length": 10 }, "NumItem": { "idx": 4, "type": "text", "length": [1, 20] }, "CodiceCommessaConvenzione": { "idx": 5, "type": "text", "length": [1, 100] }, "CodiceCUP": { "idx": 6, "type": "text", "length": [1, 15] }, "CodiceCIG": { "idx": 7, "type": "text", "length": [1, 15] } } }, "DatiRicezione": { "idx": 5, "array": true, "children": { "RiferimentoNumeroLinea": { "idx": 1, "type": "text", "array": true, "length": [1, 4] }, "IdDocumento": { "idx": 2, "type": "text", "length": [1, 20] }, "Data": { "idx": 3, "type": "date", "length": 10 }, "NumItem": { "idx": 4, "type": "text", "length": [1, 20] }, "CodiceCommessaConvenzione": { "idx": 5, "type": "text", "length": [1, 100] }, "CodiceCUP": { "idx": 6, "type": "text", "length": [1, 15] }, "CodiceCIG": { "idx": 7, "type": "text", "length": [1, 15] } } }, "DatiFattureCollegate": { "idx": 6, "array": true, "children": { "RiferimentoNumeroLinea": { "idx": 1, "type": "text", "array": true, "length": [1, 4] }, "IdDocumento": { "idx": 2, "type": "text", "length": [1, 20] }, "Data": { "idx": 3, "type": "date", "length": 10 }, "NumItem": { "idx": 4, "type": "text", "length": [1, 20] }, "CodiceCommessaConvenzione": { "idx": 5, "type": "text", "length": [1, 100] }, "CodiceCUP": { "idx": 6, "type": "text", "length": [1, 15] }, "CodiceCIG": { "idx": 7, "type": "text", "length": [1, 15] } } }, "DatiSAL": { "idx": 7, "array": true, "children": { "RiferimentoFase": { "idx": 1, "type": "text", "length": [1, 3] } } }, "DatiDDT": { "idx": 8, "array": true, "children": { "NumeroDDT": { "idx": 1, "type": "text", "length": [1, 20] }, "DataDDT": { "idx": 2, "type": "date", "length": 10 }, "RiferimentoNumeroLinea": { "idx": 3, "type": "text", "array": true, "length": [1, 4] } } }, "DatiTrasporto": { "idx": 9, "children": { "DatiAnagraficiVettore": { "idx": 1, "children": { "IdFiscaleIVA": { "idx": 1, "children": { "IdPaese": { "idx": 1, "type": "text", "length": 2 }, "IdCodice": { "idx": 2, "type": "text", "length": [1, 28] } } }, "CodiceFiscale": { "idx": 2, "type": "text", "length": [11, 16] }, "Anagrafica": { "idx": 3, "children": { "Denominazione": { "idx": 1, "type": "text", "length": [1, 80] }, "Nome": { "idx": 2, "type": "text", "length": [1, 60] }, "Cognome": { "idx": 3, "type": "text", "length": [1, 60] }, "Titolo": { "idx": 4, "type": "text", "length": [2, 10] }, "CodEORI": { "idx": 5, "type": "text", "length": [13, 17] } } }, "NumeroLicenzaGuida": { "idx": 4, "type": "text", "length": [1, 20] } } }, "MezzoTrasporto": { "idx": 2, "type": "text", "length": [1, 80] }, "CausaleTrasporto": { "idx": 3, "type": "text", "length": [1, 100] }, "NumeroColli": { "idx": 4, "type": "text", "length": [1, 4] }, "DataInizioTrasporto": { "idx": 10, "type": "date", "length": 10 }, "TipoResa": { "idx": 11, "type": "text", "length": 3 }, "IndirizzoResa": { "idx": 12, "children": { "Indirizzo": { "idx": 1, "type": "text", "length": [1, 60] }, "NumeroCivico": { "idx": 2, "type": "text", "length": [1, 8] }, "CAP": { "idx": 3, "type": "text", "length": 5 }, "Comune": { "idx": 4, "type": "text", "length": [1, 60] }, "Provincia": { "idx": 5, "type": "text", "length": 2 }, "Nazione": { "idx": 6, "type": "text", "length": 2 } } } } } } }, "DatiPagamento": { "idx": "4", "children": { "CondizioniPagamento": { "idx": 1, "type": "select", "options": { "TP01": "Pagamento a rate", "TP02": "Pagamento completo", "TP03": "Anticipo" } } } } } } }, "ei_item_structure": { "DettaglioLinee": { "idx": "2.2.1", "children": { "NumeroLinea": { "idx": 1, "type": "text", "length": [1, 4] }, "TipoCessionePrestazione": { "idx": 2, "type": "select", "options": { "SC": "sconto", "PR": "premio", "AB": "abbuono", "AC": "spesa accessoria" } }, "CodiceArticolo": { "idx": 3, "array": true, "children": { "CodiceTipo": { "idx": 1, "type": "text", "length": [1, 35] }, "CodiceValore": { "idx": 2, "type": "text", "length": [1, 35] } } }, "DataInizioPeriodo": { "idx": 7, "type": "date", "length": 10 }, "DataFinePeriodo": { "idx": 8, "type": "date", "length": 10 }, "RiferimentoAmministrazione": { "idx": 15, "type": "text", "length": [1, 20] }, "AltriDatiGestionali": { "idx": 16, "array": true, "children": { "TipoDato": { "idx": 1, "type": "text", "length": [1, 10] }, "RiferimentoTesto": { "idx": 2, "type": "text", "length": [1, 60] }, "RiferimentoNumero": { "idx": 3, "type": "text", "format": "decimal", "length": [4, 21] }, "RiferimentoData": { "idx": 4, "type": "date", "length": 10 } } } } } }, "ei_payment_structure": { "DettaglioPagamento": { "idx": "2.4.2", "children": { "DataRiferimentoTerminiPagamento": { "idx": 3, "type": "date", "length": 10 }, "GiorniTerminiPagamento": { "idx": 4, "type": "text", "length": [1, 3] }, "DataScadenzaPagamento": { "idx": 5, "type": "date", "length": 10 }, "ABI": { "idx": 14, "type": "text", "length": 5 }, "CAB": { "idx": 15, "type": "text", "length": 5 }, "BIC": { "idx": 16, "type": "text", "length": [8, 11] }, "DataDecorrenzaPenale": { "idx": 20, "type": "date", "length": 10 } } } }, "documents_type_info": { "TD01": { "self_own_invoice": false, "self_supplier_invoice": true, "description": "TD01 - fattura", "description_self_invoice": "TD01 - fattura in nome e per conto" }, "TD02": { "self_own_invoice": true, "self_supplier_invoice": true, "description": "TD02 - acconto\/anticipo su fattura" }, "TD03": { "self_own_invoice": true, "self_supplier_invoice": true, "description": "TD03 - acconto\/anticipo su parcella" }, "TD04": { "self_own_invoice": true, "self_supplier_invoice": true, "description": "TD04 - nota di credito" }, "TD05": { "self_own_invoice": true, "self_supplier_invoice": true, "description": "TD05 - nota di debito" }, "TD06": { "self_own_invoice": true, "self_supplier_invoice": true, "description": "TD06 - parcella" }, "TD16": { "self_own_invoice": false, "self_supplier_invoice": true, "description": "TD16 - integrazione fattura reverse charge interno" }, "TD17": { "self_own_invoice": false, "self_supplier_invoice": true, "description": "TD17 - integrazione\/autofattura per acquisto servizi dall\'estero" }, "TD18": { "self_own_invoice": false, "self_supplier_invoice": true, "description": "TD18 - integrazione per acquisto di beni intracomunitari" }, "TD19": { "self_own_invoice": false, "self_supplier_invoice": true, "description": "TD19 - integrazione\/autofattura per acquisto di beni ex art.17 c.2 DPR 633\/72" }, "TD20": { "self_own_invoice": false, "self_supplier_invoice": true, "description": "TD20 - autofattura per regolarizzazione e integrazione delle fatture (art.6 c.8 d.lgs. 471\/97 o art.46 c.5 D.L. 331\/93)" }, "TD21": { "self_own_invoice": true, "self_supplier_invoice": false, "description": "TD21 - autofattura per splafonamento" }, "TD22": { "self_own_invoice": false, "self_supplier_invoice": true, "description": "TD22 - estrazione beni da Deposito IVA" }, "TD23": { "self_own_invoice": false, "self_supplier_invoice": true, "description": "TD23 - estrazione beni da Deposito IVA con versamento dell\'IVA" }, "TD24": { "self_own_invoice": true, "self_supplier_invoice": true, "description": "TD24 - fattura differita di cui all\'art. 21, comma 4, lett. a)" }, "TD25": { "self_own_invoice": true, "self_supplier_invoice": true, "description": "TD25 - fattura differita di cui all\'art. 21, comma 4, terzo periodo, lett. b)" }, "TD26": { "self_own_invoice": true, "self_supplier_invoice": true, "description": "TD26 - cessione di beni ammortizzabili e per passaggi interni (ex art.36 DPR 633\/72)" }, "TD27": { "self_own_invoice": true, "self_supplier_invoice": true, "description": "TD27 - fattura per autoconsumo o per cessioni gratuite senza rivalsa" } }, "ei_regime_info": { "RF01": "Ordinario", "RF02": "Contribuenti minimi (art.1, c.96-117, L. 244\/07)", "RF04": "Agricoltura e attivit\u00e0 connesse e pesca (artt.34 e 34-bis, DPR 633\/72)", "RF05": "Vendita sali e tabacchi (art.74, c.1, DPR. 633\/72)", "RF06": "Commercio fiammiferi (art.74, c.1, DPR 633\/72)", "RF07": "Editoria (art.74, c.1, DPR 633\/72)", "RF08": "Gestione servizi telefonia pubblica (art.74, c.1, DPR 633\/72)", "RF09": "Rivendita documenti di trasporto pubblico e di sosta (art.74, c.1, DPR 633\/72)", "RF10": "Intrattenimenti, giochi e altre attivit\u00e0 di cui alla tariffa allegata al DPR 640\/72 (art.74, c.6, DPR 633\/72)", "RF11": "Agenzie viaggi e turismo (art.74-ter, DPR 633\/72)", "RF12": "Agriturismo (art.5, c.2, L. 413\/91)", "RF13": "Vendite a domicilio (art.25-bis, c.6, DPR 600\/73)", "RF14": "Rivendita beni usati, oggetti d\u2019arte, d\u2019antiquariato o da collezione (art.36, DL 41\/95)", "RF15": "Agenzie di vendite all\u2019asta di oggetti d\'arte, antiquariato o da collezione (art.40-bis, DL 41\/95)", "RF16": "IVA per cassa P.A. (art.6, c.5, DPR 633\/72)", "RF17": "IVA per cassa (art. 32-bis, DL 83\/2012)", "RF18": "Altro", "RF19": "Regime forfettario (art.1, c.54-89, L. 190\/2014)" }, "ei_cassa_type_info": { "": "Nessuna cassa previdenziale", "TC01": "Cassa nazionale previdenza e assistenza avvocati e procuratori legali", "TC02": "Cassa previdenza dottori commercialisti", "TC03": "Cassa previdenza e assistenza geometri", "TC04": "Cassa nazionale previdenza e assistenza ingegneri e architetti liberi professionisti", "TC05": "Cassa nazionale del notariato", "TC06": "Cassa nazionale previdenza e assistenza ragionieri e periti commerciali", "TC07": "Ente nazionale assistenza agenti e rappresentanti di commercio (ENASARCO)", "TC08": "Ente nazionale previdenza e assistenza consulenti del lavoro (ENPACL)", "TC09": "Ente nazionale previdenza e assistenza medici (ENPAM)", "TC10": "Ente nazionale previdenza e assistenza farmacisti (ENPAF)", "TC11": "Ente nazionale previdenza e assistenza veterinari (ENPAV)", "TC12": "Ente nazionale previdenza e assistenza impiegati dell\'agricoltura (ENPAIA)", "TC13": "Fondo previdenza impiegati imprese di spedizione e agenzie marittime", "TC14": "Istituto nazionale previdenza giornalisti italiani (INPGI)", "TC15": "Opera nazionale assistenza orfani sanitari italiani (ONAOSI)", "TC16": "Cassa autonoma assistenza integrativa giornalisti italiani (CASAGIT)", "TC17": "Ente previdenza periti industriali e periti industriali laureati (EPPI)", "TC18": "Ente previdenza e assistenza pluricategoriale (EPAP)", "TC19": "Ente nazionale previdenza e assistenza biologi (ENPAB)", "TC20": "Ente nazionale previdenza e assistenza professione infermieristica (ENPAPI)", "TC21": "Ente nazionale previdenza e assistenza psicologi (ENPAP)", "TC22": "INPS" }, "ei_causal_payment_info": { "": "Nessuna ritenuta", "A": "Prestazioni di lavoro autonomo rientranti nell\'esercizio di arte o professione abituale", "B": "Utilizzazione economica, da parte dell\'autore o dell\'inventore, di opere dell\'ingegno, di brevetti industriali e di processi, formule o informazioni relativi ad esperienze acquisite in campo industriale, commerciale o scientifico", "C": "Utili derivanti da contratti di associazione in partecipazione e da contratti di cointeressenza, quando l\'apporto \u00e8 costituito esclusivamente dalla prestazione di lavoro", "D": "Utili spettanti ai soci promotori ed ai soci fondatori delle societ\u00e0 di capitali", "E": "Levata di protesti cambiari da parte dei segretari comunali", "G": "Indennit\u00e0 corrisposte per la cessazione di attivit\u00e0 sportiva professionale", "H": "Indennit\u00e0 corrisposte per la cessazione dei rapporti di agenzia delle persone fisiche e delle societ\u00e0 di persone con esclusione delle somme maturate entro il 31 dicembre 2003, gi\u00e0 imputate per competenza e tassate come reddito d\'impresa", "I": "Indennit\u00e0 corrisposte per la cessazione da funzioni notarili", "L": "Redditi derivanti dall\'utilizzazione economica di opere dell\'ingegno, di brevetti industriali e di processi, formule e informazioni relativi a esperienze acquisite in campo industriale, commerciale o scientifico, che sono percepiti dagli aventi causa a titolo gratuito (ad es. eredi e legatari dell\'autore e inventore)", "L1": "Redditi derivanti dall\'utilizzazione economica di opere dell\'ingegno, di brevetti industriali e di processi, formule e informazioni relativi a esperienze acquisite in campo industriale, commerciale o scientifico, che sono percepiti da soggetti che abbiano acquistato a titolo oneroso i diritti alla loro utilizzazione", "M": "Prestazioni di lavoro autonomo non esercitate abitualmente", "M1": "Redditi derivanti dall\'assunzione di obblighi di fare, di non fare o permettere", "M2": "Prestazioni di lavoro autonomo non esercitate abitualmente per le quali sussiste l\'obbligo di iscrizione alla Gestione Separata ENPAPI", "N": "Indennit\u00e0 di trasferta, rimborso forfettario di spese, premi e compensi erogati: \u0096 nell\'esercizio diretto di attivit\u00e0 sportive dilettantistiche; in relazione a rapporti di collaborazione coordinata e continuativa di carattere amministrativo-gestionale di natura non professionale resi a favore di societ\u00e0 e associazioni sportive dilettantistiche e di cori, bande e filodrammatiche da parte del direttore e dei collaboratori tecnici;", "O": "Prestazioni di lavoro autonomo non esercitate abitualmente, obblighi di fare, di non fare o permettere, per le quali non sussiste l\'obbligo di iscrizione alla gestione separata (Circ. INPS n. 104\/2001)", "O1": "Redditi derivanti dall\u2019assunzione di obblighi di fare, di non fare o permettere, per le quali non sussiste l\'obbligo di iscrizione alla gestione separata (Circ. INPS n. 104\/2001)", "P": "compensi corrisposti a soggetti non residenti privi di stabile organizzazione per l\'uso o la concessione in uso di attrezzature industriali, commerciali o scientifiche che si trovano nel territorio dello Stato ovvero a societ\u00e0 svizzere o stabili organizzazioni di societ\u00e0 svizzere che possiedono i requisiti di cui all\'art. 15, comma 2 dell\'Accordo tra la Comunit\u00e0 europea e la Confederazione svizzera del 26 ottobre 2004 (pubblicato in G.U.C.E. del 29 dicembre 2004 n. L385\/30)", "Q": "Provvigioni corrisposte ad agente o rappresentante di commercio monomandatario", "R": "Provvigioni corrisposte ad agente o rappresentante di commercio plurimandatario", "S": "Provvigioni corrisposte a commissionario", "T": "Provvigioni corrisposte a mediatore", "U": "Provvigioni corrisposte a procacciatore di affari", "V": "Provvigioni corrisposte a incaricato per le vendite a domicilio; provvigioni corrisposte a incaricato per la vendita porta a porta e per la vendita ambulante di giornali quotidiani e periodici (L. 25 febbraio 1987, n. 67)", "V1": "Redditi derivanti da attivit\u00e0 commerciali non esercitate abitualmente (ad esempio, provvigioni corrisposte per prestazioni occasionali ad agente o rappresentante di commercio, mediatore, procacciatore d\'affari)", "W": "Corrispettivi erogati nell\'anno corrente per prestazioni relative a contratti d\'appalto cui si sono resi applicabili le disposizioni contenute nell\'art. 25-ter del D.P.R. n. 600 del 29 settembre 1973", "X": "Canoni corrisposti nel 2004 da societ\u00e0 o enti residenti ovvero da stabili organizzazioni di societ\u00e0 estere di cui all\'art. 26-quater, comma 1, lett. a) e b) del D.P.R. 600 del 29 settembre 1973, a societ\u00e0 o stabili organizzazioni di societ\u00e0, situate in altro stato membro dell\'Unione Europea in presenza dei requisiti di cui al citato art. 26-quater, del D.P.R. 600 del 29 settembre 1973, per i quali \u00e8 stato effettuato, nell\'anno 2006, il rimborso della ritenuta ai sensi dell\'art. 4 del D.Lgs. 30 maggio 2005 n. 143", "Y": "Canoni corrisposti dal 1\u00b0 gennaio 2005 al 26 luglio 2005 da societ\u00e0 o enti residenti ovvero da stabili organizzazioni di societ\u00e0 estere di cui all\'art. 26-quater, comma 1, lett. a) e b) del D.P.R. n. 600 del 29 settembre 1973, asociet\u00e0 o stabili organizzazioni di societ\u00e0, situate in altro stato membro dell\'Unione Europea in presenza dei requisiti di cui al citato art. 26-quater, del D.P.R. n. 600 del 29 settembre 1973, per i quali \u00e8 stato effettuato, nell\'anno 2006, il rimborso della ritenuta ai sensi dell\'art. 4 del D.Lgs. 30 maggio 2005 n. 143", "ZO": "Titolo diverso dai precedenti" }, "ei_withholding_type_info": { "": "Nessuna ritenuta", "RT01": "Ritenuta di acconto persone fisiche", "RT02": "Ritenuta di acconto persone giuridiche", "RT03": "Contributo INPS", "RT04": "Contributo ENASARCO", "RT05": "Contributo ENPAM", "RT06": "Altro contributo previdenziale" }, "use_e_invoice": true } }
@@ -42,16 +42,16 @@ describe 'IssuedDocumentsApi' do
42
42
  @list_issued_documents_response_obj = { "current_page": 1, "data": [{ "id": 12345, "type": "receipt", "numeration": "rec123", "subject": "", "visible_subject": "", "amount_net": 68.18, "amount_vat": 6.82, "amount_gross": 75, "amount_due_discount": 0, "entity": { "id": 54321, "name": "Mary Red S.r.L.", "vat_number": "IT05432181211", "tax_code": "IT05432181211", "address_street": "Corso impero, 66", "address_postal_code": "20900", "address_city": "Milano", "address_province": "MI", "address_extra": "", "country": "Italia", "certified_email": "mary@pec.red.com", "ei_code": "ABCXCR1" }, "date": "2021-08-20", "number": 1, "next_due_date": "2021-12-31", "url": "ypbqqe4u8w8bdabcd5fd5b1a4gtqhlof.pdf", "items_list": nil, "payments_list": nil }, { "id": 12346, "type": "receipt", "numeration": "rec124", "subject": "", "visible_subject": "", "amount_net": 168.18, "amount_vat": 16.82, "amount_gross": 175, "amount_due_discount": 0, "entity": { "id": 54321, "name": "Mary Red S.r.L.", "vat_number": "IT05432181211", "tax_code": "IT05432181211", "address_street": "Corso impero, 66", "address_postal_code": "20900", "address_city": "Milano", "address_province": "MI", "address_extra": "", "country": "Italia", "certified_email": "mary@pec.red.com", "ei_code": "ABCXCR1" }, "date": "2021-08-28", "number": 1, "next_due_date": "2021-12-31", "url": "qwertye4u8w8bdaqrt5fd5b1a4gtqhlof.pdf", "items_list": nil, "payments_list": nil }], "first_page_url": "page=1", "from": 1, "last_page": 1, "last_page_url": "page=1", "next_page_url": nil, "path": "issued_documents", "per_page": 50, "prev_page_url": nil, "to": 2, "total": 2 }
43
43
  allow(@api_instance).to receive(:list_issued_documents) { @list_issued_documents_response_obj }
44
44
 
45
- @modify_issued_document_response_obj = { "data": { "id": 12345, "type": "receipt", "year": 2021, "numeration": "rec123", "subject": "", "visible_subject": "", "rc_center": "", "ei_cassa_type": nil, "ei_withholding_tax_causal": nil, "ei_other_withholding_tax_type": nil, "ei_other_withholding_tax_causal": nil, "stamp_duty": 0, "use_gross_prices": false, "e_invoice": false, "agyo_company_id": nil, "agyo_id": nil, "agyo_sent_at": nil, "delivery_note": false, "accompanying_invoice": false, "amount_net": 68.18, "amount_vat": 6.82, "amount_gross": 75, "amount_due_discount": 0, "amount_rivalsa": 0, "amount_cassa": 0, "amount_withholding_tax": 0, "amount_other_withholding_tax": 0, "permanent_token": "6pzguy12h45rn9yqwertp43t7ec90vr", "h_margins": 15, "v_margins": 16, "show_payment_method": false, "show_payments": true, "show_totals": "all", "show_paypal_button": true, "show_notification_button": false, "is_marked": false, "created_at": "2021-08-13 09:30:20", "updated_at": "2021-08-23 05:34:20", "entity": { "id": 54321, "name": "Mary Red S.r.L.", "vat_number": "IT05432181211", "tax_code": "IT05432181211", "address_street": "Corso impero, 66", "address_postal_code": "20900", "address_city": "Milano", "address_province": "MI", "address_extra": "", "country": "Italia", "certified_email": "mary@pec.red.com", "ei_code": "ABCXCR1" }, "date": "2021-08-20", "number": 1, "currency": { "id": "EUR", "exchange_rate": "1.00000", "symbol": "\u20ac" }, "language": { "code": "it", "name": "Italiano" }, "notes": "", "rivalsa": 0, "cassa": 0, "withholding_tax": 0, "withholding_tax_taxable": 100, "other_withholding_tax": 0, "payment_method": { "id": 4, "name": "Credit card" }, "use_split_payment": false, "merged_in": nil, "original_document": nil, "items_list": [{ "product_id": 5432, "code": "SG3", "name": "Soggiorno", "measure": "", "net_price": 68.18182, "category": "", "id": 277876033, "gross_price": 75, "apply_withholding_taxes": true, "discount": 0, "discount_highlight": false, "in_dn": false, "qty": 1, "vat": { "id": 3, "value": 10, "description": "" }, "stock": false, "description": "", "not_taxable": false }], "payments_list": [{ "amount": 75, "due_date": "2020-08-23", "paid_date": nil, "id": 69078013, "payment_terms": { "days": 0, "type": "standard" }, "status": "not_paid", "payment_account": nil }], "attachment_url": "kdijrnf893hnwkfk45f50f.pdf", "seen_date": nil, "next_due_date": "2020-08-23", "template": { "id": 2821, "name": "Light Smoke" }, "extra_data": nil, "url": "y12h45rn9yf2mse0p43t7ec90vr.pdf", "locked": false, "has_ts_pay_pending_payment": false, "show_tspay_button": false, "pay_with_tspay_url": nil } }
45
+ @modify_issued_document_response_obj = { "data": { "id": 12345, "type": "receipt", "year": 2021, "numeration": "rec123", "subject": "", "visible_subject": "", "rc_center": "", "ei_cassa_type": nil, "ei_withholding_tax_causal": nil, "ei_other_withholding_tax_type": nil, "ei_other_withholding_tax_causal": nil, "stamp_duty": 0, "use_gross_prices": false, "e_invoice": false, "agyo_company_id": nil, "agyo_id": nil, "agyo_sent_at": nil, "delivery_note": false, "accompanying_invoice": false, "amount_net": 68.18, "amount_vat": 6.82, "amount_gross": 75, "amount_due_discount": 0, "amount_rivalsa": 0, "amount_cassa": 0, "amount_withholding_tax": 0, "amount_other_withholding_tax": 0, "permanent_token": "6pzguy12h45rn9yqwertp43t7ec90vr", "h_margins": 15, "v_margins": 16, "show_payment_method": false, "show_payments": true, "show_totals": "all", "show_notification_button": false, "is_marked": false, "created_at": "2021-08-13 09:30:20", "updated_at": "2021-08-23 05:34:20", "entity": { "id": 54321, "name": "Mary Red S.r.L.", "vat_number": "IT05432181211", "tax_code": "IT05432181211", "address_street": "Corso impero, 66", "address_postal_code": "20900", "address_city": "Milano", "address_province": "MI", "address_extra": "", "country": "Italia", "certified_email": "mary@pec.red.com", "ei_code": "ABCXCR1" }, "date": "2021-08-20", "number": 1, "currency": { "id": "EUR", "exchange_rate": "1.00000", "symbol": "\u20ac" }, "language": { "code": "it", "name": "Italiano" }, "notes": "", "rivalsa": 0, "cassa": 0, "withholding_tax": 0, "withholding_tax_taxable": 100, "other_withholding_tax": 0, "payment_method": { "id": 4, "name": "Credit card" }, "use_split_payment": false, "merged_in": nil, "original_document": nil, "items_list": [{ "product_id": 5432, "code": "SG3", "name": "Soggiorno", "measure": "", "net_price": 68.18182, "category": "", "id": 277876033, "gross_price": 75, "apply_withholding_taxes": true, "discount": 0, "discount_highlight": false, "in_dn": false, "qty": 1, "vat": { "id": 3, "value": 10, "description": "" }, "stock": false, "description": "", "not_taxable": false }], "payments_list": [{ "amount": 75, "due_date": "2020-08-23", "paid_date": nil, "id": 69078013, "payment_terms": { "days": 0, "type": "standard" }, "status": "not_paid", "payment_account": nil }], "attachment_url": "kdijrnf893hnwkfk45f50f.pdf", "seen_date": nil, "next_due_date": "2020-08-23", "template": { "id": 2821, "name": "Light Smoke" }, "extra_data": nil, "url": "y12h45rn9yf2mse0p43t7ec90vr.pdf", "locked": false, "has_ts_pay_pending_payment": false, "show_tspay_button": false, "pay_with_tspay_url": nil } }
46
46
  allow(@api_instance).to receive(:modify_issued_document) { @modify_issued_document_response_obj }
47
47
 
48
48
  @upload_issued_document_attachment_response_obj = { "data": { "attachment_token": "YmMyNWYxYzIwMTU3N2Y4ZGE3ZjZiMzg5OWY0ODNkZDQveXl5LmRvYw" } }
49
49
  allow(@api_instance).to receive(:upload_issued_document_attachment) { @upload_issued_document_attachment_response_obj }
50
50
 
51
- @transform_issued_document_response_obj = { "data": { "id": 12345, "type": "receipt", "year": 2021, "numeration": "rec123", "subject": "", "visible_subject": "", "rc_center": "", "ei_cassa_type": "", "ei_withholding_tax_causal": "a", "ei_other_withholding_tax_type": "a", "ei_other_withholding_tax_causal": "c", "stamp_duty": 0, "use_gross_prices": false, "e_invoice": false, "delivery_note": false, "accompanying_invoice": false, "amount_net": 68.18, "amount_vat": 6.82, "amount_gross": 75, "amount_due_discount": 1, "amount_rivalsa": 0, "amount_cassa": 0, "amount_withholding_tax": 0, "amount_other_withholding_tax": 0, "h_margins": 15, "v_margins": 16, "show_payment_method": false, "show_payments": true, "show_totals": "all", "show_paypal_button": true, "show_notification_button": false, "is_marked": false, "date": "2021-08-20", "number": 1, "notes": "", "rivalsa": 0, "cassa": 0, "withholding_tax": 0, "withholding_tax_taxable": 100, "other_withholding_tax": 0, "use_split_payment": false, "attachment_url": "kdijrnf893hnwkfk45f50f.pdf", "seen_date": "2020-08-23", "next_due_date": "2020-08-23", "url": "y12h45rn9yf2mse0p43t7ec90vr.pdf", "show_tspay_button": false, "dn_number": 3, "dn_date": "2020-10-21", "dn_ai_packages_number": 4, "dn_ai_weight": 3, "dn_ai_causal": "causal", "dn_ai_destination": "dest", "dn_ai_transporter": "trasp", "dn_ai_notes": "notes", "amount_rivalsa_taxable": 3, "amount_global_cassa_taxable": 3, "amount_cassa_taxable": 3, "amount_cassa2": 3, "amount_cassa2_taxable": 3, "amount_withholding_tax_taxable": 3, "amount_enasarco_taxable": 3, "amount_other_withholding_tax_taxable": 3, "ei_cassa2_type": 3, "attachment_token": "asdaosdjaoisndoa", "entity": { "id": 54321, "name": "Mary Red S.r.L.", "vat_number": "IT05432181211", "tax_code": "IT05432181211", "address_street": "Corso impero, 66", "address_postal_code": "20900", "address_city": "Milano", "address_province": "MI", "address_extra": "", "country": "Italia", "certified_email": "mary@pec.red.com", "ei_code": "ABCXCR1" }, "currency": { "id": "EUR", "exchange_rate": "1.00000", "symbol": "\u20ac" }, "language": { "code": "it", "name": "Italiano" }, "payment_method": { "id": 4, "name": "Credit card" }, "items_list": [{ "product_id": 5432, "code": "SG3", "name": "Soggiorno", "measure": "", "net_price": 68.18182, "category": "", "id": 277876033, "gross_price": 75, "apply_withholding_taxes": true, "discount": 0, "discount_highlight": false, "in_dn": false, "qty": 1, "vat": { "id": 3, "value": 10, "description": "" }, "stock": false, "description": "", "not_taxable": false }], "payments_list": [{ "amount": 75, "due_date": "2020-08-23", "paid_date": nil, "id": 69078013, "payment_terms": { "days": 0, "type": "standard" }, "status": "not_paid", "payment_account": nil }], "template": { "id": 2821, "name": "Light Smoke" }, "extra_data": { "ts_status": 1 }, "acc_inv_template": { "id": 4 }, "delivery_note_template": { "id": 54321 }, "ei_raw": { "prop": true }, "ei_data": { "bank_name": "Sao Paulo" } }, "options": { "create_from": ["82112399"], "transform": true, "keep_copy": true } }
51
+ @transform_issued_document_response_obj = { "data": { "id": 12345, "type": "receipt", "year": 2021, "numeration": "rec123", "subject": "", "visible_subject": "", "rc_center": "", "ei_cassa_type": "", "ei_withholding_tax_causal": "a", "ei_other_withholding_tax_type": "a", "ei_other_withholding_tax_causal": "c", "stamp_duty": 0, "use_gross_prices": false, "e_invoice": false, "delivery_note": false, "accompanying_invoice": false, "amount_net": 68.18, "amount_vat": 6.82, "amount_gross": 75, "amount_due_discount": 1, "amount_rivalsa": 0, "amount_cassa": 0, "amount_withholding_tax": 0, "amount_other_withholding_tax": 0, "h_margins": 15, "v_margins": 16, "show_payment_method": false, "show_payments": true, "show_totals": "all", "show_notification_button": false, "is_marked": false, "date": "2021-08-20", "number": 1, "notes": "", "rivalsa": 0, "cassa": 0, "withholding_tax": 0, "withholding_tax_taxable": 100, "other_withholding_tax": 0, "use_split_payment": false, "attachment_url": "kdijrnf893hnwkfk45f50f.pdf", "seen_date": "2020-08-23", "next_due_date": "2020-08-23", "url": "y12h45rn9yf2mse0p43t7ec90vr.pdf", "show_tspay_button": false, "dn_number": 3, "dn_date": "2020-10-21", "dn_ai_packages_number": 4, "dn_ai_weight": 3, "dn_ai_causal": "causal", "dn_ai_destination": "dest", "dn_ai_transporter": "trasp", "dn_ai_notes": "notes", "amount_rivalsa_taxable": 3, "amount_global_cassa_taxable": 3, "amount_cassa_taxable": 3, "amount_cassa2": 3, "amount_cassa2_taxable": 3, "amount_withholding_tax_taxable": 3, "amount_enasarco_taxable": 3, "amount_other_withholding_tax_taxable": 3, "ei_cassa2_type": 3, "attachment_token": "asdaosdjaoisndoa", "entity": { "id": 54321, "name": "Mary Red S.r.L.", "vat_number": "IT05432181211", "tax_code": "IT05432181211", "address_street": "Corso impero, 66", "address_postal_code": "20900", "address_city": "Milano", "address_province": "MI", "address_extra": "", "country": "Italia", "certified_email": "mary@pec.red.com", "ei_code": "ABCXCR1" }, "currency": { "id": "EUR", "exchange_rate": "1.00000", "symbol": "\u20ac" }, "language": { "code": "it", "name": "Italiano" }, "payment_method": { "id": 4, "name": "Credit card" }, "items_list": [{ "product_id": 5432, "code": "SG3", "name": "Soggiorno", "measure": "", "net_price": 68.18182, "category": "", "id": 277876033, "gross_price": 75, "apply_withholding_taxes": true, "discount": 0, "discount_highlight": false, "in_dn": false, "qty": 1, "vat": { "id": 3, "value": 10, "description": "" }, "stock": false, "description": "", "not_taxable": false }], "payments_list": [{ "amount": 75, "due_date": "2020-08-23", "paid_date": nil, "id": 69078013, "payment_terms": { "days": 0, "type": "standard" }, "status": "not_paid", "payment_account": nil }], "template": { "id": 2821, "name": "Light Smoke" }, "extra_data": { "ts_status": 1 }, "acc_inv_template": { "id": 4 }, "delivery_note_template": { "id": 54321 }, "ei_raw": { "prop": true }, "ei_data": { "bank_name": "Sao Paulo" } }, "options": { "create_from": ["82112399"], "transform": true, "keep_copy": true } }
52
52
  allow(@api_instance).to receive(:transform_issued_document) { @transform_issued_document_response_obj }
53
53
 
54
- @join_issued_documents_response_obj = { "data": { "id": 12345, "type": "receipt", "year": 2021, "numeration": "rec123", "subject": "", "visible_subject": "", "rc_center": "", "ei_cassa_type": "", "ei_withholding_tax_causal": "a", "ei_other_withholding_tax_type": "a", "ei_other_withholding_tax_causal": "c", "stamp_duty": 0, "use_gross_prices": false, "e_invoice": false, "delivery_note": false, "accompanying_invoice": false, "amount_net": 68.18, "amount_vat": 6.82, "amount_gross": 75, "amount_due_discount": 1, "amount_rivalsa": 0, "amount_cassa": 0, "amount_withholding_tax": 0, "amount_other_withholding_tax": 0, "h_margins": 15, "v_margins": 16, "show_payment_method": false, "show_payments": true, "show_totals": "all", "show_paypal_button": true, "show_notification_button": false, "is_marked": false, "date": "2021-08-20", "number": 1, "notes": "", "rivalsa": 0, "cassa": 0, "withholding_tax": 0, "withholding_tax_taxable": 100, "other_withholding_tax": 0, "use_split_payment": false, "attachment_url": "kdijrnf893hnwkfk45f50f.pdf", "seen_date": "2020-08-23", "next_due_date": "2020-08-23", "url": "y12h45rn9yf2mse0p43t7ec90vr.pdf", "show_tspay_button": false, "dn_number": 3, "dn_date": "2020-10-21", "dn_ai_packages_number": 4, "dn_ai_weight": 3, "dn_ai_causal": "causal", "dn_ai_destination": "dest", "dn_ai_transporter": "trasp", "dn_ai_notes": "notes", "amount_rivalsa_taxable": 3, "amount_global_cassa_taxable": 3, "amount_cassa_taxable": 3, "amount_cassa2": 3, "amount_cassa2_taxable": 3, "amount_withholding_tax_taxable": 3, "amount_enasarco_taxable": 3, "amount_other_withholding_tax_taxable": 3, "ei_cassa2_type": 3, "attachment_token": "asdaosdjaoisndoa", "entity": { "id": 54321, "name": "Mary Red S.r.L.", "vat_number": "IT05432181211", "tax_code": "IT05432181211", "address_street": "Corso impero, 66", "address_postal_code": "20900", "address_city": "Milano", "address_province": "MI", "address_extra": "", "country": "Italia", "certified_email": "mary@pec.red.com", "ei_code": "ABCXCR1" }, "currency": { "id": "EUR", "exchange_rate": "1.00000", "symbol": "\u20ac" }, "language": { "code": "it", "name": "Italiano" }, "payment_method": { "id": 4, "name": "Credit card" }, "items_list": [{ "product_id": 5432, "code": "SG3", "name": "Soggiorno", "measure": "", "net_price": 68.18182, "category": "", "id": 277876033, "gross_price": 75, "apply_withholding_taxes": true, "discount": 0, "discount_highlight": false, "in_dn": false, "qty": 1, "vat": { "id": 3, "value": 10, "description": "" }, "stock": false, "description": "", "not_taxable": false }], "payments_list": [{ "amount": 75, "due_date": "2020-08-23", "paid_date": nil, "id": 69078013, "payment_terms": { "days": 0, "type": "standard" }, "status": "not_paid", "payment_account": nil }], "template": { "id": 2821, "name": "Light Smoke" }, "extra_data": { "ts_status": 1 }, "acc_inv_template": { "id": 4 }, "delivery_note_template": { "id": 54321 }, "ei_raw": { "prop": true }, "ei_data": { "bank_name": "Sao Paulo" } }, "options": { "create_from": ["82112399", "82112400"] } }
54
+ @join_issued_documents_response_obj = { "data": { "id": 12345, "type": "receipt", "year": 2021, "numeration": "rec123", "subject": "", "visible_subject": "", "rc_center": "", "ei_cassa_type": "", "ei_withholding_tax_causal": "a", "ei_other_withholding_tax_type": "a", "ei_other_withholding_tax_causal": "c", "stamp_duty": 0, "use_gross_prices": false, "e_invoice": false, "delivery_note": false, "accompanying_invoice": false, "amount_net": 68.18, "amount_vat": 6.82, "amount_gross": 75, "amount_due_discount": 1, "amount_rivalsa": 0, "amount_cassa": 0, "amount_withholding_tax": 0, "amount_other_withholding_tax": 0, "h_margins": 15, "v_margins": 16, "show_payment_method": false, "show_payments": true, "show_totals": "all", "show_notification_button": false, "is_marked": false, "date": "2021-08-20", "number": 1, "notes": "", "rivalsa": 0, "cassa": 0, "withholding_tax": 0, "withholding_tax_taxable": 100, "other_withholding_tax": 0, "use_split_payment": false, "attachment_url": "kdijrnf893hnwkfk45f50f.pdf", "seen_date": "2020-08-23", "next_due_date": "2020-08-23", "url": "y12h45rn9yf2mse0p43t7ec90vr.pdf", "show_tspay_button": false, "dn_number": 3, "dn_date": "2020-10-21", "dn_ai_packages_number": 4, "dn_ai_weight": 3, "dn_ai_causal": "causal", "dn_ai_destination": "dest", "dn_ai_transporter": "trasp", "dn_ai_notes": "notes", "amount_rivalsa_taxable": 3, "amount_global_cassa_taxable": 3, "amount_cassa_taxable": 3, "amount_cassa2": 3, "amount_cassa2_taxable": 3, "amount_withholding_tax_taxable": 3, "amount_enasarco_taxable": 3, "amount_other_withholding_tax_taxable": 3, "ei_cassa2_type": 3, "attachment_token": "asdaosdjaoisndoa", "entity": { "id": 54321, "name": "Mary Red S.r.L.", "vat_number": "IT05432181211", "tax_code": "IT05432181211", "address_street": "Corso impero, 66", "address_postal_code": "20900", "address_city": "Milano", "address_province": "MI", "address_extra": "", "country": "Italia", "certified_email": "mary@pec.red.com", "ei_code": "ABCXCR1" }, "currency": { "id": "EUR", "exchange_rate": "1.00000", "symbol": "\u20ac" }, "language": { "code": "it", "name": "Italiano" }, "payment_method": { "id": 4, "name": "Credit card" }, "items_list": [{ "product_id": 5432, "code": "SG3", "name": "Soggiorno", "measure": "", "net_price": 68.18182, "category": "", "id": 277876033, "gross_price": 75, "apply_withholding_taxes": true, "discount": 0, "discount_highlight": false, "in_dn": false, "qty": 1, "vat": { "id": 3, "value": 10, "description": "" }, "stock": false, "description": "", "not_taxable": false }], "payments_list": [{ "amount": 75, "due_date": "2020-08-23", "paid_date": nil, "id": 69078013, "payment_terms": { "days": 0, "type": "standard" }, "status": "not_paid", "payment_account": nil }], "template": { "id": 2821, "name": "Light Smoke" }, "extra_data": { "ts_status": 1 }, "acc_inv_template": { "id": 4 }, "delivery_note_template": { "id": 54321 }, "ei_raw": { "prop": true }, "ei_data": { "bank_name": "Sao Paulo" } }, "options": { "create_from": ["82112399", "82112400"] } }
55
55
  allow(@api_instance).to receive(:join_issued_documents) { @join_issued_documents_response_obj }
56
56
  end
57
57
 
@@ -134,7 +134,7 @@ describe 'IssuedDocumentsApi' do
134
134
  # @param company_id The ID of the company.
135
135
  # @param document_id The ID of the document.
136
136
  # @param [Hash] opts the optional parameters
137
- # @option opts [GetExistingIssuedDocumentTotalsRequest] :get_existing_issued_document_totals_request
137
+ # @option opts [GetExistingIssuedDocumentTotalsRequest] :get_existing_issued_document_totals_request
138
138
  # @return [GetExistingIssuedDocumentTotalsResponse]
139
139
  describe 'get_existing_issued_document_totals test' do
140
140
  it 'should work' do
@@ -149,7 +149,7 @@ describe 'IssuedDocumentsApi' do
149
149
 
150
150
  # unit tests for get_issued_document
151
151
  # Get Issued Document
152
- # Gets the specified document.
152
+ # Gets the specified document.
153
153
  # @param company_id The ID of the company.
154
154
  # @param document_id The ID of the document.
155
155
  # @param [Hash] opts the optional parameters
@@ -190,7 +190,7 @@ describe 'IssuedDocumentsApi' do
190
190
  # Returns the totals for a new document.
191
191
  # @param company_id The ID of the company.
192
192
  # @param [Hash] opts the optional parameters
193
- # @option opts [GetNewIssuedDocumentTotalsRequest] :get_new_issued_document_totals_request
193
+ # @option opts [GetNewIssuedDocumentTotalsRequest] :get_new_issued_document_totals_request
194
194
  # @return [GetNewIssuedDocumentTotalsResponse]
195
195
  describe 'get_new_issued_document_totals test' do
196
196
  it 'should work' do
@@ -19,6 +19,8 @@ describe FattureInCloud_Ruby_Sdk::Operator do
19
19
  expect(FattureInCloud_Ruby_Sdk::Operator::IS_NOT).to eq('is not')
20
20
  expect(FattureInCloud_Ruby_Sdk::Operator::LIKE).to eq('like')
21
21
  expect(FattureInCloud_Ruby_Sdk::Operator::CONTAINS).to eq('contains')
22
+ expect(FattureInCloud_Ruby_Sdk::Operator::NOT_LIKE).to eq('not like')
23
+ expect(FattureInCloud_Ruby_Sdk::Operator::NOT_CONTAINS).to eq('not contains')
22
24
  expect(FattureInCloud_Ruby_Sdk::Operator::STARTS_WITH).to eq('starts with')
23
25
  expect(FattureInCloud_Ruby_Sdk::Operator::ENDS_WITH).to eq('ends with')
24
26
  end
@@ -22,6 +22,7 @@ describe FattureInCloud_Ruby_Sdk::Company do
22
22
  instance.id = 12345
23
23
  instance.name = "Studio Commercialista"
24
24
  instance.tax_code = "ABCSFN94T17A794K"
25
+ instance.vat_number = "IT12345640962"
25
26
  instance.type = "accountant"
26
27
  instance.access_token = "4ff5f0fe5abcd1d7157fa13ca72ab62b6183db0667a576a0e19164801c18c4f7362a848fa32dbb8c3a3f94c34f3df95"
27
28
  instance.connection_id = 94566
@@ -78,6 +79,12 @@ describe FattureInCloud_Ruby_Sdk::Company do
78
79
  end
79
80
  end
80
81
 
82
+ describe 'test attribute "vat_number"' do
83
+ it 'should work' do
84
+ expect(instance.vat_number).to be_a_kind_of(String)
85
+ end
86
+ end
87
+
81
88
  describe 'test attribute "controlled_companies"' do
82
89
  it 'should work' do
83
90
  expect(instance.controlled_companies).to be_a_kind_of(Array)
@@ -45,7 +45,6 @@ describe FattureInCloud_Ruby_Sdk::CreateIssuedDocumentResponse do
45
45
  show_payment_method: false,
46
46
  show_payments: true,
47
47
  show_totals: "all",
48
- show_paypal_button: true,
49
48
  show_notification_button: false,
50
49
  is_marked: false,
51
50
  entity: {
@@ -132,7 +131,7 @@ describe FattureInCloud_Ruby_Sdk::CreateIssuedDocumentResponse do
132
131
  url: "y12h45rn9yf2mse0p43t7ec90vr.pdf",
133
132
  show_tspay_button: false
134
133
  }
135
-
134
+
136
135
  describe 'test an instance of CreateIssuedDocumentResponse' do
137
136
  it 'should create an instance of CreateIssuedDocumentResponse' do
138
137
  expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::CreateIssuedDocumentResponse)
@@ -45,7 +45,6 @@ describe FattureInCloud_Ruby_Sdk::GetIssuedDocumentResponse do
45
45
  show_payment_method: false,
46
46
  show_payments: true,
47
47
  show_totals: "all",
48
- show_paypal_button: true,
49
48
  show_notification_button: false,
50
49
  is_marked: false,
51
50
  entity: {
@@ -45,7 +45,6 @@ describe FattureInCloud_Ruby_Sdk::GetNewIssuedDocumentTotalsRequest do
45
45
  show_payment_method: false,
46
46
  show_payments: true,
47
47
  show_totals: "all",
48
- show_paypal_button: true,
49
48
  show_notification_button: false,
50
49
  is_marked: false,
51
50
  entity: {
@@ -19,7 +19,6 @@ require 'date'
19
19
  # Please update as you see appropriate
20
20
  describe FattureInCloud_Ruby_Sdk::IssuedDocumentExtraData do
21
21
  instance = FattureInCloud_Ruby_Sdk::IssuedDocumentExtraData.new
22
- instance.show_sofort_button = true
23
22
  instance.multifatture_sent = 3
24
23
  instance.ts_communication = true
25
24
  instance.ts_flag_tipo_spesa = 1
@@ -37,11 +36,6 @@ describe FattureInCloud_Ruby_Sdk::IssuedDocumentExtraData do
37
36
  expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::IssuedDocumentExtraData)
38
37
  end
39
38
  end
40
- describe 'test attribute "show_sofort_button"' do
41
- it 'should work' do
42
- expect(instance.show_sofort_button).to be(true).or be(false)
43
- end
44
- end
45
39
 
46
40
  describe 'test attribute "multifatture_sent"' do
47
41
  it 'should work' do
@@ -48,7 +48,6 @@ describe FattureInCloud_Ruby_Sdk::IssuedDocument do
48
48
  instance.show_payment_method = false
49
49
  instance.show_payments = true
50
50
  instance.show_totals = "all"
51
- instance.show_paypal_button = true
52
51
  instance.show_notification_button = false
53
52
  instance.is_marked = false
54
53
  instance.date = Date.new(2021, 12, 21)
@@ -372,12 +371,6 @@ describe FattureInCloud_Ruby_Sdk::IssuedDocument do
372
371
  end
373
372
  end
374
373
 
375
- describe 'test attribute "show_paypal_button"' do
376
- it 'should work' do
377
- expect(instance.show_paypal_button).to be(true).or be(false)
378
- end
379
- end
380
-
381
374
  describe 'test attribute "show_notification_button"' do
382
375
  it 'should work' do
383
376
  expect(instance.show_notification_button).to be(true).or be(false)
@@ -46,7 +46,6 @@ describe FattureInCloud_Ruby_Sdk::ListIssuedDocumentsResponsePage do
46
46
  show_payment_method: false,
47
47
  show_payments: true,
48
48
  show_totals: "all",
49
- show_paypal_button: true,
50
49
  show_notification_button: false,
51
50
  is_marked: false,
52
51
  entity: {
@@ -57,7 +57,6 @@ describe FattureInCloud_Ruby_Sdk::ListIssuedDocumentsResponse do
57
57
  show_payment_method: false,
58
58
  show_payments: true,
59
59
  show_totals: "all",
60
- show_paypal_button: true,
61
60
  show_notification_button: false,
62
61
  is_marked: false,
63
62
  entity: {
@@ -144,7 +143,7 @@ describe FattureInCloud_Ruby_Sdk::ListIssuedDocumentsResponse do
144
143
  url: "y12h45rn9yf2mse0p43t7ec90vr.pdf",
145
144
  show_tspay_button: false
146
145
  }
147
- ]
146
+ ]
148
147
 
149
148
  describe 'test an instance of ListIssuedDocumentsResponse' do
150
149
  it 'should create an instance of ListIssuedDocumentsResponse' do
@@ -45,7 +45,6 @@ describe FattureInCloud_Ruby_Sdk::ModifyIssuedDocumentRequest do
45
45
  show_payment_method: false,
46
46
  show_payments: true,
47
47
  show_totals: "all",
48
- show_paypal_button: true,
49
48
  show_notification_button: false,
50
49
  is_marked: false,
51
50
  entity: {
@@ -45,7 +45,6 @@ describe FattureInCloud_Ruby_Sdk::ModifyIssuedDocumentResponse do
45
45
  show_payment_method: false,
46
46
  show_payments: true,
47
47
  show_totals: "all",
48
- show_paypal_button: true,
49
48
  show_notification_button: false,
50
49
  is_marked: false,
51
50
  entity: {
@@ -131,7 +130,7 @@ describe FattureInCloud_Ruby_Sdk::ModifyIssuedDocumentResponse do
131
130
  },
132
131
  url: "y12h45rn9yf2mse0p43t7ec90vr.pdf"
133
132
  }
134
-
133
+
135
134
  describe 'test an instance of ModifyIssuedDocumentResponse' do
136
135
  it 'should create an instance of ModifyIssuedDocumentResponse' do
137
136
  expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::ModifyIssuedDocumentResponse)
data/spec/spec_helper.rb CHANGED
@@ -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.0.33
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