fattureincloud_ruby_sdk 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (741) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +5 -0
  3. data/Gemfile +9 -0
  4. data/LICENSE +21 -0
  5. data/README.md +421 -0
  6. data/Rakefile +10 -0
  7. data/docs/ArchiveApi.md +464 -0
  8. data/docs/ArchiveDocument.md +13 -0
  9. data/docs/CashbookApi.md +388 -0
  10. data/docs/CashbookEntry.md +49 -0
  11. data/docs/CashbookEntryData.md +14 -0
  12. data/docs/CashbookEntryDataDocument.md +10 -0
  13. data/docs/CashbookEntryIn.md +16 -0
  14. data/docs/CashbookEntryInData.md +9 -0
  15. data/docs/CashbookEntryInOut.md +18 -0
  16. data/docs/CashbookEntryKind.md +7 -0
  17. data/docs/CashbookEntryOut.md +16 -0
  18. data/docs/CashbookEntryOutData.md +9 -0
  19. data/docs/CashbookEntryType.md +7 -0
  20. data/docs/City.md +10 -0
  21. data/docs/Client.md +39 -0
  22. data/docs/ClientType.md +7 -0
  23. data/docs/ClientsApi.md +388 -0
  24. data/docs/CompaniesApi.md +77 -0
  25. data/docs/Company.md +14 -0
  26. data/docs/CompanyInfo.md +15 -0
  27. data/docs/CompanyInfoAccessInfo.md +10 -0
  28. data/docs/CompanyInfoPlanInfo.md +10 -0
  29. data/docs/CompanyInfoPlanInfoFunctions.md +25 -0
  30. data/docs/CompanyInfoPlanInfoFunctionsStatus.md +9 -0
  31. data/docs/CompanyInfoPlanInfoLimits.md +11 -0
  32. data/docs/CompanyType.md +7 -0
  33. data/docs/CreateArchiveDocumentRequest.md +8 -0
  34. data/docs/CreateArchiveDocumentResponse.md +8 -0
  35. data/docs/CreateCashbookEntryRequest.md +8 -0
  36. data/docs/CreateCashbookEntryResponse.md +8 -0
  37. data/docs/CreateClientRequest.md +8 -0
  38. data/docs/CreateClientResponse.md +8 -0
  39. data/docs/CreateF24Request.md +8 -0
  40. data/docs/CreateF24Response.md +8 -0
  41. data/docs/CreateIssuedDocumentRequest.md +8 -0
  42. data/docs/CreateIssuedDocumentResponse.md +8 -0
  43. data/docs/CreatePaymentAccountRequest.md +8 -0
  44. data/docs/CreatePaymentAccountResponse.md +8 -0
  45. data/docs/CreatePaymentMethodRequest.md +8 -0
  46. data/docs/CreatePaymentMethodResponse.md +8 -0
  47. data/docs/CreateProductRequest.md +8 -0
  48. data/docs/CreateProductResponse.md +8 -0
  49. data/docs/CreateReceiptRequest.md +9 -0
  50. data/docs/CreateReceiptResponse.md +8 -0
  51. data/docs/CreateReceivedDocumentRequest.md +9 -0
  52. data/docs/CreateReceivedDocumentResponse.md +8 -0
  53. data/docs/CreateSupplierRequest.md +8 -0
  54. data/docs/CreateSupplierResponse.md +8 -0
  55. data/docs/CreateVatTypeRequest.md +8 -0
  56. data/docs/CreateVatTypeResponse.md +8 -0
  57. data/docs/Currency.md +11 -0
  58. data/docs/DefaultPaymentTermsType.md +7 -0
  59. data/docs/DocumentTemplate.md +10 -0
  60. data/docs/EmailData.md +18 -0
  61. data/docs/EmailDataDefaultSenderEmail.md +9 -0
  62. data/docs/EmailDataSenderEmailsList.md +9 -0
  63. data/docs/EmailSchedule.md +15 -0
  64. data/docs/EmailScheduleInclude.md +11 -0
  65. data/docs/Entity.md +49 -0
  66. data/docs/F24.md +15 -0
  67. data/docs/F24Status.md +7 -0
  68. data/docs/FunctionStatus.md +8 -0
  69. data/docs/GetArchiveDocumentResponse.md +8 -0
  70. data/docs/GetCashbookEntryResponse.md +8 -0
  71. data/docs/GetClientResponse.md +8 -0
  72. data/docs/GetCompanyInfoResponse.md +8 -0
  73. data/docs/GetEmailDataResponse.md +8 -0
  74. data/docs/GetExistingIssuedDocumentTotalsRequest.md +8 -0
  75. data/docs/GetExistingIssuedDocumentTotalsResponse.md +8 -0
  76. data/docs/GetExistingReceivedDocumentTotalsRequest.md +8 -0
  77. data/docs/GetExistingReceivedDocumentTotalsResponse.md +8 -0
  78. data/docs/GetF24Response.md +8 -0
  79. data/docs/GetIssuedDocumentPreCreateInfoResponse.md +8 -0
  80. data/docs/GetIssuedDocumentResponse.md +8 -0
  81. data/docs/GetNewIssuedDocumentTotalsRequest.md +8 -0
  82. data/docs/GetNewIssuedDocumentTotalsResponse.md +8 -0
  83. data/docs/GetNewReceivedDocumentTotalsRequest.md +8 -0
  84. data/docs/GetNewReceivedDocumentTotalsResponse.md +8 -0
  85. data/docs/GetPaymentAccountResponse.md +8 -0
  86. data/docs/GetPaymentMethodResponse.md +8 -0
  87. data/docs/GetProductResponse.md +8 -0
  88. data/docs/GetReceiptPreCreateInfoResponse.md +8 -0
  89. data/docs/GetReceiptResponse.md +8 -0
  90. data/docs/GetReceiptsMonthlyTotalsResponse.md +8 -0
  91. data/docs/GetReceivedDocumentPreCreateInfoResponse.md +8 -0
  92. data/docs/GetReceivedDocumentResponse.md +8 -0
  93. data/docs/GetSupplierResponse.md +8 -0
  94. data/docs/GetUserInfoResponse.md +10 -0
  95. data/docs/GetUserInfoResponseEmailConfirmationState.md +8 -0
  96. data/docs/GetUserInfoResponseInfo.md +10 -0
  97. data/docs/GetVatTypeResponse.md +8 -0
  98. data/docs/InfoApi.md +1072 -0
  99. data/docs/IssuedDocument.md +84 -0
  100. data/docs/IssuedDocumentEiData.md +19 -0
  101. data/docs/IssuedDocumentExtraData.md +20 -0
  102. data/docs/IssuedDocumentItemsList.md +23 -0
  103. data/docs/IssuedDocumentPaymentsList.md +13 -0
  104. data/docs/IssuedDocumentPreCreateInfo.md +20 -0
  105. data/docs/IssuedDocumentPreCreateInfoDefaultValues.md +18 -0
  106. data/docs/IssuedDocumentPreCreateInfoExtraDataDefaultValues.md +11 -0
  107. data/docs/IssuedDocumentPreCreateInfoItemsDefaultValues.md +8 -0
  108. data/docs/IssuedDocumentRefersTo.md +12 -0
  109. data/docs/IssuedDocumentStatus.md +7 -0
  110. data/docs/IssuedDocumentTotals.md +24 -0
  111. data/docs/IssuedDocumentTotalsVatList.md +8 -0
  112. data/docs/IssuedDocumentTotalsVatListVatItem.md +9 -0
  113. data/docs/IssuedDocumentType.md +7 -0
  114. data/docs/IssuedDocumentsApi.md +906 -0
  115. data/docs/IssuedEInvoicesApi.md +155 -0
  116. data/docs/Language.md +9 -0
  117. data/docs/ListArchiveCategoriesResponse.md +8 -0
  118. data/docs/ListArchiveDocumentsResponse.md +19 -0
  119. data/docs/ListArchiveDocumentsResponsePage.md +8 -0
  120. data/docs/ListCashbookEntriesResponse.md +8 -0
  121. data/docs/ListCitiesResponse.md +8 -0
  122. data/docs/ListClientsResponse.md +19 -0
  123. data/docs/ListClientsResponsePage.md +8 -0
  124. data/docs/ListCostCentersResponse.md +8 -0
  125. data/docs/ListCountriesResponse.md +8 -0
  126. data/docs/ListCurrenciesResponse.md +8 -0
  127. data/docs/ListDeliveryNotesDefaultCausalsResponse.md +8 -0
  128. data/docs/ListF24Response.md +20 -0
  129. data/docs/ListF24ResponseAggregatedData.md +8 -0
  130. data/docs/ListF24ResponseAggregatedDataAggregatedData.md +8 -0
  131. data/docs/ListF24ResponsePage.md +8 -0
  132. data/docs/ListIssuedDocumentsResponse.md +19 -0
  133. data/docs/ListIssuedDocumentsResponsePage.md +8 -0
  134. data/docs/ListLanguagesResponse.md +8 -0
  135. data/docs/ListPaymentAccountsResponse.md +8 -0
  136. data/docs/ListPaymentMethodsResponse.md +8 -0
  137. data/docs/ListProductCategoriesResponse.md +8 -0
  138. data/docs/ListProductsResponse.md +19 -0
  139. data/docs/ListProductsResponsePage.md +8 -0
  140. data/docs/ListReceiptsResponse.md +19 -0
  141. data/docs/ListReceiptsResponsePage.md +8 -0
  142. data/docs/ListReceivedDocumentCategoriesResponse.md +8 -0
  143. data/docs/ListReceivedDocumentsResponse.md +19 -0
  144. data/docs/ListReceivedDocumentsResponsePage.md +8 -0
  145. data/docs/ListRevenueCentersResponse.md +8 -0
  146. data/docs/ListSuppliersResponse.md +19 -0
  147. data/docs/ListSuppliersResponsePage.md +8 -0
  148. data/docs/ListTemplatesResponse.md +8 -0
  149. data/docs/ListUnitsOfMeasureResponse.md +8 -0
  150. data/docs/ListUserCompaniesResponse.md +8 -0
  151. data/docs/ListUserCompaniesResponseData.md +8 -0
  152. data/docs/ListVatTypesResponse.md +8 -0
  153. data/docs/ModifyArchiveDocumentRequest.md +8 -0
  154. data/docs/ModifyArchiveDocumentResponse.md +8 -0
  155. data/docs/ModifyCashbookEntryRequest.md +8 -0
  156. data/docs/ModifyCashbookEntryResponse.md +8 -0
  157. data/docs/ModifyClientRequest.md +8 -0
  158. data/docs/ModifyClientResponse.md +8 -0
  159. data/docs/ModifyF24Request.md +8 -0
  160. data/docs/ModifyF24Response.md +8 -0
  161. data/docs/ModifyIssuedDocumentRequest.md +8 -0
  162. data/docs/ModifyIssuedDocumentResponse.md +8 -0
  163. data/docs/ModifyPaymentAccountRequest.md +8 -0
  164. data/docs/ModifyPaymentAccountResponse.md +8 -0
  165. data/docs/ModifyPaymentMethodRequest.md +8 -0
  166. data/docs/ModifyPaymentMethodResponse.md +8 -0
  167. data/docs/ModifyProductRequest.md +8 -0
  168. data/docs/ModifyProductResponse.md +8 -0
  169. data/docs/ModifyReceiptRequest.md +8 -0
  170. data/docs/ModifyReceiptResponse.md +8 -0
  171. data/docs/ModifyReceivedDocumentRequest.md +8 -0
  172. data/docs/ModifyReceivedDocumentResponse.md +8 -0
  173. data/docs/ModifySupplierRequest.md +8 -0
  174. data/docs/ModifySupplierResponse.md +8 -0
  175. data/docs/ModifyVatTypeRequest.md +8 -0
  176. data/docs/ModifyVatTypeResponse.md +8 -0
  177. data/docs/MonthlyTotal.md +10 -0
  178. data/docs/OriginalDocumentType.md +7 -0
  179. data/docs/Pagination.md +18 -0
  180. data/docs/PaymentAccount.md +14 -0
  181. data/docs/PaymentAccountType.md +7 -0
  182. data/docs/PaymentMethod.md +17 -0
  183. data/docs/PaymentMethodDetails.md +9 -0
  184. data/docs/PaymentMethodType.md +7 -0
  185. data/docs/PermissionLevel.md +7 -0
  186. data/docs/Permissions.md +32 -0
  187. data/docs/PermissionsFicIssuedDocumentsDetailed.md +17 -0
  188. data/docs/Product.md +26 -0
  189. data/docs/ProductsApi.md +388 -0
  190. data/docs/Receipt.md +22 -0
  191. data/docs/ReceiptItemsListItem.md +12 -0
  192. data/docs/ReceiptPreCreateInfo.md +13 -0
  193. data/docs/ReceiptType.md +7 -0
  194. data/docs/ReceiptsApi.md +532 -0
  195. data/docs/ReceivedDocument.md +33 -0
  196. data/docs/ReceivedDocumentEntity.md +9 -0
  197. data/docs/ReceivedDocumentInfo.md +14 -0
  198. data/docs/ReceivedDocumentInfoDefaultValues.md +8 -0
  199. data/docs/ReceivedDocumentInfoItemsDefaultValues.md +8 -0
  200. data/docs/ReceivedDocumentItemsList.md +17 -0
  201. data/docs/ReceivedDocumentPaymentTerms.md +9 -0
  202. data/docs/ReceivedDocumentPaymentsList.md +14 -0
  203. data/docs/ReceivedDocumentTotals.md +14 -0
  204. data/docs/ReceivedDocumentType.md +7 -0
  205. data/docs/ReceivedDocumentsApi.md +759 -0
  206. data/docs/ScheduleEmailRequest.md +8 -0
  207. data/docs/SendEInvoiceRequest.md +8 -0
  208. data/docs/SendEInvoiceRequestData.md +9 -0
  209. data/docs/SendEInvoiceResponse.md +8 -0
  210. data/docs/SendEInvoiceResponseData.md +9 -0
  211. data/docs/SettingsApi.md +898 -0
  212. data/docs/ShowTotalsMode.md +7 -0
  213. data/docs/Supplier.md +29 -0
  214. data/docs/SupplierType.md +7 -0
  215. data/docs/SuppliersApi.md +388 -0
  216. data/docs/TaxesApi.md +535 -0
  217. data/docs/UploadArchiveAttachmentResponse.md +8 -0
  218. data/docs/UploadF24AttachmentResponse.md +8 -0
  219. data/docs/UploadIssuedDocumentAttachmentResponse.md +8 -0
  220. data/docs/UploadIssuedDocumentAttachmentResponseData.md +8 -0
  221. data/docs/UploadReceivedDocumentAttachmentResponse.md +8 -0
  222. data/docs/UploadReceivedDocumentAttachmentResponseData.md +8 -0
  223. data/docs/User.md +14 -0
  224. data/docs/UserApi.md +141 -0
  225. data/docs/UserCompanyRole.md +7 -0
  226. data/docs/VatKind.md +7 -0
  227. data/docs/VatType.md +16 -0
  228. data/docs/VerifyEInvoiceXmlErrorResponse.md +9 -0
  229. data/docs/VerifyEInvoiceXmlErrorResponseError.md +9 -0
  230. data/docs/VerifyEInvoiceXmlErrorResponseExtra.md +8 -0
  231. data/docs/VerifyEInvoiceXmlResponse.md +8 -0
  232. data/docs/VerifyEInvoiceXmlResponseData.md +8 -0
  233. data/fattureincloud_ruby_sdk.gemspec +38 -0
  234. data/lib/fattureincloud_ruby_sdk/api/archive_api.rb +470 -0
  235. data/lib/fattureincloud_ruby_sdk/api/cashbook_api.rb +404 -0
  236. data/lib/fattureincloud_ruby_sdk/api/clients_api.rb +396 -0
  237. data/lib/fattureincloud_ruby_sdk/api/companies_api.rb +85 -0
  238. data/lib/fattureincloud_ruby_sdk/api/info_api.rb +986 -0
  239. data/lib/fattureincloud_ruby_sdk/api/issued_documents_api.rb +913 -0
  240. data/lib/fattureincloud_ruby_sdk/api/issued_e_invoices_api.rb +167 -0
  241. data/lib/fattureincloud_ruby_sdk/api/products_api.rb +396 -0
  242. data/lib/fattureincloud_ruby_sdk/api/receipts_api.rb +541 -0
  243. data/lib/fattureincloud_ruby_sdk/api/received_documents_api.rb +770 -0
  244. data/lib/fattureincloud_ruby_sdk/api/settings_api.rb +888 -0
  245. data/lib/fattureincloud_ruby_sdk/api/suppliers_api.rb +396 -0
  246. data/lib/fattureincloud_ruby_sdk/api/taxes_api.rb +537 -0
  247. data/lib/fattureincloud_ruby_sdk/api/user_api.rb +136 -0
  248. data/lib/fattureincloud_ruby_sdk/api_client.rb +390 -0
  249. data/lib/fattureincloud_ruby_sdk/api_error.rb +57 -0
  250. data/lib/fattureincloud_ruby_sdk/configuration.rb +278 -0
  251. data/lib/fattureincloud_ruby_sdk/models/archive_document.rb +284 -0
  252. data/lib/fattureincloud_ruby_sdk/models/cashbook_entry.rb +105 -0
  253. data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_data.rb +302 -0
  254. data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_data_document.rb +239 -0
  255. data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_in.rb +330 -0
  256. data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_in_data.rb +229 -0
  257. data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_in_out.rb +350 -0
  258. data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_kind.rb +40 -0
  259. data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_out.rb +330 -0
  260. data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_out_data.rb +229 -0
  261. data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_type.rb +37 -0
  262. data/lib/fattureincloud_ruby_sdk/models/city.rb +254 -0
  263. data/lib/fattureincloud_ruby_sdk/models/client.rb +537 -0
  264. data/lib/fattureincloud_ruby_sdk/models/client_type.rb +39 -0
  265. data/lib/fattureincloud_ruby_sdk/models/company.rb +281 -0
  266. data/lib/fattureincloud_ruby_sdk/models/company_info.rb +288 -0
  267. data/lib/fattureincloud_ruby_sdk/models/company_info_access_info.rb +236 -0
  268. data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info.rb +236 -0
  269. data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_functions.rb +373 -0
  270. data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_functions_status.rb +227 -0
  271. data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_limits.rb +246 -0
  272. data/lib/fattureincloud_ruby_sdk/models/company_type.rb +37 -0
  273. data/lib/fattureincloud_ruby_sdk/models/create_archive_document_request.rb +219 -0
  274. data/lib/fattureincloud_ruby_sdk/models/create_archive_document_response.rb +219 -0
  275. data/lib/fattureincloud_ruby_sdk/models/create_cashbook_entry_request.rb +219 -0
  276. data/lib/fattureincloud_ruby_sdk/models/create_cashbook_entry_response.rb +219 -0
  277. data/lib/fattureincloud_ruby_sdk/models/create_client_request.rb +218 -0
  278. data/lib/fattureincloud_ruby_sdk/models/create_client_response.rb +218 -0
  279. data/lib/fattureincloud_ruby_sdk/models/create_f24_request.rb +219 -0
  280. data/lib/fattureincloud_ruby_sdk/models/create_f24_response.rb +219 -0
  281. data/lib/fattureincloud_ruby_sdk/models/create_issued_document_request.rb +218 -0
  282. data/lib/fattureincloud_ruby_sdk/models/create_issued_document_response.rb +218 -0
  283. data/lib/fattureincloud_ruby_sdk/models/create_payment_account_request.rb +219 -0
  284. data/lib/fattureincloud_ruby_sdk/models/create_payment_account_response.rb +219 -0
  285. data/lib/fattureincloud_ruby_sdk/models/create_payment_method_request.rb +218 -0
  286. data/lib/fattureincloud_ruby_sdk/models/create_payment_method_response.rb +218 -0
  287. data/lib/fattureincloud_ruby_sdk/models/create_product_request.rb +218 -0
  288. data/lib/fattureincloud_ruby_sdk/models/create_product_response.rb +218 -0
  289. data/lib/fattureincloud_ruby_sdk/models/create_receipt_request.rb +229 -0
  290. data/lib/fattureincloud_ruby_sdk/models/create_receipt_response.rb +219 -0
  291. data/lib/fattureincloud_ruby_sdk/models/create_received_document_request.rb +234 -0
  292. data/lib/fattureincloud_ruby_sdk/models/create_received_document_response.rb +219 -0
  293. data/lib/fattureincloud_ruby_sdk/models/create_supplier_request.rb +218 -0
  294. data/lib/fattureincloud_ruby_sdk/models/create_supplier_response.rb +218 -0
  295. data/lib/fattureincloud_ruby_sdk/models/create_vat_type_request.rb +219 -0
  296. data/lib/fattureincloud_ruby_sdk/models/create_vat_type_response.rb +219 -0
  297. data/lib/fattureincloud_ruby_sdk/models/currency.rb +251 -0
  298. data/lib/fattureincloud_ruby_sdk/models/default_payment_terms_type.rb +37 -0
  299. data/lib/fattureincloud_ruby_sdk/models/document_template.rb +239 -0
  300. data/lib/fattureincloud_ruby_sdk/models/email_data.rb +376 -0
  301. data/lib/fattureincloud_ruby_sdk/models/email_data_default_sender_email.rb +240 -0
  302. data/lib/fattureincloud_ruby_sdk/models/email_data_sender_emails_list.rb +239 -0
  303. data/lib/fattureincloud_ruby_sdk/models/email_schedule.rb +318 -0
  304. data/lib/fattureincloud_ruby_sdk/models/email_schedule_include.rb +269 -0
  305. data/lib/fattureincloud_ruby_sdk/models/entity.rb +105 -0
  306. data/lib/fattureincloud_ruby_sdk/models/f24.rb +305 -0
  307. data/lib/fattureincloud_ruby_sdk/models/f24_status.rb +38 -0
  308. data/lib/fattureincloud_ruby_sdk/models/function_status.rb +218 -0
  309. data/lib/fattureincloud_ruby_sdk/models/get_archive_document_response.rb +219 -0
  310. data/lib/fattureincloud_ruby_sdk/models/get_cashbook_entry_response.rb +219 -0
  311. data/lib/fattureincloud_ruby_sdk/models/get_client_response.rb +218 -0
  312. data/lib/fattureincloud_ruby_sdk/models/get_company_info_response.rb +219 -0
  313. data/lib/fattureincloud_ruby_sdk/models/get_email_data_response.rb +218 -0
  314. data/lib/fattureincloud_ruby_sdk/models/get_existing_issued_document_totals_request.rb +218 -0
  315. data/lib/fattureincloud_ruby_sdk/models/get_existing_issued_document_totals_response.rb +219 -0
  316. data/lib/fattureincloud_ruby_sdk/models/get_existing_received_document_totals_request.rb +219 -0
  317. data/lib/fattureincloud_ruby_sdk/models/get_existing_received_document_totals_response.rb +219 -0
  318. data/lib/fattureincloud_ruby_sdk/models/get_f24_response.rb +218 -0
  319. data/lib/fattureincloud_ruby_sdk/models/get_issued_document_pre_create_info_response.rb +218 -0
  320. data/lib/fattureincloud_ruby_sdk/models/get_issued_document_response.rb +218 -0
  321. data/lib/fattureincloud_ruby_sdk/models/get_new_issued_document_totals_request.rb +218 -0
  322. data/lib/fattureincloud_ruby_sdk/models/get_new_issued_document_totals_response.rb +219 -0
  323. data/lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_request.rb +219 -0
  324. data/lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_response.rb +219 -0
  325. data/lib/fattureincloud_ruby_sdk/models/get_payment_account_response.rb +219 -0
  326. data/lib/fattureincloud_ruby_sdk/models/get_payment_method_response.rb +218 -0
  327. data/lib/fattureincloud_ruby_sdk/models/get_product_response.rb +218 -0
  328. data/lib/fattureincloud_ruby_sdk/models/get_receipt_pre_create_info_response.rb +219 -0
  329. data/lib/fattureincloud_ruby_sdk/models/get_receipt_response.rb +219 -0
  330. data/lib/fattureincloud_ruby_sdk/models/get_receipts_monthly_totals_response.rb +221 -0
  331. data/lib/fattureincloud_ruby_sdk/models/get_received_document_pre_create_info_response.rb +219 -0
  332. data/lib/fattureincloud_ruby_sdk/models/get_received_document_response.rb +219 -0
  333. data/lib/fattureincloud_ruby_sdk/models/get_supplier_response.rb +218 -0
  334. data/lib/fattureincloud_ruby_sdk/models/get_user_info_response.rb +237 -0
  335. data/lib/fattureincloud_ruby_sdk/models/get_user_info_response_email_confirmation_state.rb +218 -0
  336. data/lib/fattureincloud_ruby_sdk/models/get_user_info_response_info.rb +236 -0
  337. data/lib/fattureincloud_ruby_sdk/models/get_vat_type_response.rb +219 -0
  338. data/lib/fattureincloud_ruby_sdk/models/issued_document.rb +1114 -0
  339. data/lib/fattureincloud_ruby_sdk/models/issued_document_ei_data.rb +342 -0
  340. data/lib/fattureincloud_ruby_sdk/models/issued_document_extra_data.rb +342 -0
  341. data/lib/fattureincloud_ruby_sdk/models/issued_document_items_list.rb +400 -0
  342. data/lib/fattureincloud_ruby_sdk/models/issued_document_payments_list.rb +271 -0
  343. data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info.rb +352 -0
  344. data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_default_values.rb +316 -0
  345. data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_extra_data_default_values.rb +245 -0
  346. data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_items_default_values.rb +220 -0
  347. data/lib/fattureincloud_ruby_sdk/models/issued_document_refers_to.rb +260 -0
  348. data/lib/fattureincloud_ruby_sdk/models/issued_document_status.rb +38 -0
  349. data/lib/fattureincloud_ruby_sdk/models/issued_document_totals.rb +408 -0
  350. data/lib/fattureincloud_ruby_sdk/models/issued_document_totals_vat_list.rb +218 -0
  351. data/lib/fattureincloud_ruby_sdk/models/issued_document_totals_vat_list_vat_item.rb +227 -0
  352. data/lib/fattureincloud_ruby_sdk/models/issued_document_type.rb +44 -0
  353. data/lib/fattureincloud_ruby_sdk/models/language.rb +239 -0
  354. data/lib/fattureincloud_ruby_sdk/models/list_archive_categories_response.rb +220 -0
  355. data/lib/fattureincloud_ruby_sdk/models/list_archive_documents_response.rb +343 -0
  356. data/lib/fattureincloud_ruby_sdk/models/list_archive_documents_response_page.rb +220 -0
  357. data/lib/fattureincloud_ruby_sdk/models/list_cashbook_entries_response.rb +221 -0
  358. data/lib/fattureincloud_ruby_sdk/models/list_cities_response.rb +221 -0
  359. data/lib/fattureincloud_ruby_sdk/models/list_clients_response.rb +342 -0
  360. data/lib/fattureincloud_ruby_sdk/models/list_clients_response_page.rb +220 -0
  361. data/lib/fattureincloud_ruby_sdk/models/list_cost_centers_response.rb +220 -0
  362. data/lib/fattureincloud_ruby_sdk/models/list_countries_response.rb +221 -0
  363. data/lib/fattureincloud_ruby_sdk/models/list_currencies_response.rb +221 -0
  364. data/lib/fattureincloud_ruby_sdk/models/list_delivery_notes_default_causals_response.rb +226 -0
  365. data/lib/fattureincloud_ruby_sdk/models/list_f24_response.rb +353 -0
  366. data/lib/fattureincloud_ruby_sdk/models/list_f24_response_aggregated_data.rb +218 -0
  367. data/lib/fattureincloud_ruby_sdk/models/list_f24_response_aggregated_data_aggregated_data.rb +219 -0
  368. data/lib/fattureincloud_ruby_sdk/models/list_f24_response_page.rb +220 -0
  369. data/lib/fattureincloud_ruby_sdk/models/list_issued_documents_response.rb +342 -0
  370. data/lib/fattureincloud_ruby_sdk/models/list_issued_documents_response_page.rb +220 -0
  371. data/lib/fattureincloud_ruby_sdk/models/list_languages_response.rb +221 -0
  372. data/lib/fattureincloud_ruby_sdk/models/list_payment_accounts_response.rb +221 -0
  373. data/lib/fattureincloud_ruby_sdk/models/list_payment_methods_response.rb +221 -0
  374. data/lib/fattureincloud_ruby_sdk/models/list_product_categories_response.rb +221 -0
  375. data/lib/fattureincloud_ruby_sdk/models/list_products_response.rb +342 -0
  376. data/lib/fattureincloud_ruby_sdk/models/list_products_response_page.rb +220 -0
  377. data/lib/fattureincloud_ruby_sdk/models/list_receipts_response.rb +343 -0
  378. data/lib/fattureincloud_ruby_sdk/models/list_receipts_response_page.rb +220 -0
  379. data/lib/fattureincloud_ruby_sdk/models/list_received_document_categories_response.rb +221 -0
  380. data/lib/fattureincloud_ruby_sdk/models/list_received_documents_response.rb +343 -0
  381. data/lib/fattureincloud_ruby_sdk/models/list_received_documents_response_page.rb +220 -0
  382. data/lib/fattureincloud_ruby_sdk/models/list_revenue_centers_response.rb +221 -0
  383. data/lib/fattureincloud_ruby_sdk/models/list_suppliers_response.rb +342 -0
  384. data/lib/fattureincloud_ruby_sdk/models/list_suppliers_response_page.rb +220 -0
  385. data/lib/fattureincloud_ruby_sdk/models/list_templates_response.rb +221 -0
  386. data/lib/fattureincloud_ruby_sdk/models/list_units_of_measure_response.rb +221 -0
  387. data/lib/fattureincloud_ruby_sdk/models/list_user_companies_response.rb +219 -0
  388. data/lib/fattureincloud_ruby_sdk/models/list_user_companies_response_data.rb +220 -0
  389. data/lib/fattureincloud_ruby_sdk/models/list_vat_types_response.rb +221 -0
  390. data/lib/fattureincloud_ruby_sdk/models/modify_archive_document_request.rb +219 -0
  391. data/lib/fattureincloud_ruby_sdk/models/modify_archive_document_response.rb +219 -0
  392. data/lib/fattureincloud_ruby_sdk/models/modify_cashbook_entry_request.rb +219 -0
  393. data/lib/fattureincloud_ruby_sdk/models/modify_cashbook_entry_response.rb +219 -0
  394. data/lib/fattureincloud_ruby_sdk/models/modify_client_request.rb +219 -0
  395. data/lib/fattureincloud_ruby_sdk/models/modify_client_response.rb +218 -0
  396. data/lib/fattureincloud_ruby_sdk/models/modify_f24_request.rb +219 -0
  397. data/lib/fattureincloud_ruby_sdk/models/modify_f24_response.rb +219 -0
  398. data/lib/fattureincloud_ruby_sdk/models/modify_issued_document_request.rb +219 -0
  399. data/lib/fattureincloud_ruby_sdk/models/modify_issued_document_response.rb +218 -0
  400. data/lib/fattureincloud_ruby_sdk/models/modify_payment_account_request.rb +219 -0
  401. data/lib/fattureincloud_ruby_sdk/models/modify_payment_account_response.rb +219 -0
  402. data/lib/fattureincloud_ruby_sdk/models/modify_payment_method_request.rb +218 -0
  403. data/lib/fattureincloud_ruby_sdk/models/modify_payment_method_response.rb +218 -0
  404. data/lib/fattureincloud_ruby_sdk/models/modify_product_request.rb +218 -0
  405. data/lib/fattureincloud_ruby_sdk/models/modify_product_response.rb +218 -0
  406. data/lib/fattureincloud_ruby_sdk/models/modify_receipt_request.rb +219 -0
  407. data/lib/fattureincloud_ruby_sdk/models/modify_receipt_response.rb +219 -0
  408. data/lib/fattureincloud_ruby_sdk/models/modify_received_document_request.rb +219 -0
  409. data/lib/fattureincloud_ruby_sdk/models/modify_received_document_response.rb +219 -0
  410. data/lib/fattureincloud_ruby_sdk/models/modify_supplier_request.rb +218 -0
  411. data/lib/fattureincloud_ruby_sdk/models/modify_supplier_response.rb +218 -0
  412. data/lib/fattureincloud_ruby_sdk/models/modify_vat_type_request.rb +219 -0
  413. data/lib/fattureincloud_ruby_sdk/models/modify_vat_type_response.rb +219 -0
  414. data/lib/fattureincloud_ruby_sdk/models/monthly_total.rb +255 -0
  415. data/lib/fattureincloud_ruby_sdk/models/original_document_type.rb +38 -0
  416. data/lib/fattureincloud_ruby_sdk/models/pagination.rb +324 -0
  417. data/lib/fattureincloud_ruby_sdk/models/payment_account.rb +288 -0
  418. data/lib/fattureincloud_ruby_sdk/models/payment_account_type.rb +37 -0
  419. data/lib/fattureincloud_ruby_sdk/models/payment_method.rb +337 -0
  420. data/lib/fattureincloud_ruby_sdk/models/payment_method_details.rb +229 -0
  421. data/lib/fattureincloud_ruby_sdk/models/payment_method_type.rb +37 -0
  422. data/lib/fattureincloud_ruby_sdk/models/permission_level.rb +39 -0
  423. data/lib/fattureincloud_ruby_sdk/models/permissions.rb +435 -0
  424. data/lib/fattureincloud_ruby_sdk/models/permissions_fic_issued_documents_detailed.rb +299 -0
  425. data/lib/fattureincloud_ruby_sdk/models/product.rb +411 -0
  426. data/lib/fattureincloud_ruby_sdk/models/receipt.rb +371 -0
  427. data/lib/fattureincloud_ruby_sdk/models/receipt_items_list_item.rb +259 -0
  428. data/lib/fattureincloud_ruby_sdk/models/receipt_pre_create_info.rb +310 -0
  429. data/lib/fattureincloud_ruby_sdk/models/receipt_type.rb +37 -0
  430. data/lib/fattureincloud_ruby_sdk/models/received_document.rb +525 -0
  431. data/lib/fattureincloud_ruby_sdk/models/received_document_entity.rb +230 -0
  432. data/lib/fattureincloud_ruby_sdk/models/received_document_info.rb +283 -0
  433. data/lib/fattureincloud_ruby_sdk/models/received_document_info_default_values.rb +219 -0
  434. data/lib/fattureincloud_ruby_sdk/models/received_document_info_items_default_values.rb +221 -0
  435. data/lib/fattureincloud_ruby_sdk/models/received_document_items_list.rb +308 -0
  436. data/lib/fattureincloud_ruby_sdk/models/received_document_payment_terms.rb +228 -0
  437. data/lib/fattureincloud_ruby_sdk/models/received_document_payments_list.rb +278 -0
  438. data/lib/fattureincloud_ruby_sdk/models/received_document_totals.rb +305 -0
  439. data/lib/fattureincloud_ruby_sdk/models/received_document_type.rb +38 -0
  440. data/lib/fattureincloud_ruby_sdk/models/schedule_email_request.rb +219 -0
  441. data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request.rb +218 -0
  442. data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request_data.rb +229 -0
  443. data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_response.rb +218 -0
  444. data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_response_data.rb +229 -0
  445. data/lib/fattureincloud_ruby_sdk/models/show_totals_mode.rb +38 -0
  446. data/lib/fattureincloud_ruby_sdk/models/supplier.rb +436 -0
  447. data/lib/fattureincloud_ruby_sdk/models/supplier_type.rb +40 -0
  448. data/lib/fattureincloud_ruby_sdk/models/upload_archive_attachment_response.rb +218 -0
  449. data/lib/fattureincloud_ruby_sdk/models/upload_f24_attachment_response.rb +219 -0
  450. data/lib/fattureincloud_ruby_sdk/models/upload_issued_document_attachment_response.rb +219 -0
  451. data/lib/fattureincloud_ruby_sdk/models/upload_issued_document_attachment_response_data.rb +219 -0
  452. data/lib/fattureincloud_ruby_sdk/models/upload_received_document_attachment_response.rb +224 -0
  453. data/lib/fattureincloud_ruby_sdk/models/upload_received_document_attachment_response_data.rb +224 -0
  454. data/lib/fattureincloud_ruby_sdk/models/user.rb +284 -0
  455. data/lib/fattureincloud_ruby_sdk/models/user_company_role.rb +38 -0
  456. data/lib/fattureincloud_ruby_sdk/models/vat_kind.rb +39 -0
  457. data/lib/fattureincloud_ruby_sdk/models/vat_type.rb +335 -0
  458. data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response.rb +227 -0
  459. data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_error.rb +227 -0
  460. data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_extra.rb +220 -0
  461. data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_response.rb +218 -0
  462. data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_response_data.rb +219 -0
  463. data/lib/fattureincloud_ruby_sdk/version.rb +15 -0
  464. data/lib/fattureincloud_ruby_sdk.rb +265 -0
  465. data/scripts/.gitignore +2 -0
  466. data/scripts/node_modules/.bin/js-yaml +1 -0
  467. data/scripts/node_modules/.yarn-integrity +17 -0
  468. data/scripts/node_modules/argparse/CHANGELOG.md +216 -0
  469. data/scripts/node_modules/argparse/LICENSE +254 -0
  470. data/scripts/node_modules/argparse/README.md +84 -0
  471. data/scripts/node_modules/argparse/argparse.js +3707 -0
  472. data/scripts/node_modules/argparse/lib/sub.js +67 -0
  473. data/scripts/node_modules/argparse/lib/textwrap.js +440 -0
  474. data/scripts/node_modules/argparse/package.json +31 -0
  475. data/scripts/node_modules/js-yaml/CHANGELOG.md +616 -0
  476. data/scripts/node_modules/js-yaml/LICENSE +21 -0
  477. data/scripts/node_modules/js-yaml/README.md +246 -0
  478. data/scripts/node_modules/js-yaml/bin/js-yaml.js +126 -0
  479. data/scripts/node_modules/js-yaml/dist/js-yaml.js +3874 -0
  480. data/scripts/node_modules/js-yaml/dist/js-yaml.min.js +2 -0
  481. data/scripts/node_modules/js-yaml/dist/js-yaml.mjs +3851 -0
  482. data/scripts/node_modules/js-yaml/index.js +47 -0
  483. data/scripts/node_modules/js-yaml/lib/common.js +59 -0
  484. data/scripts/node_modules/js-yaml/lib/dumper.js +965 -0
  485. data/scripts/node_modules/js-yaml/lib/exception.js +55 -0
  486. data/scripts/node_modules/js-yaml/lib/loader.js +1727 -0
  487. data/scripts/node_modules/js-yaml/lib/schema/core.js +11 -0
  488. data/scripts/node_modules/js-yaml/lib/schema/default.js +22 -0
  489. data/scripts/node_modules/js-yaml/lib/schema/failsafe.js +17 -0
  490. data/scripts/node_modules/js-yaml/lib/schema/json.js +19 -0
  491. data/scripts/node_modules/js-yaml/lib/schema.js +121 -0
  492. data/scripts/node_modules/js-yaml/lib/snippet.js +101 -0
  493. data/scripts/node_modules/js-yaml/lib/type/binary.js +125 -0
  494. data/scripts/node_modules/js-yaml/lib/type/bool.js +35 -0
  495. data/scripts/node_modules/js-yaml/lib/type/float.js +97 -0
  496. data/scripts/node_modules/js-yaml/lib/type/int.js +156 -0
  497. data/scripts/node_modules/js-yaml/lib/type/map.js +8 -0
  498. data/scripts/node_modules/js-yaml/lib/type/merge.js +12 -0
  499. data/scripts/node_modules/js-yaml/lib/type/null.js +35 -0
  500. data/scripts/node_modules/js-yaml/lib/type/omap.js +44 -0
  501. data/scripts/node_modules/js-yaml/lib/type/pairs.js +53 -0
  502. data/scripts/node_modules/js-yaml/lib/type/seq.js +8 -0
  503. data/scripts/node_modules/js-yaml/lib/type/set.js +29 -0
  504. data/scripts/node_modules/js-yaml/lib/type/str.js +8 -0
  505. data/scripts/node_modules/js-yaml/lib/type/timestamp.js +88 -0
  506. data/scripts/node_modules/js-yaml/lib/type.js +66 -0
  507. data/scripts/node_modules/js-yaml/package.json +66 -0
  508. data/scripts/package.json +5 -0
  509. data/scripts/sdk-version-updater.js +13 -0
  510. data/scripts/yarn.lock +15 -0
  511. data/sdk-version.yaml +2 -0
  512. data/spec/api/archive_api_spec.rb +121 -0
  513. data/spec/api/cashbook_api_spec.rb +107 -0
  514. data/spec/api/clients_api_spec.rb +107 -0
  515. data/spec/api/companies_api_spec.rb +47 -0
  516. data/spec/api/info_api_spec.rb +220 -0
  517. data/spec/api/issued_documents_api_spec.rb +202 -0
  518. data/spec/api/issued_e_invoices_api_spec.rb +62 -0
  519. data/spec/api/products_api_spec.rb +107 -0
  520. data/spec/api/receipts_api_spec.rb +133 -0
  521. data/spec/api/received_documents_api_spec.rb +175 -0
  522. data/spec/api/settings_api_spec.rb +198 -0
  523. data/spec/api/suppliers_api_spec.rb +107 -0
  524. data/spec/api/taxes_api_spec.rb +134 -0
  525. data/spec/api/user_api_spec.rb +57 -0
  526. data/spec/api_client_spec.rb +226 -0
  527. data/spec/configuration_spec.rb +42 -0
  528. data/spec/models/archive_document_spec.rb +64 -0
  529. data/spec/models/cashbook_entry_data_document_spec.rb +46 -0
  530. data/spec/models/cashbook_entry_data_spec.rb +70 -0
  531. data/spec/models/cashbook_entry_in_data_spec.rb +40 -0
  532. data/spec/models/cashbook_entry_in_out_spec.rb +94 -0
  533. data/spec/models/cashbook_entry_in_spec.rb +82 -0
  534. data/spec/models/cashbook_entry_kind_spec.rb +28 -0
  535. data/spec/models/cashbook_entry_out_data_spec.rb +40 -0
  536. data/spec/models/cashbook_entry_out_spec.rb +82 -0
  537. data/spec/models/cashbook_entry_spec.rb +31 -0
  538. data/spec/models/cashbook_entry_type_spec.rb +28 -0
  539. data/spec/models/city_spec.rb +46 -0
  540. data/spec/models/client_spec.rb +220 -0
  541. data/spec/models/client_type_spec.rb +28 -0
  542. data/spec/models/company_info_access_info_spec.rb +46 -0
  543. data/spec/models/company_info_plan_info_functions_spec.rb +136 -0
  544. data/spec/models/company_info_plan_info_functions_status_spec.rb +40 -0
  545. data/spec/models/company_info_plan_info_limits_spec.rb +52 -0
  546. data/spec/models/company_info_plan_info_spec.rb +46 -0
  547. data/spec/models/company_info_spec.rb +76 -0
  548. data/spec/models/company_spec.rb +70 -0
  549. data/spec/models/company_type_spec.rb +28 -0
  550. data/spec/models/create_archive_document_request_spec.rb +34 -0
  551. data/spec/models/create_archive_document_response_spec.rb +34 -0
  552. data/spec/models/create_cashbook_entry_request_spec.rb +34 -0
  553. data/spec/models/create_cashbook_entry_response_spec.rb +34 -0
  554. data/spec/models/create_client_request_spec.rb +34 -0
  555. data/spec/models/create_client_response_spec.rb +34 -0
  556. data/spec/models/create_f24_request_spec.rb +34 -0
  557. data/spec/models/create_f24_response_spec.rb +34 -0
  558. data/spec/models/create_issued_document_request_spec.rb +34 -0
  559. data/spec/models/create_issued_document_response_spec.rb +34 -0
  560. data/spec/models/create_payment_account_request_spec.rb +34 -0
  561. data/spec/models/create_payment_account_response_spec.rb +34 -0
  562. data/spec/models/create_payment_method_request_spec.rb +34 -0
  563. data/spec/models/create_payment_method_response_spec.rb +34 -0
  564. data/spec/models/create_product_request_spec.rb +34 -0
  565. data/spec/models/create_product_response_spec.rb +34 -0
  566. data/spec/models/create_receipt_request_spec.rb +40 -0
  567. data/spec/models/create_receipt_response_spec.rb +34 -0
  568. data/spec/models/create_received_document_request_spec.rb +40 -0
  569. data/spec/models/create_received_document_response_spec.rb +34 -0
  570. data/spec/models/create_supplier_request_spec.rb +34 -0
  571. data/spec/models/create_supplier_response_spec.rb +34 -0
  572. data/spec/models/create_vat_type_request_spec.rb +34 -0
  573. data/spec/models/create_vat_type_response_spec.rb +34 -0
  574. data/spec/models/currency_spec.rb +52 -0
  575. data/spec/models/default_payment_terms_type_spec.rb +28 -0
  576. data/spec/models/document_template_spec.rb +46 -0
  577. data/spec/models/email_data_default_sender_email_spec.rb +40 -0
  578. data/spec/models/email_data_sender_emails_list_spec.rb +40 -0
  579. data/spec/models/email_data_spec.rb +94 -0
  580. data/spec/models/email_schedule_include_spec.rb +52 -0
  581. data/spec/models/email_schedule_spec.rb +76 -0
  582. data/spec/models/entity_spec.rb +31 -0
  583. data/spec/models/f24_spec.rb +76 -0
  584. data/spec/models/f24_status_spec.rb +28 -0
  585. data/spec/models/function_status_spec.rb +34 -0
  586. data/spec/models/get_archive_document_response_spec.rb +34 -0
  587. data/spec/models/get_cashbook_entry_response_spec.rb +34 -0
  588. data/spec/models/get_client_response_spec.rb +34 -0
  589. data/spec/models/get_company_info_response_spec.rb +34 -0
  590. data/spec/models/get_email_data_response_spec.rb +34 -0
  591. data/spec/models/get_existing_issued_document_totals_request_spec.rb +34 -0
  592. data/spec/models/get_existing_issued_document_totals_response_spec.rb +34 -0
  593. data/spec/models/get_existing_received_document_totals_request_spec.rb +34 -0
  594. data/spec/models/get_existing_received_document_totals_response_spec.rb +34 -0
  595. data/spec/models/get_f24_response_spec.rb +34 -0
  596. data/spec/models/get_issued_document_pre_create_info_response_spec.rb +34 -0
  597. data/spec/models/get_issued_document_response_spec.rb +34 -0
  598. data/spec/models/get_new_issued_document_totals_request_spec.rb +34 -0
  599. data/spec/models/get_new_issued_document_totals_response_spec.rb +34 -0
  600. data/spec/models/get_new_received_document_totals_request_spec.rb +34 -0
  601. data/spec/models/get_new_received_document_totals_response_spec.rb +34 -0
  602. data/spec/models/get_payment_account_response_spec.rb +34 -0
  603. data/spec/models/get_payment_method_response_spec.rb +34 -0
  604. data/spec/models/get_product_response_spec.rb +34 -0
  605. data/spec/models/get_receipt_pre_create_info_response_spec.rb +34 -0
  606. data/spec/models/get_receipt_response_spec.rb +34 -0
  607. data/spec/models/get_receipts_monthly_totals_response_spec.rb +34 -0
  608. data/spec/models/get_received_document_pre_create_info_response_spec.rb +34 -0
  609. data/spec/models/get_received_document_response_spec.rb +34 -0
  610. data/spec/models/get_supplier_response_spec.rb +34 -0
  611. data/spec/models/get_user_info_response_email_confirmation_state_spec.rb +34 -0
  612. data/spec/models/get_user_info_response_info_spec.rb +46 -0
  613. data/spec/models/get_user_info_response_spec.rb +46 -0
  614. data/spec/models/get_vat_type_response_spec.rb +34 -0
  615. data/spec/models/issued_document_ei_data_spec.rb +100 -0
  616. data/spec/models/issued_document_extra_data_spec.rb +106 -0
  617. data/spec/models/issued_document_items_list_spec.rb +124 -0
  618. data/spec/models/issued_document_payments_list_spec.rb +64 -0
  619. data/spec/models/issued_document_pre_create_info_default_values_spec.rb +94 -0
  620. data/spec/models/issued_document_pre_create_info_extra_data_default_values_spec.rb +52 -0
  621. data/spec/models/issued_document_pre_create_info_items_default_values_spec.rb +34 -0
  622. data/spec/models/issued_document_pre_create_info_spec.rb +106 -0
  623. data/spec/models/issued_document_refers_to_spec.rb +58 -0
  624. data/spec/models/issued_document_spec.rb +490 -0
  625. data/spec/models/issued_document_status_spec.rb +28 -0
  626. data/spec/models/issued_document_totals_spec.rb +130 -0
  627. data/spec/models/issued_document_totals_vat_list_spec.rb +34 -0
  628. data/spec/models/issued_document_totals_vat_list_vat_item_spec.rb +40 -0
  629. data/spec/models/issued_document_type_spec.rb +28 -0
  630. data/spec/models/language_spec.rb +40 -0
  631. data/spec/models/list_archive_categories_response_spec.rb +34 -0
  632. data/spec/models/list_archive_documents_response_page_spec.rb +34 -0
  633. data/spec/models/list_archive_documents_response_spec.rb +100 -0
  634. data/spec/models/list_cashbook_entries_response_spec.rb +34 -0
  635. data/spec/models/list_cities_response_spec.rb +34 -0
  636. data/spec/models/list_clients_response_page_spec.rb +34 -0
  637. data/spec/models/list_clients_response_spec.rb +100 -0
  638. data/spec/models/list_cost_centers_response_spec.rb +34 -0
  639. data/spec/models/list_countries_response_spec.rb +34 -0
  640. data/spec/models/list_currencies_response_spec.rb +34 -0
  641. data/spec/models/list_delivery_notes_default_causals_response_spec.rb +34 -0
  642. data/spec/models/list_f24_response_aggregated_data_aggregated_data_spec.rb +34 -0
  643. data/spec/models/list_f24_response_aggregated_data_spec.rb +34 -0
  644. data/spec/models/list_f24_response_page_spec.rb +34 -0
  645. data/spec/models/list_f24_response_spec.rb +106 -0
  646. data/spec/models/list_issued_documents_response_page_spec.rb +34 -0
  647. data/spec/models/list_issued_documents_response_spec.rb +100 -0
  648. data/spec/models/list_languages_response_spec.rb +34 -0
  649. data/spec/models/list_payment_accounts_response_spec.rb +34 -0
  650. data/spec/models/list_payment_methods_response_spec.rb +34 -0
  651. data/spec/models/list_product_categories_response_spec.rb +34 -0
  652. data/spec/models/list_products_response_page_spec.rb +34 -0
  653. data/spec/models/list_products_response_spec.rb +100 -0
  654. data/spec/models/list_receipts_response_page_spec.rb +34 -0
  655. data/spec/models/list_receipts_response_spec.rb +100 -0
  656. data/spec/models/list_received_document_categories_response_spec.rb +34 -0
  657. data/spec/models/list_received_documents_response_page_spec.rb +34 -0
  658. data/spec/models/list_received_documents_response_spec.rb +100 -0
  659. data/spec/models/list_revenue_centers_response_spec.rb +34 -0
  660. data/spec/models/list_suppliers_response_page_spec.rb +34 -0
  661. data/spec/models/list_suppliers_response_spec.rb +100 -0
  662. data/spec/models/list_templates_response_spec.rb +34 -0
  663. data/spec/models/list_units_of_measure_response_spec.rb +34 -0
  664. data/spec/models/list_user_companies_response_data_spec.rb +34 -0
  665. data/spec/models/list_user_companies_response_spec.rb +34 -0
  666. data/spec/models/list_vat_types_response_spec.rb +34 -0
  667. data/spec/models/modify_archive_document_request_spec.rb +34 -0
  668. data/spec/models/modify_archive_document_response_spec.rb +34 -0
  669. data/spec/models/modify_cashbook_entry_request_spec.rb +34 -0
  670. data/spec/models/modify_cashbook_entry_response_spec.rb +34 -0
  671. data/spec/models/modify_client_request_spec.rb +34 -0
  672. data/spec/models/modify_client_response_spec.rb +34 -0
  673. data/spec/models/modify_f24_request_spec.rb +34 -0
  674. data/spec/models/modify_f24_response_spec.rb +34 -0
  675. data/spec/models/modify_issued_document_request_spec.rb +34 -0
  676. data/spec/models/modify_issued_document_response_spec.rb +34 -0
  677. data/spec/models/modify_payment_account_request_spec.rb +34 -0
  678. data/spec/models/modify_payment_account_response_spec.rb +34 -0
  679. data/spec/models/modify_payment_method_request_spec.rb +34 -0
  680. data/spec/models/modify_payment_method_response_spec.rb +34 -0
  681. data/spec/models/modify_product_request_spec.rb +34 -0
  682. data/spec/models/modify_product_response_spec.rb +34 -0
  683. data/spec/models/modify_receipt_request_spec.rb +34 -0
  684. data/spec/models/modify_receipt_response_spec.rb +34 -0
  685. data/spec/models/modify_received_document_request_spec.rb +34 -0
  686. data/spec/models/modify_received_document_response_spec.rb +34 -0
  687. data/spec/models/modify_supplier_request_spec.rb +34 -0
  688. data/spec/models/modify_supplier_response_spec.rb +34 -0
  689. data/spec/models/modify_vat_type_request_spec.rb +34 -0
  690. data/spec/models/modify_vat_type_response_spec.rb +34 -0
  691. data/spec/models/monthly_total_spec.rb +46 -0
  692. data/spec/models/original_document_type_spec.rb +28 -0
  693. data/spec/models/pagination_spec.rb +94 -0
  694. data/spec/models/payment_account_spec.rb +70 -0
  695. data/spec/models/payment_account_type_spec.rb +28 -0
  696. data/spec/models/payment_method_details_spec.rb +40 -0
  697. data/spec/models/payment_method_spec.rb +88 -0
  698. data/spec/models/payment_method_type_spec.rb +28 -0
  699. data/spec/models/permission_level_spec.rb +28 -0
  700. data/spec/models/permissions_fic_issued_documents_detailed_spec.rb +88 -0
  701. data/spec/models/permissions_spec.rb +178 -0
  702. data/spec/models/product_spec.rb +142 -0
  703. data/spec/models/receipt_items_list_item_spec.rb +58 -0
  704. data/spec/models/receipt_pre_create_info_spec.rb +64 -0
  705. data/spec/models/receipt_spec.rb +118 -0
  706. data/spec/models/receipt_type_spec.rb +28 -0
  707. data/spec/models/received_document_entity_spec.rb +40 -0
  708. data/spec/models/received_document_info_default_values_spec.rb +34 -0
  709. data/spec/models/received_document_info_items_default_values_spec.rb +34 -0
  710. data/spec/models/received_document_info_spec.rb +70 -0
  711. data/spec/models/received_document_items_list_spec.rb +88 -0
  712. data/spec/models/received_document_payment_terms_spec.rb +40 -0
  713. data/spec/models/received_document_payments_list_spec.rb +70 -0
  714. data/spec/models/received_document_spec.rb +184 -0
  715. data/spec/models/received_document_totals_spec.rb +70 -0
  716. data/spec/models/received_document_type_spec.rb +28 -0
  717. data/spec/models/schedule_email_request_spec.rb +34 -0
  718. data/spec/models/send_e_invoice_request_data_spec.rb +40 -0
  719. data/spec/models/send_e_invoice_request_spec.rb +34 -0
  720. data/spec/models/send_e_invoice_response_data_spec.rb +40 -0
  721. data/spec/models/send_e_invoice_response_spec.rb +34 -0
  722. data/spec/models/show_totals_mode_spec.rb +28 -0
  723. data/spec/models/supplier_spec.rb +160 -0
  724. data/spec/models/supplier_type_spec.rb +28 -0
  725. data/spec/models/upload_archive_attachment_response_spec.rb +34 -0
  726. data/spec/models/upload_f24_attachment_response_spec.rb +34 -0
  727. data/spec/models/upload_issued_document_attachment_response_data_spec.rb +34 -0
  728. data/spec/models/upload_issued_document_attachment_response_spec.rb +34 -0
  729. data/spec/models/upload_received_document_attachment_response_data_spec.rb +34 -0
  730. data/spec/models/upload_received_document_attachment_response_spec.rb +34 -0
  731. data/spec/models/user_company_role_spec.rb +28 -0
  732. data/spec/models/user_spec.rb +70 -0
  733. data/spec/models/vat_kind_spec.rb +28 -0
  734. data/spec/models/vat_type_spec.rb +82 -0
  735. data/spec/models/verify_e_invoice_xml_error_response_error_spec.rb +40 -0
  736. data/spec/models/verify_e_invoice_xml_error_response_extra_spec.rb +34 -0
  737. data/spec/models/verify_e_invoice_xml_error_response_spec.rb +40 -0
  738. data/spec/models/verify_e_invoice_xml_response_data_spec.rb +34 -0
  739. data/spec/models/verify_e_invoice_xml_response_spec.rb +34 -0
  740. data/spec/spec_helper.rb +111 -0
  741. metadata +1051 -0
@@ -0,0 +1,1114 @@
1
+ =begin
2
+ #Fatture in Cloud API v2 - API Reference
3
+
4
+ #Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.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
+
6
+ The version of the OpenAPI document: 2.0.7
7
+ Contact: info@fattureincloud.it
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.3.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FattureInCloud_Ruby_Sdk
17
+ class IssuedDocument
18
+ # Unique identifier of the document.
19
+ attr_accessor :id
20
+
21
+ attr_accessor :entity
22
+
23
+ attr_accessor :type
24
+
25
+ # Number of the document [If not specified, next number is used]
26
+ attr_accessor :number
27
+
28
+ # Numeration of the document [Not available if type=delivery_note]
29
+ attr_accessor :numeration
30
+
31
+ # Date of the document [If not specified, today date is used]
32
+ attr_accessor :date
33
+
34
+ attr_accessor :currency
35
+
36
+ attr_accessor :language
37
+
38
+ # Issued document subject.
39
+ attr_accessor :subject
40
+
41
+ # Issued document visible subject.
42
+ attr_accessor :visible_subject
43
+
44
+ # Revenue center [or cost center if type=supplier_order].
45
+ attr_accessor :rc_center
46
+
47
+ # Issued document extra notes.
48
+ attr_accessor :notes
49
+
50
+ # \"Rivalsa INPS\" percentual value
51
+ attr_accessor :rivalsa
52
+
53
+ # \"Cassa previdenziale\" percentual value
54
+ attr_accessor :cassa
55
+
56
+ # Withholding tax (ritenuta d'acconto) percentual value
57
+ attr_accessor :withholding_tax
58
+
59
+ # Withholding tax taxable (imponibile) percentual value
60
+ attr_accessor :withholding_tax_taxable
61
+
62
+ # Other withholding tax (altra ritenuta) percentual value
63
+ attr_accessor :other_withholding_tax
64
+
65
+ # Stamp duty value [0 if not present]
66
+ attr_accessor :stamp_duty
67
+
68
+ attr_accessor :payment_method
69
+
70
+ attr_accessor :use_split_payment
71
+
72
+ attr_accessor :use_gross_prices
73
+
74
+ # Indicates if this is an e-invoice.
75
+ attr_accessor :e_invoice
76
+
77
+ attr_accessor :ei_data
78
+
79
+ attr_accessor :items_list
80
+
81
+ attr_accessor :payments_list
82
+
83
+ attr_accessor :template
84
+
85
+ attr_accessor :delivery_note_template
86
+
87
+ attr_accessor :acc_inv_template
88
+
89
+ # Horizontal margins.
90
+ attr_accessor :h_margins
91
+
92
+ # Shows the expiration dates of the payments on the document.
93
+ attr_accessor :show_payments
94
+
95
+ # Show the payment method details on the document.
96
+ attr_accessor :show_payment_method
97
+
98
+ attr_accessor :show_totals
99
+
100
+ # Vertical margins.
101
+ attr_accessor :v_margins
102
+
103
+ attr_accessor :show_paypal_button
104
+
105
+ attr_accessor :show_notification_button
106
+
107
+ attr_accessor :delivery_note
108
+
109
+ # Attach an accompanying invoice.
110
+ attr_accessor :accompanying_invoice
111
+
112
+ # Number (for the attached delivery note).
113
+ attr_accessor :dn_number
114
+
115
+ # Date (for the attached delivery note).
116
+ attr_accessor :dn_date
117
+
118
+ # Number of packages (for the attached delivery note).
119
+ attr_accessor :dn_ai_packages_number
120
+
121
+ # Weight (for the attached delivery note).
122
+ attr_accessor :dn_ai_weight
123
+
124
+ # Causal (for the attached delivery note).
125
+ attr_accessor :dn_ai_causal
126
+
127
+ # Destination (for the attached delivery note).
128
+ attr_accessor :dn_ai_destination
129
+
130
+ # Transporter (for the attached delivery note).
131
+ attr_accessor :dn_ai_transporter
132
+
133
+ # Notes (for the attached delivery note).
134
+ attr_accessor :dn_ai_notes
135
+
136
+ attr_accessor :refers_to
137
+
138
+ # This is true if the document is marked.
139
+ attr_accessor :is_marked
140
+
141
+ # [Read Only] Total net amount (competenze).
142
+ attr_accessor :amount_net
143
+
144
+ # [Read Only] Total vat amount (IVA).
145
+ attr_accessor :amount_vat
146
+
147
+ # [Read Only] Total gross amount (totale documento).
148
+ attr_accessor :amount_gross
149
+
150
+ # [Read Only] Rivalsa amount.
151
+ attr_accessor :amount_rivalsa
152
+
153
+ # [Read Only] Cassa amount.
154
+ attr_accessor :amount_cassa
155
+
156
+ # [Read Only] Withholding tax amount (ritenuta d'acconto).
157
+ attr_accessor :amount_withholding_tax
158
+
159
+ # [Read Only] Other withholding tax amount (altra ritenuta).
160
+ attr_accessor :amount_other_withholding_tax
161
+
162
+ attr_accessor :extra_data
163
+
164
+ # Date when the client/supplier has seen the document.
165
+ attr_accessor :seen_date
166
+
167
+ # Date of the next not paid payment.
168
+ attr_accessor :next_due_date
169
+
170
+ # Public url of the document PDF file.
171
+ attr_accessor :url
172
+
173
+ # [Read Only] Public url of the attached file. Authomatically set if a valid attachment token is passed via POST /issued_documents or PUT /issued_documents/{documentId}.
174
+ attr_accessor :attachment_url
175
+
176
+ # [Write Only] Attachment token returned by POST /issued_documents/attachment. Used to attach the file already uploaded.
177
+ attr_accessor :attachment_token
178
+
179
+ # Advanced raw attributes for e-invoices.
180
+ attr_accessor :ei_raw
181
+
182
+ # Show ts pay button.
183
+ attr_accessor :show_tspay_button
184
+
185
+ # Invoice year.
186
+ attr_accessor :year
187
+
188
+ attr_accessor :amount_rivalsa_taxable
189
+
190
+ attr_accessor :amount_global_cassa_taxable
191
+
192
+ attr_accessor :amount_cassa_taxable
193
+
194
+ attr_accessor :amount_cassa2
195
+
196
+ attr_accessor :amount_cassa2_taxable
197
+
198
+ attr_accessor :amount_withholding_tax_taxable
199
+
200
+ attr_accessor :amount_enasarco_taxable
201
+
202
+ attr_accessor :amount_other_withholding_tax_taxable
203
+
204
+ attr_accessor :ei_cassa_type
205
+
206
+ attr_accessor :ei_cassa2_type
207
+
208
+ attr_accessor :ei_withholding_tax_causal
209
+
210
+ attr_accessor :ei_other_withholding_tax_type
211
+
212
+ attr_accessor :ei_other_withholding_tax_causal
213
+
214
+ attr_accessor :amount_due_discount
215
+
216
+ # Attribute mapping from ruby-style variable name to JSON key.
217
+ def self.attribute_map
218
+ {
219
+ :'id' => :'id',
220
+ :'entity' => :'entity',
221
+ :'type' => :'type',
222
+ :'number' => :'number',
223
+ :'numeration' => :'numeration',
224
+ :'date' => :'date',
225
+ :'currency' => :'currency',
226
+ :'language' => :'language',
227
+ :'subject' => :'subject',
228
+ :'visible_subject' => :'visible_subject',
229
+ :'rc_center' => :'rc_center',
230
+ :'notes' => :'notes',
231
+ :'rivalsa' => :'rivalsa',
232
+ :'cassa' => :'cassa',
233
+ :'withholding_tax' => :'withholding_tax',
234
+ :'withholding_tax_taxable' => :'withholding_tax_taxable',
235
+ :'other_withholding_tax' => :'other_withholding_tax',
236
+ :'stamp_duty' => :'stamp_duty',
237
+ :'payment_method' => :'payment_method',
238
+ :'use_split_payment' => :'use_split_payment',
239
+ :'use_gross_prices' => :'use_gross_prices',
240
+ :'e_invoice' => :'e_invoice',
241
+ :'ei_data' => :'ei_data',
242
+ :'items_list' => :'items_list',
243
+ :'payments_list' => :'payments_list',
244
+ :'template' => :'template',
245
+ :'delivery_note_template' => :'delivery_note_template',
246
+ :'acc_inv_template' => :'acc_inv_template',
247
+ :'h_margins' => :'h_margins',
248
+ :'show_payments' => :'show_payments',
249
+ :'show_payment_method' => :'show_payment_method',
250
+ :'show_totals' => :'show_totals',
251
+ :'v_margins' => :'v_margins',
252
+ :'show_paypal_button' => :'show_paypal_button',
253
+ :'show_notification_button' => :'show_notification_button',
254
+ :'delivery_note' => :'delivery_note',
255
+ :'accompanying_invoice' => :'accompanying_invoice',
256
+ :'dn_number' => :'dn_number',
257
+ :'dn_date' => :'dn_date',
258
+ :'dn_ai_packages_number' => :'dn_ai_packages_number',
259
+ :'dn_ai_weight' => :'dn_ai_weight',
260
+ :'dn_ai_causal' => :'dn_ai_causal',
261
+ :'dn_ai_destination' => :'dn_ai_destination',
262
+ :'dn_ai_transporter' => :'dn_ai_transporter',
263
+ :'dn_ai_notes' => :'dn_ai_notes',
264
+ :'refers_to' => :'refers_to',
265
+ :'is_marked' => :'is_marked',
266
+ :'amount_net' => :'amount_net',
267
+ :'amount_vat' => :'amount_vat',
268
+ :'amount_gross' => :'amount_gross',
269
+ :'amount_rivalsa' => :'amount_rivalsa',
270
+ :'amount_cassa' => :'amount_cassa',
271
+ :'amount_withholding_tax' => :'amount_withholding_tax',
272
+ :'amount_other_withholding_tax' => :'amount_other_withholding_tax',
273
+ :'extra_data' => :'extra_data',
274
+ :'seen_date' => :'seen_date',
275
+ :'next_due_date' => :'next_due_date',
276
+ :'url' => :'url',
277
+ :'attachment_url' => :'attachment_url',
278
+ :'attachment_token' => :'attachment_token',
279
+ :'ei_raw' => :'ei_raw',
280
+ :'show_tspay_button' => :'show_tspay_button',
281
+ :'year' => :'year',
282
+ :'amount_rivalsa_taxable' => :'amount_rivalsa_taxable',
283
+ :'amount_global_cassa_taxable' => :'amount_global_cassa_taxable',
284
+ :'amount_cassa_taxable' => :'amount_cassa_taxable',
285
+ :'amount_cassa2' => :'amount_cassa2',
286
+ :'amount_cassa2_taxable' => :'amount_cassa2_taxable',
287
+ :'amount_withholding_tax_taxable' => :'amount_withholding_tax_taxable',
288
+ :'amount_enasarco_taxable' => :'amount_enasarco_taxable',
289
+ :'amount_other_withholding_tax_taxable' => :'amount_other_withholding_tax_taxable',
290
+ :'ei_cassa_type' => :'ei_cassa_type',
291
+ :'ei_cassa2_type' => :'ei_cassa2_type',
292
+ :'ei_withholding_tax_causal' => :'ei_withholding_tax_causal',
293
+ :'ei_other_withholding_tax_type' => :'ei_other_withholding_tax_type',
294
+ :'ei_other_withholding_tax_causal' => :'ei_other_withholding_tax_causal',
295
+ :'amount_due_discount' => :'amount_due_discount'
296
+ }
297
+ end
298
+
299
+ # Returns all the JSON keys this model knows about
300
+ def self.acceptable_attributes
301
+ attribute_map.values
302
+ end
303
+
304
+ # Attribute type mapping.
305
+ def self.openapi_types
306
+ {
307
+ :'id' => :'Integer',
308
+ :'entity' => :'Entity',
309
+ :'type' => :'IssuedDocumentType',
310
+ :'number' => :'Integer',
311
+ :'numeration' => :'String',
312
+ :'date' => :'Date',
313
+ :'currency' => :'Currency',
314
+ :'language' => :'Language',
315
+ :'subject' => :'String',
316
+ :'visible_subject' => :'String',
317
+ :'rc_center' => :'String',
318
+ :'notes' => :'String',
319
+ :'rivalsa' => :'Float',
320
+ :'cassa' => :'Float',
321
+ :'withholding_tax' => :'Float',
322
+ :'withholding_tax_taxable' => :'Float',
323
+ :'other_withholding_tax' => :'Float',
324
+ :'stamp_duty' => :'Float',
325
+ :'payment_method' => :'PaymentMethod',
326
+ :'use_split_payment' => :'Boolean',
327
+ :'use_gross_prices' => :'Boolean',
328
+ :'e_invoice' => :'Boolean',
329
+ :'ei_data' => :'IssuedDocumentEiData',
330
+ :'items_list' => :'Array<IssuedDocumentItemsList>',
331
+ :'payments_list' => :'Array<IssuedDocumentPaymentsList>',
332
+ :'template' => :'DocumentTemplate',
333
+ :'delivery_note_template' => :'DocumentTemplate',
334
+ :'acc_inv_template' => :'DocumentTemplate',
335
+ :'h_margins' => :'Integer',
336
+ :'show_payments' => :'Boolean',
337
+ :'show_payment_method' => :'Boolean',
338
+ :'show_totals' => :'ShowTotalsMode',
339
+ :'v_margins' => :'Integer',
340
+ :'show_paypal_button' => :'Boolean',
341
+ :'show_notification_button' => :'Boolean',
342
+ :'delivery_note' => :'Boolean',
343
+ :'accompanying_invoice' => :'Boolean',
344
+ :'dn_number' => :'Integer',
345
+ :'dn_date' => :'Date',
346
+ :'dn_ai_packages_number' => :'String',
347
+ :'dn_ai_weight' => :'String',
348
+ :'dn_ai_causal' => :'String',
349
+ :'dn_ai_destination' => :'String',
350
+ :'dn_ai_transporter' => :'String',
351
+ :'dn_ai_notes' => :'String',
352
+ :'refers_to' => :'IssuedDocumentRefersTo',
353
+ :'is_marked' => :'Boolean',
354
+ :'amount_net' => :'Float',
355
+ :'amount_vat' => :'Float',
356
+ :'amount_gross' => :'Float',
357
+ :'amount_rivalsa' => :'Float',
358
+ :'amount_cassa' => :'Float',
359
+ :'amount_withholding_tax' => :'Float',
360
+ :'amount_other_withholding_tax' => :'Float',
361
+ :'extra_data' => :'IssuedDocumentExtraData',
362
+ :'seen_date' => :'Date',
363
+ :'next_due_date' => :'Date',
364
+ :'url' => :'String',
365
+ :'attachment_url' => :'String',
366
+ :'attachment_token' => :'String',
367
+ :'ei_raw' => :'Object',
368
+ :'show_tspay_button' => :'Boolean',
369
+ :'year' => :'Integer',
370
+ :'amount_rivalsa_taxable' => :'Float',
371
+ :'amount_global_cassa_taxable' => :'Float',
372
+ :'amount_cassa_taxable' => :'Float',
373
+ :'amount_cassa2' => :'Float',
374
+ :'amount_cassa2_taxable' => :'Float',
375
+ :'amount_withholding_tax_taxable' => :'Float',
376
+ :'amount_enasarco_taxable' => :'Float',
377
+ :'amount_other_withholding_tax_taxable' => :'Float',
378
+ :'ei_cassa_type' => :'String',
379
+ :'ei_cassa2_type' => :'String',
380
+ :'ei_withholding_tax_causal' => :'String',
381
+ :'ei_other_withholding_tax_type' => :'String',
382
+ :'ei_other_withholding_tax_causal' => :'String',
383
+ :'amount_due_discount' => :'Float'
384
+ }
385
+ end
386
+
387
+ # List of attributes with nullable: true
388
+ def self.openapi_nullable
389
+ Set.new([
390
+ :'ei_data',
391
+ :'items_list',
392
+ :'payments_list',
393
+ :'dn_ai_packages_number',
394
+ :'dn_ai_weight',
395
+ :'dn_ai_causal',
396
+ :'dn_ai_destination',
397
+ :'dn_ai_transporter',
398
+ :'dn_ai_notes',
399
+ :'extra_data',
400
+ :'seen_date',
401
+ :'next_due_date',
402
+ :'attachment_token',
403
+ :'ei_raw',
404
+ :'show_tspay_button',
405
+ :'amount_rivalsa_taxable',
406
+ :'amount_global_cassa_taxable',
407
+ :'amount_cassa_taxable',
408
+ :'amount_cassa2',
409
+ :'amount_cassa2_taxable',
410
+ :'amount_withholding_tax_taxable',
411
+ :'amount_enasarco_taxable',
412
+ :'amount_other_withholding_tax_taxable',
413
+ :'ei_cassa_type',
414
+ :'ei_cassa2_type',
415
+ :'ei_withholding_tax_causal',
416
+ :'ei_other_withholding_tax_type',
417
+ :'ei_other_withholding_tax_causal',
418
+ ])
419
+ end
420
+
421
+ # Initializes the object
422
+ # @param [Hash] attributes Model attributes in the form of hash
423
+ def initialize(attributes = {})
424
+ if (!attributes.is_a?(Hash))
425
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FattureInCloud_Ruby_Sdk::IssuedDocument` initialize method"
426
+ end
427
+
428
+ # check to see if the attribute exists and convert string to symbol for hash key
429
+ attributes = attributes.each_with_object({}) { |(k, v), h|
430
+ if (!self.class.attribute_map.key?(k.to_sym))
431
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FattureInCloud_Ruby_Sdk::IssuedDocument`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
432
+ end
433
+ h[k.to_sym] = v
434
+ }
435
+
436
+ if attributes.key?(:'id')
437
+ self.id = attributes[:'id']
438
+ end
439
+
440
+ if attributes.key?(:'entity')
441
+ self.entity = attributes[:'entity']
442
+ end
443
+
444
+ if attributes.key?(:'type')
445
+ self.type = attributes[:'type']
446
+ else
447
+ self.type = 'invoice'
448
+ end
449
+
450
+ if attributes.key?(:'number')
451
+ self.number = attributes[:'number']
452
+ end
453
+
454
+ if attributes.key?(:'numeration')
455
+ self.numeration = attributes[:'numeration']
456
+ end
457
+
458
+ if attributes.key?(:'date')
459
+ self.date = attributes[:'date']
460
+ end
461
+
462
+ if attributes.key?(:'currency')
463
+ self.currency = attributes[:'currency']
464
+ end
465
+
466
+ if attributes.key?(:'language')
467
+ self.language = attributes[:'language']
468
+ end
469
+
470
+ if attributes.key?(:'subject')
471
+ self.subject = attributes[:'subject']
472
+ end
473
+
474
+ if attributes.key?(:'visible_subject')
475
+ self.visible_subject = attributes[:'visible_subject']
476
+ end
477
+
478
+ if attributes.key?(:'rc_center')
479
+ self.rc_center = attributes[:'rc_center']
480
+ end
481
+
482
+ if attributes.key?(:'notes')
483
+ self.notes = attributes[:'notes']
484
+ end
485
+
486
+ if attributes.key?(:'rivalsa')
487
+ self.rivalsa = attributes[:'rivalsa']
488
+ end
489
+
490
+ if attributes.key?(:'cassa')
491
+ self.cassa = attributes[:'cassa']
492
+ end
493
+
494
+ if attributes.key?(:'withholding_tax')
495
+ self.withholding_tax = attributes[:'withholding_tax']
496
+ end
497
+
498
+ if attributes.key?(:'withholding_tax_taxable')
499
+ self.withholding_tax_taxable = attributes[:'withholding_tax_taxable']
500
+ end
501
+
502
+ if attributes.key?(:'other_withholding_tax')
503
+ self.other_withholding_tax = attributes[:'other_withholding_tax']
504
+ end
505
+
506
+ if attributes.key?(:'stamp_duty')
507
+ self.stamp_duty = attributes[:'stamp_duty']
508
+ end
509
+
510
+ if attributes.key?(:'payment_method')
511
+ self.payment_method = attributes[:'payment_method']
512
+ end
513
+
514
+ if attributes.key?(:'use_split_payment')
515
+ self.use_split_payment = attributes[:'use_split_payment']
516
+ else
517
+ self.use_split_payment = false
518
+ end
519
+
520
+ if attributes.key?(:'use_gross_prices')
521
+ self.use_gross_prices = attributes[:'use_gross_prices']
522
+ else
523
+ self.use_gross_prices = false
524
+ end
525
+
526
+ if attributes.key?(:'e_invoice')
527
+ self.e_invoice = attributes[:'e_invoice']
528
+ else
529
+ self.e_invoice = false
530
+ end
531
+
532
+ if attributes.key?(:'ei_data')
533
+ self.ei_data = attributes[:'ei_data']
534
+ end
535
+
536
+ if attributes.key?(:'items_list')
537
+ if (value = attributes[:'items_list']).is_a?(Array)
538
+ self.items_list = value
539
+ end
540
+ end
541
+
542
+ if attributes.key?(:'payments_list')
543
+ if (value = attributes[:'payments_list']).is_a?(Array)
544
+ self.payments_list = value
545
+ end
546
+ end
547
+
548
+ if attributes.key?(:'template')
549
+ self.template = attributes[:'template']
550
+ end
551
+
552
+ if attributes.key?(:'delivery_note_template')
553
+ self.delivery_note_template = attributes[:'delivery_note_template']
554
+ end
555
+
556
+ if attributes.key?(:'acc_inv_template')
557
+ self.acc_inv_template = attributes[:'acc_inv_template']
558
+ end
559
+
560
+ if attributes.key?(:'h_margins')
561
+ self.h_margins = attributes[:'h_margins']
562
+ end
563
+
564
+ if attributes.key?(:'show_payments')
565
+ self.show_payments = attributes[:'show_payments']
566
+ end
567
+
568
+ if attributes.key?(:'show_payment_method')
569
+ self.show_payment_method = attributes[:'show_payment_method']
570
+ end
571
+
572
+ if attributes.key?(:'show_totals')
573
+ self.show_totals = attributes[:'show_totals']
574
+ else
575
+ self.show_totals = 'all'
576
+ end
577
+
578
+ if attributes.key?(:'v_margins')
579
+ self.v_margins = attributes[:'v_margins']
580
+ end
581
+
582
+ if attributes.key?(:'show_paypal_button')
583
+ self.show_paypal_button = attributes[:'show_paypal_button']
584
+ else
585
+ self.show_paypal_button = false
586
+ end
587
+
588
+ if attributes.key?(:'show_notification_button')
589
+ self.show_notification_button = attributes[:'show_notification_button']
590
+ else
591
+ self.show_notification_button = false
592
+ end
593
+
594
+ if attributes.key?(:'delivery_note')
595
+ self.delivery_note = attributes[:'delivery_note']
596
+ end
597
+
598
+ if attributes.key?(:'accompanying_invoice')
599
+ self.accompanying_invoice = attributes[:'accompanying_invoice']
600
+ else
601
+ self.accompanying_invoice = false
602
+ end
603
+
604
+ if attributes.key?(:'dn_number')
605
+ self.dn_number = attributes[:'dn_number']
606
+ end
607
+
608
+ if attributes.key?(:'dn_date')
609
+ self.dn_date = attributes[:'dn_date']
610
+ end
611
+
612
+ if attributes.key?(:'dn_ai_packages_number')
613
+ self.dn_ai_packages_number = attributes[:'dn_ai_packages_number']
614
+ end
615
+
616
+ if attributes.key?(:'dn_ai_weight')
617
+ self.dn_ai_weight = attributes[:'dn_ai_weight']
618
+ end
619
+
620
+ if attributes.key?(:'dn_ai_causal')
621
+ self.dn_ai_causal = attributes[:'dn_ai_causal']
622
+ end
623
+
624
+ if attributes.key?(:'dn_ai_destination')
625
+ self.dn_ai_destination = attributes[:'dn_ai_destination']
626
+ end
627
+
628
+ if attributes.key?(:'dn_ai_transporter')
629
+ self.dn_ai_transporter = attributes[:'dn_ai_transporter']
630
+ end
631
+
632
+ if attributes.key?(:'dn_ai_notes')
633
+ self.dn_ai_notes = attributes[:'dn_ai_notes']
634
+ end
635
+
636
+ if attributes.key?(:'refers_to')
637
+ self.refers_to = attributes[:'refers_to']
638
+ end
639
+
640
+ if attributes.key?(:'is_marked')
641
+ self.is_marked = attributes[:'is_marked']
642
+ end
643
+
644
+ if attributes.key?(:'amount_net')
645
+ self.amount_net = attributes[:'amount_net']
646
+ end
647
+
648
+ if attributes.key?(:'amount_vat')
649
+ self.amount_vat = attributes[:'amount_vat']
650
+ end
651
+
652
+ if attributes.key?(:'amount_gross')
653
+ self.amount_gross = attributes[:'amount_gross']
654
+ end
655
+
656
+ if attributes.key?(:'amount_rivalsa')
657
+ self.amount_rivalsa = attributes[:'amount_rivalsa']
658
+ end
659
+
660
+ if attributes.key?(:'amount_cassa')
661
+ self.amount_cassa = attributes[:'amount_cassa']
662
+ end
663
+
664
+ if attributes.key?(:'amount_withholding_tax')
665
+ self.amount_withholding_tax = attributes[:'amount_withholding_tax']
666
+ end
667
+
668
+ if attributes.key?(:'amount_other_withholding_tax')
669
+ self.amount_other_withholding_tax = attributes[:'amount_other_withholding_tax']
670
+ end
671
+
672
+ if attributes.key?(:'extra_data')
673
+ self.extra_data = attributes[:'extra_data']
674
+ end
675
+
676
+ if attributes.key?(:'seen_date')
677
+ self.seen_date = attributes[:'seen_date']
678
+ end
679
+
680
+ if attributes.key?(:'next_due_date')
681
+ self.next_due_date = attributes[:'next_due_date']
682
+ end
683
+
684
+ if attributes.key?(:'url')
685
+ self.url = attributes[:'url']
686
+ end
687
+
688
+ if attributes.key?(:'attachment_url')
689
+ self.attachment_url = attributes[:'attachment_url']
690
+ end
691
+
692
+ if attributes.key?(:'attachment_token')
693
+ self.attachment_token = attributes[:'attachment_token']
694
+ end
695
+
696
+ if attributes.key?(:'ei_raw')
697
+ self.ei_raw = attributes[:'ei_raw']
698
+ end
699
+
700
+ if attributes.key?(:'show_tspay_button')
701
+ self.show_tspay_button = attributes[:'show_tspay_button']
702
+ end
703
+
704
+ if attributes.key?(:'year')
705
+ self.year = attributes[:'year']
706
+ end
707
+
708
+ if attributes.key?(:'amount_rivalsa_taxable')
709
+ self.amount_rivalsa_taxable = attributes[:'amount_rivalsa_taxable']
710
+ end
711
+
712
+ if attributes.key?(:'amount_global_cassa_taxable')
713
+ self.amount_global_cassa_taxable = attributes[:'amount_global_cassa_taxable']
714
+ end
715
+
716
+ if attributes.key?(:'amount_cassa_taxable')
717
+ self.amount_cassa_taxable = attributes[:'amount_cassa_taxable']
718
+ end
719
+
720
+ if attributes.key?(:'amount_cassa2')
721
+ self.amount_cassa2 = attributes[:'amount_cassa2']
722
+ end
723
+
724
+ if attributes.key?(:'amount_cassa2_taxable')
725
+ self.amount_cassa2_taxable = attributes[:'amount_cassa2_taxable']
726
+ end
727
+
728
+ if attributes.key?(:'amount_withholding_tax_taxable')
729
+ self.amount_withholding_tax_taxable = attributes[:'amount_withholding_tax_taxable']
730
+ end
731
+
732
+ if attributes.key?(:'amount_enasarco_taxable')
733
+ self.amount_enasarco_taxable = attributes[:'amount_enasarco_taxable']
734
+ end
735
+
736
+ if attributes.key?(:'amount_other_withholding_tax_taxable')
737
+ self.amount_other_withholding_tax_taxable = attributes[:'amount_other_withholding_tax_taxable']
738
+ end
739
+
740
+ if attributes.key?(:'ei_cassa_type')
741
+ self.ei_cassa_type = attributes[:'ei_cassa_type']
742
+ end
743
+
744
+ if attributes.key?(:'ei_cassa2_type')
745
+ self.ei_cassa2_type = attributes[:'ei_cassa2_type']
746
+ end
747
+
748
+ if attributes.key?(:'ei_withholding_tax_causal')
749
+ self.ei_withholding_tax_causal = attributes[:'ei_withholding_tax_causal']
750
+ end
751
+
752
+ if attributes.key?(:'ei_other_withholding_tax_type')
753
+ self.ei_other_withholding_tax_type = attributes[:'ei_other_withholding_tax_type']
754
+ end
755
+
756
+ if attributes.key?(:'ei_other_withholding_tax_causal')
757
+ self.ei_other_withholding_tax_causal = attributes[:'ei_other_withholding_tax_causal']
758
+ end
759
+
760
+ if attributes.key?(:'amount_due_discount')
761
+ self.amount_due_discount = attributes[:'amount_due_discount']
762
+ end
763
+ end
764
+
765
+ # Show invalid properties with the reasons. Usually used together with valid?
766
+ # @return Array for valid properties with the reasons
767
+ def list_invalid_properties
768
+ invalid_properties = Array.new
769
+ if !@rivalsa.nil? && @rivalsa > 100
770
+ invalid_properties.push('invalid value for "rivalsa", must be smaller than or equal to 100.')
771
+ end
772
+
773
+ if !@rivalsa.nil? && @rivalsa < 0
774
+ invalid_properties.push('invalid value for "rivalsa", must be greater than or equal to 0.')
775
+ end
776
+
777
+ if !@cassa.nil? && @cassa > 100
778
+ invalid_properties.push('invalid value for "cassa", must be smaller than or equal to 100.')
779
+ end
780
+
781
+ if !@cassa.nil? && @cassa < 0
782
+ invalid_properties.push('invalid value for "cassa", must be greater than or equal to 0.')
783
+ end
784
+
785
+ if !@withholding_tax.nil? && @withholding_tax > 100
786
+ invalid_properties.push('invalid value for "withholding_tax", must be smaller than or equal to 100.')
787
+ end
788
+
789
+ if !@withholding_tax.nil? && @withholding_tax < 0
790
+ invalid_properties.push('invalid value for "withholding_tax", must be greater than or equal to 0.')
791
+ end
792
+
793
+ if !@withholding_tax_taxable.nil? && @withholding_tax_taxable > 100
794
+ invalid_properties.push('invalid value for "withholding_tax_taxable", must be smaller than or equal to 100.')
795
+ end
796
+
797
+ if !@withholding_tax_taxable.nil? && @withholding_tax_taxable < 0
798
+ invalid_properties.push('invalid value for "withholding_tax_taxable", must be greater than or equal to 0.')
799
+ end
800
+
801
+ if !@other_withholding_tax.nil? && @other_withholding_tax > 100
802
+ invalid_properties.push('invalid value for "other_withholding_tax", must be smaller than or equal to 100.')
803
+ end
804
+
805
+ if !@other_withholding_tax.nil? && @other_withholding_tax < 0
806
+ invalid_properties.push('invalid value for "other_withholding_tax", must be greater than or equal to 0.')
807
+ end
808
+
809
+ invalid_properties
810
+ end
811
+
812
+ # Check to see if the all the properties in the model are valid
813
+ # @return true if the model is valid
814
+ def valid?
815
+ return false if !@rivalsa.nil? && @rivalsa > 100
816
+ return false if !@rivalsa.nil? && @rivalsa < 0
817
+ return false if !@cassa.nil? && @cassa > 100
818
+ return false if !@cassa.nil? && @cassa < 0
819
+ return false if !@withholding_tax.nil? && @withholding_tax > 100
820
+ return false if !@withholding_tax.nil? && @withholding_tax < 0
821
+ return false if !@withholding_tax_taxable.nil? && @withholding_tax_taxable > 100
822
+ return false if !@withholding_tax_taxable.nil? && @withholding_tax_taxable < 0
823
+ return false if !@other_withholding_tax.nil? && @other_withholding_tax > 100
824
+ return false if !@other_withholding_tax.nil? && @other_withholding_tax < 0
825
+ true
826
+ end
827
+
828
+ # Custom attribute writer method with validation
829
+ # @param [Object] rivalsa Value to be assigned
830
+ def rivalsa=(rivalsa)
831
+ if !rivalsa.nil? && rivalsa > 100
832
+ fail ArgumentError, 'invalid value for "rivalsa", must be smaller than or equal to 100.'
833
+ end
834
+
835
+ if !rivalsa.nil? && rivalsa < 0
836
+ fail ArgumentError, 'invalid value for "rivalsa", must be greater than or equal to 0.'
837
+ end
838
+
839
+ @rivalsa = rivalsa
840
+ end
841
+
842
+ # Custom attribute writer method with validation
843
+ # @param [Object] cassa Value to be assigned
844
+ def cassa=(cassa)
845
+ if !cassa.nil? && cassa > 100
846
+ fail ArgumentError, 'invalid value for "cassa", must be smaller than or equal to 100.'
847
+ end
848
+
849
+ if !cassa.nil? && cassa < 0
850
+ fail ArgumentError, 'invalid value for "cassa", must be greater than or equal to 0.'
851
+ end
852
+
853
+ @cassa = cassa
854
+ end
855
+
856
+ # Custom attribute writer method with validation
857
+ # @param [Object] withholding_tax Value to be assigned
858
+ def withholding_tax=(withholding_tax)
859
+ if !withholding_tax.nil? && withholding_tax > 100
860
+ fail ArgumentError, 'invalid value for "withholding_tax", must be smaller than or equal to 100.'
861
+ end
862
+
863
+ if !withholding_tax.nil? && withholding_tax < 0
864
+ fail ArgumentError, 'invalid value for "withholding_tax", must be greater than or equal to 0.'
865
+ end
866
+
867
+ @withholding_tax = withholding_tax
868
+ end
869
+
870
+ # Custom attribute writer method with validation
871
+ # @param [Object] withholding_tax_taxable Value to be assigned
872
+ def withholding_tax_taxable=(withholding_tax_taxable)
873
+ if !withholding_tax_taxable.nil? && withholding_tax_taxable > 100
874
+ fail ArgumentError, 'invalid value for "withholding_tax_taxable", must be smaller than or equal to 100.'
875
+ end
876
+
877
+ if !withholding_tax_taxable.nil? && withholding_tax_taxable < 0
878
+ fail ArgumentError, 'invalid value for "withholding_tax_taxable", must be greater than or equal to 0.'
879
+ end
880
+
881
+ @withholding_tax_taxable = withholding_tax_taxable
882
+ end
883
+
884
+ # Custom attribute writer method with validation
885
+ # @param [Object] other_withholding_tax Value to be assigned
886
+ def other_withholding_tax=(other_withholding_tax)
887
+ if !other_withholding_tax.nil? && other_withholding_tax > 100
888
+ fail ArgumentError, 'invalid value for "other_withholding_tax", must be smaller than or equal to 100.'
889
+ end
890
+
891
+ if !other_withholding_tax.nil? && other_withholding_tax < 0
892
+ fail ArgumentError, 'invalid value for "other_withholding_tax", must be greater than or equal to 0.'
893
+ end
894
+
895
+ @other_withholding_tax = other_withholding_tax
896
+ end
897
+
898
+ # Checks equality by comparing each attribute.
899
+ # @param [Object] Object to be compared
900
+ def ==(o)
901
+ return true if self.equal?(o)
902
+ self.class == o.class &&
903
+ id == o.id &&
904
+ entity == o.entity &&
905
+ type == o.type &&
906
+ number == o.number &&
907
+ numeration == o.numeration &&
908
+ date == o.date &&
909
+ currency == o.currency &&
910
+ language == o.language &&
911
+ subject == o.subject &&
912
+ visible_subject == o.visible_subject &&
913
+ rc_center == o.rc_center &&
914
+ notes == o.notes &&
915
+ rivalsa == o.rivalsa &&
916
+ cassa == o.cassa &&
917
+ withholding_tax == o.withholding_tax &&
918
+ withholding_tax_taxable == o.withholding_tax_taxable &&
919
+ other_withholding_tax == o.other_withholding_tax &&
920
+ stamp_duty == o.stamp_duty &&
921
+ payment_method == o.payment_method &&
922
+ use_split_payment == o.use_split_payment &&
923
+ use_gross_prices == o.use_gross_prices &&
924
+ e_invoice == o.e_invoice &&
925
+ ei_data == o.ei_data &&
926
+ items_list == o.items_list &&
927
+ payments_list == o.payments_list &&
928
+ template == o.template &&
929
+ delivery_note_template == o.delivery_note_template &&
930
+ acc_inv_template == o.acc_inv_template &&
931
+ h_margins == o.h_margins &&
932
+ show_payments == o.show_payments &&
933
+ show_payment_method == o.show_payment_method &&
934
+ show_totals == o.show_totals &&
935
+ v_margins == o.v_margins &&
936
+ show_paypal_button == o.show_paypal_button &&
937
+ show_notification_button == o.show_notification_button &&
938
+ delivery_note == o.delivery_note &&
939
+ accompanying_invoice == o.accompanying_invoice &&
940
+ dn_number == o.dn_number &&
941
+ dn_date == o.dn_date &&
942
+ dn_ai_packages_number == o.dn_ai_packages_number &&
943
+ dn_ai_weight == o.dn_ai_weight &&
944
+ dn_ai_causal == o.dn_ai_causal &&
945
+ dn_ai_destination == o.dn_ai_destination &&
946
+ dn_ai_transporter == o.dn_ai_transporter &&
947
+ dn_ai_notes == o.dn_ai_notes &&
948
+ refers_to == o.refers_to &&
949
+ is_marked == o.is_marked &&
950
+ amount_net == o.amount_net &&
951
+ amount_vat == o.amount_vat &&
952
+ amount_gross == o.amount_gross &&
953
+ amount_rivalsa == o.amount_rivalsa &&
954
+ amount_cassa == o.amount_cassa &&
955
+ amount_withholding_tax == o.amount_withholding_tax &&
956
+ amount_other_withholding_tax == o.amount_other_withholding_tax &&
957
+ extra_data == o.extra_data &&
958
+ seen_date == o.seen_date &&
959
+ next_due_date == o.next_due_date &&
960
+ url == o.url &&
961
+ attachment_url == o.attachment_url &&
962
+ attachment_token == o.attachment_token &&
963
+ ei_raw == o.ei_raw &&
964
+ show_tspay_button == o.show_tspay_button &&
965
+ year == o.year &&
966
+ amount_rivalsa_taxable == o.amount_rivalsa_taxable &&
967
+ amount_global_cassa_taxable == o.amount_global_cassa_taxable &&
968
+ amount_cassa_taxable == o.amount_cassa_taxable &&
969
+ amount_cassa2 == o.amount_cassa2 &&
970
+ amount_cassa2_taxable == o.amount_cassa2_taxable &&
971
+ amount_withholding_tax_taxable == o.amount_withholding_tax_taxable &&
972
+ amount_enasarco_taxable == o.amount_enasarco_taxable &&
973
+ amount_other_withholding_tax_taxable == o.amount_other_withholding_tax_taxable &&
974
+ ei_cassa_type == o.ei_cassa_type &&
975
+ ei_cassa2_type == o.ei_cassa2_type &&
976
+ ei_withholding_tax_causal == o.ei_withholding_tax_causal &&
977
+ ei_other_withholding_tax_type == o.ei_other_withholding_tax_type &&
978
+ ei_other_withholding_tax_causal == o.ei_other_withholding_tax_causal &&
979
+ amount_due_discount == o.amount_due_discount
980
+ end
981
+
982
+ # @see the `==` method
983
+ # @param [Object] Object to be compared
984
+ def eql?(o)
985
+ self == o
986
+ end
987
+
988
+ # Calculates hash code according to all attributes.
989
+ # @return [Integer] Hash code
990
+ def hash
991
+ [id, entity, type, number, numeration, date, currency, language, subject, visible_subject, rc_center, notes, rivalsa, cassa, withholding_tax, withholding_tax_taxable, other_withholding_tax, stamp_duty, payment_method, use_split_payment, use_gross_prices, e_invoice, ei_data, items_list, payments_list, template, delivery_note_template, acc_inv_template, h_margins, show_payments, show_payment_method, show_totals, v_margins, show_paypal_button, show_notification_button, delivery_note, accompanying_invoice, dn_number, dn_date, dn_ai_packages_number, dn_ai_weight, dn_ai_causal, dn_ai_destination, dn_ai_transporter, dn_ai_notes, refers_to, is_marked, amount_net, amount_vat, amount_gross, amount_rivalsa, amount_cassa, amount_withholding_tax, amount_other_withholding_tax, extra_data, seen_date, next_due_date, url, attachment_url, attachment_token, ei_raw, show_tspay_button, year, amount_rivalsa_taxable, amount_global_cassa_taxable, amount_cassa_taxable, amount_cassa2, amount_cassa2_taxable, amount_withholding_tax_taxable, amount_enasarco_taxable, amount_other_withholding_tax_taxable, ei_cassa_type, ei_cassa2_type, ei_withholding_tax_causal, ei_other_withholding_tax_type, ei_other_withholding_tax_causal, amount_due_discount].hash
992
+ end
993
+
994
+ # Builds the object from hash
995
+ # @param [Hash] attributes Model attributes in the form of hash
996
+ # @return [Object] Returns the model itself
997
+ def self.build_from_hash(attributes)
998
+ new.build_from_hash(attributes)
999
+ end
1000
+
1001
+ # Builds the object from hash
1002
+ # @param [Hash] attributes Model attributes in the form of hash
1003
+ # @return [Object] Returns the model itself
1004
+ def build_from_hash(attributes)
1005
+ return nil unless attributes.is_a?(Hash)
1006
+ self.class.openapi_types.each_pair do |key, type|
1007
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
1008
+ self.send("#{key}=", nil)
1009
+ elsif type =~ /\AArray<(.*)>/i
1010
+ # check to ensure the input is an array given that the attribute
1011
+ # is documented as an array but the input is not
1012
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
1013
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
1014
+ end
1015
+ elsif !attributes[self.class.attribute_map[key]].nil?
1016
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
1017
+ end
1018
+ end
1019
+
1020
+ self
1021
+ end
1022
+
1023
+ # Deserializes the data based on type
1024
+ # @param string type Data type
1025
+ # @param string value Value to be deserialized
1026
+ # @return [Object] Deserialized data
1027
+ def _deserialize(type, value)
1028
+ case type.to_sym
1029
+ when :Time
1030
+ Time.parse(value)
1031
+ when :Date
1032
+ Date.parse(value)
1033
+ when :String
1034
+ value.to_s
1035
+ when :Integer
1036
+ value.to_i
1037
+ when :Float
1038
+ value.to_f
1039
+ when :Boolean
1040
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
1041
+ true
1042
+ else
1043
+ false
1044
+ end
1045
+ when :Object
1046
+ # generic object (usually a Hash), return directly
1047
+ value
1048
+ when /\AArray<(?<inner_type>.+)>\z/
1049
+ inner_type = Regexp.last_match[:inner_type]
1050
+ value.map { |v| _deserialize(inner_type, v) }
1051
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
1052
+ k_type = Regexp.last_match[:k_type]
1053
+ v_type = Regexp.last_match[:v_type]
1054
+ {}.tap do |hash|
1055
+ value.each do |k, v|
1056
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
1057
+ end
1058
+ end
1059
+ else # model
1060
+ # models (e.g. Pet) or oneOf
1061
+ klass = FattureInCloud_Ruby_Sdk.const_get(type)
1062
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
1063
+ end
1064
+ end
1065
+
1066
+ # Returns the string representation of the object
1067
+ # @return [String] String presentation of the object
1068
+ def to_s
1069
+ to_hash.to_s
1070
+ end
1071
+
1072
+ # to_body is an alias to to_hash (backward compatibility)
1073
+ # @return [Hash] Returns the object in the form of hash
1074
+ def to_body
1075
+ to_hash
1076
+ end
1077
+
1078
+ # Returns the object in the form of hash
1079
+ # @return [Hash] Returns the object in the form of hash
1080
+ def to_hash
1081
+ hash = {}
1082
+ self.class.attribute_map.each_pair do |attr, param|
1083
+ value = self.send(attr)
1084
+ if value.nil?
1085
+ is_nullable = self.class.openapi_nullable.include?(attr)
1086
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
1087
+ end
1088
+
1089
+ hash[param] = _to_hash(value)
1090
+ end
1091
+ hash
1092
+ end
1093
+
1094
+ # Outputs non-array value in the form of hash
1095
+ # For object, use to_hash. Otherwise, just return the value
1096
+ # @param [Object] value Any valid value
1097
+ # @return [Hash] Returns the value in the form of hash
1098
+ def _to_hash(value)
1099
+ if value.is_a?(Array)
1100
+ value.compact.map { |v| _to_hash(v) }
1101
+ elsif value.is_a?(Hash)
1102
+ {}.tap do |hash|
1103
+ value.each { |k, v| hash[k] = _to_hash(v) }
1104
+ end
1105
+ elsif value.respond_to? :to_hash
1106
+ value.to_hash
1107
+ else
1108
+ value
1109
+ end
1110
+ end
1111
+
1112
+ end
1113
+
1114
+ end