factpulse 4.3.0 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (470) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -5
  3. data/Gemfile.lock +15 -13
  4. data/README.md +7 -1
  5. data/docs/AFNORContainsOrStartWithOperator.md +15 -0
  6. data/docs/AFNORContainsOrStrictOrStartWithOperator.md +15 -0
  7. data/docs/AFNORDirectoryLinePayloadLegalUnitFacilityRoutingCode.md +4 -0
  8. data/docs/AFNORDirectoryLinePayloadStatusLegalUnitFacilityRoutingCode.md +2 -0
  9. data/docs/AFNORDirectoryLineSearchPost200Response.md +1 -1
  10. data/docs/AFNORFacilityPayloadIncluded.md +2 -0
  11. data/docs/AFNORFlow.md +2 -2
  12. data/docs/AFNORLegalUnitPayloadIncluded.md +3 -1
  13. data/docs/AFNORPDPPAFlowServiceApi.md +3 -133
  14. data/docs/AFNORRoutingCodeSearch.md +2 -2
  15. data/docs/AFNORRoutingCodeSearchPost200Response.md +1 -1
  16. data/docs/AFNORSearchDirectoryLine.md +4 -2
  17. data/docs/AFNORSearchDirectoryLineSortingInner.md +2 -2
  18. data/docs/AFNORSearchFlowContent.md +3 -1
  19. data/docs/AFNORSearchFlowParams.md +3 -1
  20. data/docs/AFNORSearchSiren.md +1 -1
  21. data/docs/AFNORSearchSirenFiltersBusinessName.md +1 -1
  22. data/docs/AFNORSearchSirenSortingInner.md +2 -2
  23. data/docs/AFNORSearchSiret.md +1 -1
  24. data/docs/AFNORSearchSiretFiltersAddressLines.md +1 -1
  25. data/docs/AFNORSearchSiretFiltersLocality.md +1 -1
  26. data/docs/AFNORSearchSiretFiltersName.md +1 -1
  27. data/docs/AFNORSearchSiretSortingInner.md +2 -2
  28. data/docs/AFNORSirenSearchPost200Response.md +1 -1
  29. data/docs/AFNORSiretSearchPost200Response.md +1 -1
  30. data/docs/AFNORUniqueDirectoryLineStatus.md +15 -0
  31. data/docs/AFNORWebhook.md +12 -4
  32. data/docs/AFNORWebhookIdParam.md +5 -1
  33. data/docs/AFNORWebhookParams.md +8 -4
  34. data/docs/AllowanceCharge.md +1 -1
  35. data/docs/{AFNORAlgorithm.md → Amount3.md} +2 -2
  36. data/docs/{AFNORContainsOperator.md → Amounteur.md} +2 -2
  37. data/docs/ClientManagementApi.md +383 -0
  38. data/docs/CreateCDARRequest.md +7 -1
  39. data/docs/DeliveryParty.md +2 -2
  40. data/docs/ElectronicAddressInput.md +20 -0
  41. data/docs/ElectronicAddressOutput.md +20 -0
  42. data/docs/ElectronicSignatureApi.md +6 -6
  43. data/docs/EncaisseAmountByRate.md +20 -0
  44. data/docs/EncaisseeRequest.md +8 -2
  45. data/docs/FacturXConversionApi.md +2 -2
  46. data/docs/FacturXPDFXMLVerificationApi.md +4 -4
  47. data/docs/FacturXValidationApi.md +4 -4
  48. data/docs/FactureElectroniqueModelsInvoiceTypeCode.md +15 -0
  49. data/docs/{ChorusProCredentials.md → FactureElectroniqueRestApiSchemasChorusProChorusProCredentials.md} +2 -2
  50. data/docs/{ValidationErrorResponse.md → FactureElectroniqueRestApiSchemasValidationValidationErrorResponse.md} +2 -2
  51. data/docs/Flux10EReportingApi.md +22 -12
  52. data/docs/Flux6InvoiceLifecycleCDARApi.md +45 -21
  53. data/docs/GetChorusProIdRequest.md +1 -1
  54. data/docs/GetInvoiceRequest.md +1 -1
  55. data/docs/GetStructureRequest.md +1 -1
  56. data/docs/IncomingSupplier.md +4 -2
  57. data/docs/InvoiceGenerationApi.md +16 -10
  58. data/docs/InvoiceInput.md +4 -0
  59. data/docs/{AFNORCallbackAuthentication.md → Invoicedata.md} +9 -9
  60. data/docs/LifecycleEvent.md +2 -0
  61. data/docs/LifecycleResponse.md +9 -1
  62. data/docs/ParseApi.md +4 -4
  63. data/docs/Payee.md +2 -2
  64. data/docs/PaymentAmountByRate.md +4 -2
  65. data/docs/PostalAddressInput.md +30 -0
  66. data/docs/PostalAddressOutput.md +30 -0
  67. data/docs/ProcessingOptions.md +1 -1
  68. data/docs/Recipient.md +3 -3
  69. data/docs/ReportSender.md +2 -0
  70. data/docs/SearchStructureRequest.md +1 -1
  71. data/docs/SimplifiedInvoiceData.md +3 -3
  72. data/docs/SubmitCDARRequest.md +6 -0
  73. data/docs/SubmitCompleteInvoiceRequest.md +1 -1
  74. data/docs/SubmitInvoiceRequest.md +1 -1
  75. data/docs/SuperPDPConnectURLResponse.md +18 -0
  76. data/docs/SuperPDPDisconnectResponse.md +20 -0
  77. data/docs/SuperPDPStatusResponse.md +26 -0
  78. data/docs/SuperPDPVatRegimeResponse.md +20 -0
  79. data/docs/SuperPDPVatRegimeUpdateRequest.md +20 -0
  80. data/docs/Supplier.md +5 -3
  81. data/docs/TaxBreakdownInput.md +7 -1
  82. data/docs/TaxRepresentative.md +1 -1
  83. data/docs/Taxamounteur.md +15 -0
  84. data/docs/ValidateCDARRequest.md +3 -1
  85. data/docs/ValidationApi.md +3 -3
  86. data/docs/ValidationError.md +5 -1
  87. data/factpulse.gemspec +1 -1
  88. data/lib/factpulse/api/afnorpdppa_api.rb +1 -1
  89. data/lib/factpulse/api/afnorpdppa_directory_service_api.rb +1 -1
  90. data/lib/factpulse/api/afnorpdppa_flow_service_api.rb +7 -133
  91. data/lib/factpulse/api/async_tasks_api.rb +1 -1
  92. data/lib/factpulse/api/chorus_pro_api.rb +1 -1
  93. data/lib/factpulse/api/client_management_api.rb +333 -1
  94. data/lib/factpulse/api/downloads_api.rb +1 -1
  95. data/lib/factpulse/api/electronic_signature_api.rb +7 -7
  96. data/lib/factpulse/api/factur_x_conversion_api.rb +3 -3
  97. data/lib/factpulse/api/factur_x_validation_api.rb +5 -5
  98. data/lib/factpulse/api/factur_xpdfxml_verification_api.rb +5 -5
  99. data/lib/factpulse/api/flux10_e_reporting_api.rb +14 -5
  100. data/lib/factpulse/api/flux6_invoice_lifecycle_cdar_api.rb +33 -5
  101. data/lib/factpulse/api/health_api.rb +1 -1
  102. data/lib/factpulse/api/invoice_generation_api.rb +11 -5
  103. data/lib/factpulse/api/parse_api.rb +5 -5
  104. data/lib/factpulse/api/references_api.rb +1 -1
  105. data/lib/factpulse/api/validation_api.rb +5 -5
  106. data/lib/factpulse/api_client.rb +1 -1
  107. data/lib/factpulse/api_error.rb +1 -1
  108. data/lib/factpulse/api_model_base.rb +1 -1
  109. data/lib/factpulse/configuration.rb +1 -1
  110. data/lib/factpulse/helpers/client.rb +42 -5
  111. data/lib/factpulse/models/acknowledgment_status.rb +1 -1
  112. data/lib/factpulse/models/action_code_info.rb +1 -1
  113. data/lib/factpulse/models/action_codes_response.rb +1 -1
  114. data/lib/factpulse/models/additional_document.rb +1 -1
  115. data/lib/factpulse/models/afnor_acknowledgement.rb +1 -1
  116. data/lib/factpulse/models/afnor_acknowledgement_detail.rb +1 -1
  117. data/lib/factpulse/models/afnor_address_read.rb +1 -1
  118. data/lib/factpulse/models/{afnor_contains_operator.rb → afnor_contains_or_start_with_operator.rb} +6 -5
  119. data/lib/factpulse/models/afnor_contains_or_strict_operator.rb +1 -1
  120. data/lib/factpulse/models/{afnor_algorithm.rb → afnor_contains_or_strict_or_start_with_operator.rb} +8 -11
  121. data/lib/factpulse/models/afnor_core_flow_info.rb +6 -6
  122. data/lib/factpulse/models/afnor_credentials.rb +1 -1
  123. data/lib/factpulse/models/afnor_destination.rb +1 -1
  124. data/lib/factpulse/models/afnor_directory_line_field.rb +1 -1
  125. data/lib/factpulse/models/afnor_directory_line_payload_history_legal_unit_facility_routing_code_routing_code.rb +1 -1
  126. data/lib/factpulse/models/afnor_directory_line_payload_legal_unit_facility_routing_code.rb +51 -2
  127. data/lib/factpulse/models/afnor_directory_line_payload_status_legal_unit_facility_routing_code.rb +42 -2
  128. data/lib/factpulse/models/afnor_directory_line_search_post200_response.rb +4 -2
  129. data/lib/factpulse/models/afnor_directory_line_status.rb +1 -1
  130. data/lib/factpulse/models/afnor_entity_type.rb +1 -1
  131. data/lib/factpulse/models/afnor_error.rb +1 -1
  132. data/lib/factpulse/models/afnor_error_detail.rb +1 -1
  133. data/lib/factpulse/models/afnor_facility_administrative_status.rb +1 -1
  134. data/lib/factpulse/models/afnor_facility_payload_history.rb +1 -1
  135. data/lib/factpulse/models/afnor_facility_payload_history_ule_b2g_additional_data.rb +1 -1
  136. data/lib/factpulse/models/afnor_facility_payload_included.rb +11 -2
  137. data/lib/factpulse/models/afnor_facility_type.rb +1 -1
  138. data/lib/factpulse/models/afnor_flow.rb +45 -11
  139. data/lib/factpulse/models/afnor_flow_ack_status.rb +1 -1
  140. data/lib/factpulse/models/afnor_flow_direction.rb +1 -1
  141. data/lib/factpulse/models/afnor_flow_extension.rb +1 -1
  142. data/lib/factpulse/models/afnor_flow_info.rb +6 -6
  143. data/lib/factpulse/models/afnor_flow_info_extension.rb +1 -1
  144. data/lib/factpulse/models/afnor_flow_profile.rb +3 -2
  145. data/lib/factpulse/models/afnor_flow_syntax.rb +1 -1
  146. data/lib/factpulse/models/afnor_flow_type.rb +9 -3
  147. data/lib/factpulse/models/afnor_full_flow_info.rb +11 -11
  148. data/lib/factpulse/models/afnor_full_flow_info_extension.rb +7 -7
  149. data/lib/factpulse/models/afnor_health_check_response.rb +1 -1
  150. data/lib/factpulse/models/afnor_legal_unit_administrative_status.rb +1 -1
  151. data/lib/factpulse/models/afnor_legal_unit_payload_history.rb +1 -1
  152. data/lib/factpulse/models/afnor_legal_unit_payload_included.rb +14 -5
  153. data/lib/factpulse/models/afnor_processing_rule.rb +3 -2
  154. data/lib/factpulse/models/afnor_reason_code.rb +1 -1
  155. data/lib/factpulse/models/afnor_reason_code_enum.rb +1 -1
  156. data/lib/factpulse/models/afnor_recipient_platform_type.rb +1 -1
  157. data/lib/factpulse/models/afnor_result.rb +1 -1
  158. data/lib/factpulse/models/afnor_routing_code_administrative_status.rb +1 -1
  159. data/lib/factpulse/models/afnor_routing_code_field.rb +1 -1
  160. data/lib/factpulse/models/afnor_routing_code_payload_history_legal_unit_facility.rb +1 -1
  161. data/lib/factpulse/models/afnor_routing_code_search.rb +1 -1
  162. data/lib/factpulse/models/afnor_routing_code_search_filters.rb +1 -1
  163. data/lib/factpulse/models/afnor_routing_code_search_filters_administrative_status.rb +1 -1
  164. data/lib/factpulse/models/afnor_routing_code_search_filters_routing_code_name.rb +1 -1
  165. data/lib/factpulse/models/afnor_routing_code_search_filters_routing_identifier.rb +1 -1
  166. data/lib/factpulse/models/afnor_routing_code_search_post200_response.rb +4 -2
  167. data/lib/factpulse/models/afnor_routing_code_search_sorting_inner.rb +1 -1
  168. data/lib/factpulse/models/afnor_search_directory_line.rb +35 -2
  169. data/lib/factpulse/models/afnor_search_directory_line_filters.rb +1 -1
  170. data/lib/factpulse/models/afnor_search_directory_line_filters_addressing_identifier.rb +1 -1
  171. data/lib/factpulse/models/afnor_search_directory_line_filters_addressing_suffix.rb +1 -1
  172. data/lib/factpulse/models/afnor_search_directory_line_sorting_inner.rb +8 -8
  173. data/lib/factpulse/models/afnor_search_flow_content.rb +34 -2
  174. data/lib/factpulse/models/afnor_search_flow_filters.rb +6 -6
  175. data/lib/factpulse/models/afnor_search_flow_params.rb +13 -3
  176. data/lib/factpulse/models/afnor_search_siren.rb +1 -1
  177. data/lib/factpulse/models/afnor_search_siren_filters.rb +1 -1
  178. data/lib/factpulse/models/afnor_search_siren_filters_administrative_status.rb +1 -1
  179. data/lib/factpulse/models/afnor_search_siren_filters_business_name.rb +2 -2
  180. data/lib/factpulse/models/afnor_search_siren_filters_entity_type.rb +1 -1
  181. data/lib/factpulse/models/afnor_search_siren_filters_siren.rb +1 -1
  182. data/lib/factpulse/models/afnor_search_siren_sorting_inner.rb +8 -8
  183. data/lib/factpulse/models/afnor_search_siret.rb +1 -1
  184. data/lib/factpulse/models/afnor_search_siret_filters.rb +1 -1
  185. data/lib/factpulse/models/afnor_search_siret_filters_address_lines.rb +2 -2
  186. data/lib/factpulse/models/afnor_search_siret_filters_administrative_status.rb +1 -1
  187. data/lib/factpulse/models/afnor_search_siret_filters_country_subdivision.rb +1 -1
  188. data/lib/factpulse/models/afnor_search_siret_filters_facility_type.rb +1 -1
  189. data/lib/factpulse/models/afnor_search_siret_filters_locality.rb +2 -2
  190. data/lib/factpulse/models/afnor_search_siret_filters_name.rb +2 -2
  191. data/lib/factpulse/models/afnor_search_siret_filters_postal_code.rb +1 -1
  192. data/lib/factpulse/models/afnor_search_siret_filters_siret.rb +1 -1
  193. data/lib/factpulse/models/afnor_search_siret_sorting_inner.rb +8 -8
  194. data/lib/factpulse/models/afnor_siren_field.rb +1 -1
  195. data/lib/factpulse/models/afnor_siren_instructions.rb +1 -1
  196. data/lib/factpulse/models/afnor_siren_search_post200_response.rb +4 -2
  197. data/lib/factpulse/models/afnor_siret_field.rb +1 -1
  198. data/lib/factpulse/models/afnor_siret_instructions.rb +1 -1
  199. data/lib/factpulse/models/afnor_siret_search_post200_response.rb +4 -2
  200. data/lib/factpulse/models/afnor_sorting_order.rb +1 -1
  201. data/lib/factpulse/models/afnor_strict_operator.rb +1 -1
  202. data/lib/factpulse/models/afnor_strict_or_start_with_operator.rb +1 -1
  203. data/lib/factpulse/models/afnor_unique_directory_line_status.rb +40 -0
  204. data/lib/factpulse/models/afnor_webhook.rb +83 -40
  205. data/lib/factpulse/models/afnor_webhook_id_param.rb +23 -5
  206. data/lib/factpulse/models/afnor_webhook_params.rb +65 -40
  207. data/lib/factpulse/models/aggregated_payment_input.rb +1 -1
  208. data/lib/factpulse/models/aggregated_transaction_input.rb +1 -1
  209. data/lib/factpulse/models/allowance_charge.rb +2 -2
  210. data/lib/factpulse/models/allowance_charge_reason_code.rb +1 -1
  211. data/lib/factpulse/models/allowance_reason_code.rb +1 -1
  212. data/lib/factpulse/models/allowance_total_amount.rb +1 -1
  213. data/lib/factpulse/models/amount.rb +2 -2
  214. data/lib/factpulse/models/amount1.rb +2 -2
  215. data/lib/factpulse/models/amount2.rb +2 -2
  216. data/lib/factpulse/models/amount3.rb +104 -0
  217. data/lib/factpulse/models/amount_due.rb +1 -1
  218. data/lib/factpulse/models/amounteur.rb +104 -0
  219. data/lib/factpulse/models/api_error.rb +1 -1
  220. data/lib/factpulse/models/api_profile.rb +1 -1
  221. data/lib/factpulse/models/async_task_status.rb +1 -1
  222. data/lib/factpulse/models/base_amount.rb +1 -1
  223. data/lib/factpulse/models/bounding_box_schema.rb +1 -1
  224. data/lib/factpulse/models/buyercountry.rb +1 -1
  225. data/lib/factpulse/models/celery_status.rb +1 -1
  226. data/lib/factpulse/models/certificate_info_response.rb +1 -1
  227. data/lib/factpulse/models/charge_total_amount.rb +1 -1
  228. data/lib/factpulse/models/chorus_pro_destination.rb +1 -1
  229. data/lib/factpulse/models/chorus_pro_result.rb +1 -1
  230. data/lib/factpulse/models/client_activate_response.rb +1 -1
  231. data/lib/factpulse/models/client_create_request.rb +1 -1
  232. data/lib/factpulse/models/client_detail.rb +1 -1
  233. data/lib/factpulse/models/client_list_response.rb +1 -1
  234. data/lib/factpulse/models/client_summary.rb +1 -1
  235. data/lib/factpulse/models/client_update_request.rb +1 -1
  236. data/lib/factpulse/models/contact.rb +1 -1
  237. data/lib/factpulse/models/conversion_error_result.rb +1 -1
  238. data/lib/factpulse/models/conversion_extraction_info.rb +1 -1
  239. data/lib/factpulse/models/conversion_pending_input_result.rb +1 -1
  240. data/lib/factpulse/models/conversion_success_task_result.rb +1 -1
  241. data/lib/factpulse/models/conversion_task_status.rb +1 -1
  242. data/lib/factpulse/models/conversion_task_status_result.rb +1 -1
  243. data/lib/factpulse/models/conversion_validation_failed_result.rb +1 -1
  244. data/lib/factpulse/models/convert_resume_request.rb +1 -1
  245. data/lib/factpulse/models/convert_success_response.rb +1 -1
  246. data/lib/factpulse/models/convert_validation_failed_response.rb +1 -1
  247. data/lib/factpulse/models/country_code.rb +1 -1
  248. data/lib/factpulse/models/create_aggregated_report_request.rb +1 -1
  249. data/lib/factpulse/models/create_cdar_request.rb +70 -6
  250. data/lib/factpulse/models/create_e_reporting_request.rb +1 -1
  251. data/lib/factpulse/models/currency.rb +1 -1
  252. data/lib/factpulse/models/currency_code.rb +1 -1
  253. data/lib/factpulse/models/delivery_party.rb +3 -3
  254. data/lib/factpulse/models/destination.rb +1 -1
  255. data/lib/factpulse/models/doc_type.rb +1 -1
  256. data/lib/factpulse/models/document_type_info.rb +1 -1
  257. data/lib/factpulse/models/e_reporting_flow_type.rb +1 -1
  258. data/lib/factpulse/models/e_reporting_validation_error.rb +1 -1
  259. data/lib/factpulse/models/electronic_address.rb +2 -2
  260. data/lib/factpulse/models/{afnor_callback_signature.rb → electronic_address_input.rb} +29 -44
  261. data/lib/factpulse/models/{afnor_callback_parameters.rb → electronic_address_output.rb} +51 -46
  262. data/lib/factpulse/models/{afnor_basic_authentication.rb → encaisse_amount_by_rate.rb} +37 -35
  263. data/lib/factpulse/models/encaisseamount.rb +2 -2
  264. data/lib/factpulse/models/encaisseamount1.rb +1 -1
  265. data/lib/factpulse/models/encaissee_request.rb +54 -23
  266. data/lib/factpulse/models/enriched_invoice_info.rb +1 -1
  267. data/lib/factpulse/models/error_level.rb +1 -1
  268. data/lib/factpulse/models/error_source.rb +1 -1
  269. data/lib/factpulse/models/extraction_info.rb +1 -1
  270. data/lib/factpulse/models/factur_x_invoice.rb +1 -1
  271. data/lib/factpulse/models/factur_xpdf_info.rb +1 -1
  272. data/lib/factpulse/models/facture_electronique_models_invoice_type_code.rb +54 -0
  273. data/lib/factpulse/models/facture_electronique_rest_api_schemas_cdar_validation_error_response.rb +1 -1
  274. data/lib/factpulse/models/{chorus_pro_credentials.rb → facture_electronique_rest_api_schemas_chorus_pro_chorus_pro_credentials.rb} +4 -4
  275. data/lib/factpulse/models/facture_electronique_rest_api_schemas_ereporting_invoice_type_code.rb +1 -1
  276. data/lib/factpulse/models/facture_electronique_rest_api_schemas_processing_chorus_pro_credentials.rb +1 -1
  277. data/lib/factpulse/models/{validation_error_response.rb → facture_electronique_rest_api_schemas_validation_validation_error_response.rb} +4 -4
  278. data/lib/factpulse/models/field_status.rb +1 -1
  279. data/lib/factpulse/models/file_info.rb +1 -1
  280. data/lib/factpulse/models/files_info.rb +1 -1
  281. data/lib/factpulse/models/flow_direction.rb +1 -1
  282. data/lib/factpulse/models/flow_profile.rb +3 -2
  283. data/lib/factpulse/models/flow_summary.rb +1 -1
  284. data/lib/factpulse/models/flow_syntax.rb +1 -1
  285. data/lib/factpulse/models/flow_type.rb +9 -3
  286. data/lib/factpulse/models/generate_aggregated_report_response.rb +1 -1
  287. data/lib/factpulse/models/generate_cdar_response.rb +1 -1
  288. data/lib/factpulse/models/generate_certificate_request.rb +1 -1
  289. data/lib/factpulse/models/generate_certificate_response.rb +1 -1
  290. data/lib/factpulse/models/generate_e_reporting_response.rb +1 -1
  291. data/lib/factpulse/models/generation_success_result.rb +1 -1
  292. data/lib/factpulse/models/generation_task_status.rb +1 -1
  293. data/lib/factpulse/models/generation_task_status_result.rb +1 -1
  294. data/lib/factpulse/models/get_chorus_pro_id_request.rb +2 -2
  295. data/lib/factpulse/models/get_chorus_pro_id_response.rb +1 -1
  296. data/lib/factpulse/models/get_invoice_request.rb +2 -2
  297. data/lib/factpulse/models/get_invoice_response.rb +1 -1
  298. data/lib/factpulse/models/get_structure_request.rb +2 -2
  299. data/lib/factpulse/models/get_structure_response.rb +1 -1
  300. data/lib/factpulse/models/global_allowance_amount.rb +1 -1
  301. data/lib/factpulse/models/gross_unit_price.rb +1 -1
  302. data/lib/factpulse/models/http_validation_error.rb +1 -1
  303. data/lib/factpulse/models/incoming_invoice.rb +1 -1
  304. data/lib/factpulse/models/incoming_supplier.rb +14 -4
  305. data/lib/factpulse/models/invoice_format.rb +1 -1
  306. data/lib/factpulse/models/invoice_input.rb +22 -2
  307. data/lib/factpulse/models/invoice_lifecycle.rb +1 -1
  308. data/lib/factpulse/models/invoice_line.rb +1 -1
  309. data/lib/factpulse/models/invoice_line_allowance_amount.rb +1 -1
  310. data/lib/factpulse/models/invoice_note.rb +1 -1
  311. data/lib/factpulse/models/invoice_payment_input.rb +1 -1
  312. data/lib/factpulse/models/invoice_references.rb +1 -1
  313. data/lib/factpulse/models/invoice_status.rb +1 -1
  314. data/lib/factpulse/models/invoice_totals.rb +1 -1
  315. data/lib/factpulse/models/invoice_totals_prepayment.rb +1 -1
  316. data/lib/factpulse/models/invoice_type_code.rb +1 -1
  317. data/lib/factpulse/models/invoice_type_code_output.rb +1 -1
  318. data/lib/factpulse/models/{afnor_callback_authentication.rb → invoicedata.rb} +5 -5
  319. data/lib/factpulse/models/invoicing_framework.rb +1 -1
  320. data/lib/factpulse/models/invoicing_framework_code.rb +1 -1
  321. data/lib/factpulse/models/issuer_role_code.rb +1 -1
  322. data/lib/factpulse/models/key_rotation_request.rb +1 -1
  323. data/lib/factpulse/models/key_rotation_response.rb +1 -1
  324. data/lib/factpulse/models/lifecycle_event.rb +12 -2
  325. data/lib/factpulse/models/lifecycle_response.rb +49 -5
  326. data/lib/factpulse/models/line_net_amount.rb +1 -1
  327. data/lib/factpulse/models/line_sub_type.rb +1 -1
  328. data/lib/factpulse/models/line_total_amount.rb +1 -1
  329. data/lib/factpulse/models/location_inner.rb +1 -1
  330. data/lib/factpulse/models/mandatory_note_schema.rb +1 -1
  331. data/lib/factpulse/models/manual_rate.rb +1 -1
  332. data/lib/factpulse/models/manual_vat_rate.rb +1 -1
  333. data/lib/factpulse/models/missing_field.rb +1 -1
  334. data/lib/factpulse/models/operation_nature.rb +1 -1
  335. data/lib/factpulse/models/output_format.rb +1 -1
  336. data/lib/factpulse/models/page_dimensions_schema.rb +1 -1
  337. data/lib/factpulse/models/parse_factur_x_response.rb +1 -1
  338. data/lib/factpulse/models/payee.rb +3 -3
  339. data/lib/factpulse/models/payment_amount_by_rate.rb +15 -5
  340. data/lib/factpulse/models/payment_card.rb +1 -1
  341. data/lib/factpulse/models/payment_means.rb +3 -2
  342. data/lib/factpulse/models/pdf_validation_result_api.rb +1 -1
  343. data/lib/factpulse/models/pdp_config_response.rb +1 -1
  344. data/lib/factpulse/models/pdp_config_update_request.rb +1 -1
  345. data/lib/factpulse/models/pdp_credentials.rb +1 -1
  346. data/lib/factpulse/models/percentage.rb +1 -1
  347. data/lib/factpulse/models/postal_address.rb +7 -7
  348. data/lib/factpulse/models/postal_address_input.rb +209 -0
  349. data/lib/factpulse/models/postal_address_output.rb +209 -0
  350. data/lib/factpulse/models/price_allowance_amount.rb +1 -1
  351. data/lib/factpulse/models/price_basis_quantity.rb +1 -1
  352. data/lib/factpulse/models/processing_options.rb +2 -2
  353. data/lib/factpulse/models/processing_rule.rb +3 -2
  354. data/lib/factpulse/models/product_characteristic.rb +1 -1
  355. data/lib/factpulse/models/product_classification.rb +1 -1
  356. data/lib/factpulse/models/quantity.rb +1 -1
  357. data/lib/factpulse/models/rate.rb +1 -1
  358. data/lib/factpulse/models/rate1.rb +1 -1
  359. data/lib/factpulse/models/reason_code_info.rb +1 -1
  360. data/lib/factpulse/models/reason_codes_response.rb +1 -1
  361. data/lib/factpulse/models/recipient.rb +4 -4
  362. data/lib/factpulse/models/recipient_input.rb +1 -1
  363. data/lib/factpulse/models/refusee_request.rb +1 -1
  364. data/lib/factpulse/models/report_issuer.rb +1 -1
  365. data/lib/factpulse/models/report_period.rb +1 -1
  366. data/lib/factpulse/models/report_sender.rb +12 -2
  367. data/lib/factpulse/models/rounding_amount.rb +1 -1
  368. data/lib/factpulse/models/schematron_validation_error.rb +1 -1
  369. data/lib/factpulse/models/scheme_id.rb +1 -1
  370. data/lib/factpulse/models/search_flow_request.rb +1 -1
  371. data/lib/factpulse/models/search_flow_response.rb +1 -1
  372. data/lib/factpulse/models/search_services_response.rb +1 -1
  373. data/lib/factpulse/models/search_structure_request.rb +2 -2
  374. data/lib/factpulse/models/search_structure_response.rb +1 -1
  375. data/lib/factpulse/models/secret_status.rb +1 -1
  376. data/lib/factpulse/models/sellercountry.rb +1 -1
  377. data/lib/factpulse/models/signature_info.rb +1 -1
  378. data/lib/factpulse/models/signature_info_api.rb +1 -1
  379. data/lib/factpulse/models/signature_parameters.rb +1 -1
  380. data/lib/factpulse/models/signature_success_result.rb +1 -1
  381. data/lib/factpulse/models/signature_task_status.rb +1 -1
  382. data/lib/factpulse/models/signature_task_status_result.rb +1 -1
  383. data/lib/factpulse/models/simplified_cdar_response.rb +1 -1
  384. data/lib/factpulse/models/simplified_invoice_data.rb +5 -5
  385. data/lib/factpulse/models/status_code_info.rb +1 -1
  386. data/lib/factpulse/models/status_codes_response.rb +1 -1
  387. data/lib/factpulse/models/structure_info.rb +1 -1
  388. data/lib/factpulse/models/structure_parameters.rb +1 -1
  389. data/lib/factpulse/models/structure_service.rb +1 -1
  390. data/lib/factpulse/models/submission_mode.rb +1 -1
  391. data/lib/factpulse/models/submit_aggregated_report_request.rb +1 -1
  392. data/lib/factpulse/models/submit_cdar_request.rb +66 -2
  393. data/lib/factpulse/models/submit_cdar_response.rb +1 -1
  394. data/lib/factpulse/models/submit_cdarxml_request.rb +1 -1
  395. data/lib/factpulse/models/submit_complete_invoice_request.rb +2 -3
  396. data/lib/factpulse/models/submit_complete_invoice_response.rb +1 -1
  397. data/lib/factpulse/models/submit_e_reporting_request.rb +1 -1
  398. data/lib/factpulse/models/submit_e_reporting_response.rb +1 -1
  399. data/lib/factpulse/models/submit_flow_request.rb +1 -1
  400. data/lib/factpulse/models/submit_flow_response.rb +1 -1
  401. data/lib/factpulse/models/submit_gross_amount.rb +1 -1
  402. data/lib/factpulse/models/submit_invoice_request.rb +2 -2
  403. data/lib/factpulse/models/submit_invoice_response.rb +1 -1
  404. data/lib/factpulse/models/submit_net_amount.rb +1 -1
  405. data/lib/factpulse/models/submit_vat_amount.rb +1 -1
  406. data/lib/factpulse/models/{afnor_webhook_patch_payload.rb → super_pdp_connect_url_response.rb} +30 -31
  407. data/lib/factpulse/models/{afnor_callback_header.rb → super_pdp_disconnect_response.rb} +38 -35
  408. data/lib/factpulse/models/super_pdp_status_response.rb +208 -0
  409. data/lib/factpulse/models/super_pdp_vat_regime_response.rb +195 -0
  410. data/lib/factpulse/models/{afnor_webhook_metadata.rb → super_pdp_vat_regime_update_request.rb} +33 -63
  411. data/lib/factpulse/models/supplementary_attachment.rb +1 -1
  412. data/lib/factpulse/models/supplier.rb +15 -5
  413. data/lib/factpulse/models/task_error_result.rb +1 -1
  414. data/lib/factpulse/models/task_response.rb +1 -1
  415. data/lib/factpulse/models/tax_breakdown_input.rb +35 -5
  416. data/lib/factpulse/models/tax_due_date_type.rb +1 -1
  417. data/lib/factpulse/models/tax_representative.rb +2 -2
  418. data/lib/factpulse/models/taxable_amount.rb +1 -1
  419. data/lib/factpulse/models/taxableamount.rb +1 -1
  420. data/lib/factpulse/models/taxamount.rb +1 -1
  421. data/lib/factpulse/models/taxamount1.rb +1 -1
  422. data/lib/factpulse/models/taxamount2.rb +1 -1
  423. data/lib/factpulse/models/taxamounteur.rb +104 -0
  424. data/lib/factpulse/models/taxexclusiveamount.rb +1 -1
  425. data/lib/factpulse/models/taxexclusiveamount1.rb +1 -1
  426. data/lib/factpulse/models/total_gross_amount.rb +1 -1
  427. data/lib/factpulse/models/total_net_amount.rb +1 -1
  428. data/lib/factpulse/models/total_vat_amount.rb +1 -1
  429. data/lib/factpulse/models/transaction_category.rb +1 -1
  430. data/lib/factpulse/models/transmission_type_code.rb +1 -1
  431. data/lib/factpulse/models/unit_net_price.rb +1 -1
  432. data/lib/factpulse/models/unit_of_measure.rb +1 -1
  433. data/lib/factpulse/models/validate_cdar_request.rb +18 -6
  434. data/lib/factpulse/models/validate_cdar_response.rb +1 -1
  435. data/lib/factpulse/models/validate_e_reporting_request.rb +1 -1
  436. data/lib/factpulse/models/validate_e_reporting_response.rb +1 -1
  437. data/lib/factpulse/models/validation_error.rb +24 -5
  438. data/lib/factpulse/models/validation_error_detail.rb +1 -1
  439. data/lib/factpulse/models/validation_info.rb +1 -1
  440. data/lib/factpulse/models/validation_success_response.rb +1 -1
  441. data/lib/factpulse/models/validation_success_task_result.rb +1 -1
  442. data/lib/factpulse/models/validation_task_status.rb +1 -1
  443. data/lib/factpulse/models/validation_task_status_result.rb +1 -1
  444. data/lib/factpulse/models/vat_accounting_code.rb +1 -1
  445. data/lib/factpulse/models/vat_amount.rb +1 -1
  446. data/lib/factpulse/models/vat_category.rb +1 -1
  447. data/lib/factpulse/models/vat_line.rb +1 -1
  448. data/lib/factpulse/models/vat_point_date_code.rb +1 -1
  449. data/lib/factpulse/models/vat_rate.rb +1 -1
  450. data/lib/factpulse/models/vatex_code_info.rb +1 -1
  451. data/lib/factpulse/models/vatex_codes_response.rb +1 -1
  452. data/lib/factpulse/models/verification_success_response.rb +1 -1
  453. data/lib/factpulse/models/verification_success_task_result.rb +1 -1
  454. data/lib/factpulse/models/verification_typed_task_status.rb +1 -1
  455. data/lib/factpulse/models/verification_typed_task_status_result.rb +1 -1
  456. data/lib/factpulse/models/verified_field_schema.rb +1 -1
  457. data/lib/factpulse/models/webhook_secret_delete_response.rb +1 -1
  458. data/lib/factpulse/models/webhook_secret_generate_response.rb +1 -1
  459. data/lib/factpulse/models/webhook_secret_status_response.rb +1 -1
  460. data/lib/factpulse/version.rb +2 -2
  461. data/lib/factpulse.rb +21 -13
  462. metadata +42 -26
  463. data/docs/AFNORBasicAuthentication.md +0 -20
  464. data/docs/AFNORCallbackHeader.md +0 -20
  465. data/docs/AFNORCallbackParameters.md +0 -24
  466. data/docs/AFNORCallbackSignature.md +0 -20
  467. data/docs/AFNOROAuth2Authentication.md +0 -22
  468. data/docs/AFNORWebhookMetadata.md +0 -24
  469. data/docs/AFNORWebhookPatchPayload.md +0 -22
  470. data/lib/factpulse/models/afnoro_auth2_authentication.rb +0 -216
@@ -0,0 +1,195 @@
1
+ =begin
2
+ #FactPulse REST API
3
+
4
+ # REST API for electronic invoicing in France: Factur-X (CII), UBL 2.1, AFNOR PDP/PA, electronic signatures. ## 🎯 Main Features ### 📄 Invoice Generation - **Formats**: CII XML, UBL 2.1 XML, or Factur-X PDF/A-3 - **Profiles** (CII/PDF): MINIMUM, BASIC, EN16931, EXTENDED - **UBL**: Always EN16931 compliant - **Standards**: EN 16931 (EU directive 2014/55), ISO 19005-3 (PDF/A-3), CII (UN/CEFACT), UBL 2.1 (OASIS) - **Simplified Format**: Generation from SIRET + auto-enrichment (Chorus Pro API + Business Search) ### ✅ Factur-X - Validation - **XML Validation**: Schematron (45 to 210+ rules depending on profile) - **PDF Validation**: PDF/A-3, Factur-X XMP metadata - **VeraPDF**: Strict PDF/A validation (146+ ISO 19005-3 rules) ### ✍️ Electronic Signature - **Standards**: PAdES-B-B, PAdES-B-T (RFC 3161 timestamping), PAdES-B-LT (long-term archival) - **eIDAS Levels**: SES (self-signed), AdES (commercial CA), QES (QTSP) - **Validation**: Cryptographic integrity and certificate verification ### 📋 Flux 6 - Invoice Lifecycle (CDAR) - **CDAR Messages**: Acknowledgements, invoice statuses - **PPF Statuses**: REFUSED (210), PAID (212) ### 📊 Flux 10 - E-Reporting - **Tax Declarations**: International B2B, B2C - **Flow Types**: 10.1 (B2B transactions), 10.2 (B2B payments), 10.3 (B2C transactions), 10.4 (B2C payments) ### 📡 AFNOR PDP/PA (XP Z12-013) - **Flow Service**: Submit and search flows to PDPs - **Directory Service**: Company search (SIREN/SIRET) - **Multi-client**: Support for multiple PDP configs per user ### 🏛️ Chorus Pro - **Public Sector Invoicing**: Complete API for Chorus Pro ### ⏳ Async Tasks - **Celery**: Asynchronous generation, validation and signing - **Polling**: Status tracking via `/tasks/{task_id}/status` - **Webhooks**: Automatic notifications when tasks complete ## 🔒 Authentication All requests require a **JWT token** in the Authorization header: ``` Authorization: Bearer YOUR_JWT_TOKEN ``` ### How to obtain a JWT token? #### 🔑 Method 1: `/api/token/` API (Recommended) **URL:** `https://factpulse.fr/api/token/` This method is **recommended** for integration in your applications and CI/CD workflows. **Prerequisites:** Having set a password on your account **For users registered via email/password:** - You already have a password, use it directly **For users registered via OAuth (Google/GitHub):** - You must first set a password at: https://factpulse.fr/accounts/password/set/ - Once the password is created, you can use the API **Request example:** ```bash curl -X POST https://factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d '{ \"username\": \"your_email@example.com\", \"password\": \"your_password\" }' ``` **Optional `client_uid` parameter:** To select credentials for a specific client (PA/PDP, Chorus Pro, signing certificates), add `client_uid`: ```bash curl -X POST https://factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d '{ \"username\": \"your_email@example.com\", \"password\": \"your_password\", \"client_uid\": \"550e8400-e29b-41d4-a716-446655440000\" }' ``` The `client_uid` will be included in the JWT and allow the API to automatically use: - AFNOR/PDP credentials configured for this client - Chorus Pro credentials configured for this client - Electronic signature certificates configured for this client **Response:** ```json { \"access\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\", // Access token (validity: 30 min) \"refresh\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\" // Refresh token (validity: 7 days) } ``` **Advantages:** - ✅ Full automation (CI/CD, scripts) - ✅ Programmatic token management - ✅ Refresh token support for automatic access renewal - ✅ Easy integration in any language/tool #### 🖥️ Method 2: Dashboard Generation (Alternative) **URL:** https://factpulse.fr/api/dashboard/ This method is suitable for quick tests or occasional use via the graphical interface. **How it works:** - Log in to the dashboard - Use the \"Generate Test Token\" or \"Generate Production Token\" buttons - Works for **all** users (OAuth and email/password), without requiring a password **Token types:** - **Test Token**: 24h validity, 1000 calls/day quota (free) - **Production Token**: 7 days validity, quota based on your plan **Advantages:** - ✅ Quick for API testing - ✅ No password required - ✅ Simple visual interface **Disadvantages:** - ❌ Requires manual action - ❌ No refresh token - ❌ Less suited for automation ### 📚 Full Documentation For more information on authentication and API usage: https://factpulse.fr/documentation-api/
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: contact@factpulse.fr
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.21.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FactPulse
17
+ # VAT regime of the client's company at SuperPDP.
18
+ class SuperPDPVatRegimeResponse < ApiModelBase
19
+ attr_accessor :vat_regime
20
+
21
+ # Whether VAT on debits is opted for
22
+ attr_accessor :has_vat_on_debits
23
+
24
+ class EnumAttributeValidator
25
+ attr_reader :datatype
26
+ attr_reader :allowable_values
27
+
28
+ def initialize(datatype, allowable_values)
29
+ @allowable_values = allowable_values.map do |value|
30
+ case datatype.to_s
31
+ when /Integer/i
32
+ value.to_i
33
+ when /Float/i
34
+ value.to_f
35
+ else
36
+ value
37
+ end
38
+ end
39
+ end
40
+
41
+ def valid?(value)
42
+ !value || allowable_values.include?(value)
43
+ end
44
+ end
45
+
46
+ # Attribute mapping from ruby-style variable name to JSON key.
47
+ def self.attribute_map
48
+ {
49
+ :'vat_regime' => :'vatRegime',
50
+ :'has_vat_on_debits' => :'hasVatOnDebits'
51
+ }
52
+ end
53
+
54
+ # Returns attribute mapping this model knows about
55
+ def self.acceptable_attribute_map
56
+ attribute_map
57
+ end
58
+
59
+ # Returns all the JSON keys this model knows about
60
+ def self.acceptable_attributes
61
+ acceptable_attribute_map.values
62
+ end
63
+
64
+ # Attribute type mapping.
65
+ def self.openapi_types
66
+ {
67
+ :'vat_regime' => :'String',
68
+ :'has_vat_on_debits' => :'Boolean'
69
+ }
70
+ end
71
+
72
+ # List of attributes with nullable: true
73
+ def self.openapi_nullable
74
+ Set.new([
75
+ :'vat_regime',
76
+ ])
77
+ end
78
+
79
+ # Initializes the object
80
+ # @param [Hash] attributes Model attributes in the form of hash
81
+ def initialize(attributes = {})
82
+ if (!attributes.is_a?(Hash))
83
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::SuperPDPVatRegimeResponse` initialize method"
84
+ end
85
+
86
+ # check to see if the attribute exists and convert string to symbol for hash key
87
+ acceptable_attribute_map = self.class.acceptable_attribute_map
88
+ attributes = attributes.each_with_object({}) { |(k, v), h|
89
+ if (!acceptable_attribute_map.key?(k.to_sym))
90
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::SuperPDPVatRegimeResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
91
+ end
92
+ h[k.to_sym] = v
93
+ }
94
+
95
+ if attributes.key?(:'vat_regime')
96
+ self.vat_regime = attributes[:'vat_regime']
97
+ end
98
+
99
+ if attributes.key?(:'has_vat_on_debits')
100
+ self.has_vat_on_debits = attributes[:'has_vat_on_debits']
101
+ else
102
+ self.has_vat_on_debits = false
103
+ end
104
+ end
105
+
106
+ # Show invalid properties with the reasons. Usually used together with valid?
107
+ # @return Array for valid properties with the reasons
108
+ def list_invalid_properties
109
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
110
+ invalid_properties = Array.new
111
+ invalid_properties
112
+ end
113
+
114
+ # Check to see if the all the properties in the model are valid
115
+ # @return true if the model is valid
116
+ def valid?
117
+ warn '[DEPRECATED] the `valid?` method is obsolete'
118
+ vat_regime_validator = EnumAttributeValidator.new('String', ["monthly", "quarterly", "simplified", "vat_exemption"])
119
+ return false unless vat_regime_validator.valid?(@vat_regime)
120
+ true
121
+ end
122
+
123
+ # Custom attribute writer method checking allowed values (enum).
124
+ # @param [Object] vat_regime Object to be assigned
125
+ def vat_regime=(vat_regime)
126
+ validator = EnumAttributeValidator.new('String', ["monthly", "quarterly", "simplified", "vat_exemption"])
127
+ unless validator.valid?(vat_regime)
128
+ fail ArgumentError, "invalid value for \"vat_regime\", must be one of #{validator.allowable_values}."
129
+ end
130
+ @vat_regime = vat_regime
131
+ end
132
+
133
+ # Checks equality by comparing each attribute.
134
+ # @param [Object] Object to be compared
135
+ def ==(o)
136
+ return true if self.equal?(o)
137
+ self.class == o.class &&
138
+ vat_regime == o.vat_regime &&
139
+ has_vat_on_debits == o.has_vat_on_debits
140
+ end
141
+
142
+ # @see the `==` method
143
+ # @param [Object] Object to be compared
144
+ def eql?(o)
145
+ self == o
146
+ end
147
+
148
+ # Calculates hash code according to all attributes.
149
+ # @return [Integer] Hash code
150
+ def hash
151
+ [vat_regime, has_vat_on_debits].hash
152
+ end
153
+
154
+ # Builds the object from hash
155
+ # @param [Hash] attributes Model attributes in the form of hash
156
+ # @return [Object] Returns the model itself
157
+ def self.build_from_hash(attributes)
158
+ return nil unless attributes.is_a?(Hash)
159
+ attributes = attributes.transform_keys(&:to_sym)
160
+ transformed_hash = {}
161
+ openapi_types.each_pair do |key, type|
162
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
163
+ transformed_hash["#{key}"] = nil
164
+ elsif type =~ /\AArray<(.*)>/i
165
+ # check to ensure the input is an array given that the attribute
166
+ # is documented as an array but the input is not
167
+ if attributes[attribute_map[key]].is_a?(Array)
168
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
169
+ end
170
+ elsif !attributes[attribute_map[key]].nil?
171
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
172
+ end
173
+ end
174
+ new(transformed_hash)
175
+ end
176
+
177
+ # Returns the object in the form of hash
178
+ # @return [Hash] Returns the object in the form of hash
179
+ def to_hash
180
+ hash = {}
181
+ self.class.attribute_map.each_pair do |attr, param|
182
+ value = self.send(attr)
183
+ if value.nil?
184
+ is_nullable = self.class.openapi_nullable.include?(attr)
185
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
186
+ end
187
+
188
+ hash[param] = _to_hash(value)
189
+ end
190
+ hash
191
+ end
192
+
193
+ end
194
+
195
+ end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: contact@factpulse.fr
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0-SNAPSHOT
9
+ Generator version: 7.21.0
10
10
 
11
11
  =end
12
12
 
@@ -14,14 +14,12 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FactPulse
17
- class AFNORWebhookMetadata < ApiModelBase
18
- attr_accessor :processing_rule
17
+ # VAT regime to set on the client's company at SuperPDP.
18
+ class SuperPDPVatRegimeUpdateRequest < ApiModelBase
19
+ # monthly (réel normal mensuel), quarterly (réel normal trimestriel), simplified (régime simplifié), vat_exemption (franchise en base)
20
+ attr_accessor :vat_regime
19
21
 
20
- attr_accessor :flow_type
21
-
22
- attr_accessor :flow_direction
23
-
24
- attr_accessor :ack_status
22
+ attr_accessor :has_vat_on_debits
25
23
 
26
24
  class EnumAttributeValidator
27
25
  attr_reader :datatype
@@ -48,10 +46,8 @@ module FactPulse
48
46
  # Attribute mapping from ruby-style variable name to JSON key.
49
47
  def self.attribute_map
50
48
  {
51
- :'processing_rule' => :'processingRule',
52
- :'flow_type' => :'flowType',
53
- :'flow_direction' => :'flowDirection',
54
- :'ack_status' => :'ackStatus'
49
+ :'vat_regime' => :'vatRegime',
50
+ :'has_vat_on_debits' => :'hasVatOnDebits'
55
51
  }
56
52
  end
57
53
 
@@ -68,16 +64,15 @@ module FactPulse
68
64
  # Attribute type mapping.
69
65
  def self.openapi_types
70
66
  {
71
- :'processing_rule' => :'AFNORProcessingRule',
72
- :'flow_type' => :'AFNORFlowType',
73
- :'flow_direction' => :'AFNORFlowDirection',
74
- :'ack_status' => :'AFNORFlowAckStatus'
67
+ :'vat_regime' => :'String',
68
+ :'has_vat_on_debits' => :'Boolean'
75
69
  }
76
70
  end
77
71
 
78
72
  # List of attributes with nullable: true
79
73
  def self.openapi_nullable
80
74
  Set.new([
75
+ :'has_vat_on_debits'
81
76
  ])
82
77
  end
83
78
 
@@ -85,36 +80,26 @@ module FactPulse
85
80
  # @param [Hash] attributes Model attributes in the form of hash
86
81
  def initialize(attributes = {})
87
82
  if (!attributes.is_a?(Hash))
88
- fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::AFNORWebhookMetadata` initialize method"
83
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::SuperPDPVatRegimeUpdateRequest` initialize method"
89
84
  end
90
85
 
91
86
  # check to see if the attribute exists and convert string to symbol for hash key
92
87
  acceptable_attribute_map = self.class.acceptable_attribute_map
93
88
  attributes = attributes.each_with_object({}) { |(k, v), h|
94
89
  if (!acceptable_attribute_map.key?(k.to_sym))
95
- fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::AFNORWebhookMetadata`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
90
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::SuperPDPVatRegimeUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
96
91
  end
97
92
  h[k.to_sym] = v
98
93
  }
99
94
 
100
- if attributes.key?(:'processing_rule')
101
- self.processing_rule = attributes[:'processing_rule']
102
- end
103
-
104
- if attributes.key?(:'flow_type')
105
- self.flow_type = attributes[:'flow_type']
106
- else
107
- self.flow_type = nil
108
- end
109
-
110
- if attributes.key?(:'flow_direction')
111
- self.flow_direction = attributes[:'flow_direction']
95
+ if attributes.key?(:'vat_regime')
96
+ self.vat_regime = attributes[:'vat_regime']
112
97
  else
113
- self.flow_direction = nil
98
+ self.vat_regime = nil
114
99
  end
115
100
 
116
- if attributes.key?(:'ack_status')
117
- self.ack_status = attributes[:'ack_status']
101
+ if attributes.key?(:'has_vat_on_debits')
102
+ self.has_vat_on_debits = attributes[:'has_vat_on_debits']
118
103
  end
119
104
  end
120
105
 
@@ -123,12 +108,8 @@ module FactPulse
123
108
  def list_invalid_properties
124
109
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
125
110
  invalid_properties = Array.new
126
- if @flow_type.nil?
127
- invalid_properties.push('invalid value for "flow_type", flow_type cannot be nil.')
128
- end
129
-
130
- if @flow_direction.nil?
131
- invalid_properties.push('invalid value for "flow_direction", flow_direction cannot be nil.')
111
+ if @vat_regime.nil?
112
+ invalid_properties.push('invalid value for "vat_regime", vat_regime cannot be nil.')
132
113
  end
133
114
 
134
115
  invalid_properties
@@ -138,29 +119,20 @@ module FactPulse
138
119
  # @return true if the model is valid
139
120
  def valid?
140
121
  warn '[DEPRECATED] the `valid?` method is obsolete'
141
- return false if @flow_type.nil?
142
- return false if @flow_direction.nil?
122
+ return false if @vat_regime.nil?
123
+ vat_regime_validator = EnumAttributeValidator.new('String', ["monthly", "quarterly", "simplified", "vat_exemption"])
124
+ return false unless vat_regime_validator.valid?(@vat_regime)
143
125
  true
144
126
  end
145
127
 
146
- # Custom attribute writer method with validation
147
- # @param [Object] flow_type Value to be assigned
148
- def flow_type=(flow_type)
149
- if flow_type.nil?
150
- fail ArgumentError, 'flow_type cannot be nil'
128
+ # Custom attribute writer method checking allowed values (enum).
129
+ # @param [Object] vat_regime Object to be assigned
130
+ def vat_regime=(vat_regime)
131
+ validator = EnumAttributeValidator.new('String', ["monthly", "quarterly", "simplified", "vat_exemption"])
132
+ unless validator.valid?(vat_regime)
133
+ fail ArgumentError, "invalid value for \"vat_regime\", must be one of #{validator.allowable_values}."
151
134
  end
152
-
153
- @flow_type = flow_type
154
- end
155
-
156
- # Custom attribute writer method with validation
157
- # @param [Object] flow_direction Value to be assigned
158
- def flow_direction=(flow_direction)
159
- if flow_direction.nil?
160
- fail ArgumentError, 'flow_direction cannot be nil'
161
- end
162
-
163
- @flow_direction = flow_direction
135
+ @vat_regime = vat_regime
164
136
  end
165
137
 
166
138
  # Checks equality by comparing each attribute.
@@ -168,10 +140,8 @@ module FactPulse
168
140
  def ==(o)
169
141
  return true if self.equal?(o)
170
142
  self.class == o.class &&
171
- processing_rule == o.processing_rule &&
172
- flow_type == o.flow_type &&
173
- flow_direction == o.flow_direction &&
174
- ack_status == o.ack_status
143
+ vat_regime == o.vat_regime &&
144
+ has_vat_on_debits == o.has_vat_on_debits
175
145
  end
176
146
 
177
147
  # @see the `==` method
@@ -183,7 +153,7 @@ module FactPulse
183
153
  # Calculates hash code according to all attributes.
184
154
  # @return [Integer] Hash code
185
155
  def hash
186
- [processing_rule, flow_type, flow_direction, ack_status].hash
156
+ [vat_regime, has_vat_on_debits].hash
187
157
  end
188
158
 
189
159
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: contact@factpulse.fr
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0-SNAPSHOT
9
+ Generator version: 7.21.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: contact@factpulse.fr
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0-SNAPSHOT
9
+ Generator version: 7.21.0
10
10
 
11
11
  =end
12
12
 
@@ -39,6 +39,8 @@ module FactPulse
39
39
 
40
40
  attr_accessor :vat_number
41
41
 
42
+ attr_accessor :tax_registration_id
43
+
42
44
  attr_accessor :iban
43
45
 
44
46
  attr_accessor :bic
@@ -67,6 +69,7 @@ module FactPulse
67
69
  :'siren' => :'siren',
68
70
  :'siret' => :'siret',
69
71
  :'vat_number' => :'vat_number',
72
+ :'tax_registration_id' => :'tax_registration_id',
70
73
  :'iban' => :'iban',
71
74
  :'bic' => :'bic',
72
75
  :'bank_account_name' => :'bank_account_name',
@@ -90,7 +93,7 @@ module FactPulse
90
93
  # Attribute type mapping.
91
94
  def self.openapi_types
92
95
  {
93
- :'electronic_address' => :'ElectronicAddress',
96
+ :'electronic_address' => :'ElectronicAddressInput',
94
97
  :'supplier_id' => :'Integer',
95
98
  :'private_id' => :'String',
96
99
  :'supplier_bank_account_code' => :'Integer',
@@ -101,13 +104,14 @@ module FactPulse
101
104
  :'siren' => :'String',
102
105
  :'siret' => :'String',
103
106
  :'vat_number' => :'String',
107
+ :'tax_registration_id' => :'String',
104
108
  :'iban' => :'String',
105
109
  :'bic' => :'String',
106
110
  :'bank_account_name' => :'String',
107
111
  :'proprietary_id' => :'String',
108
- :'postal_address' => :'PostalAddress',
112
+ :'postal_address' => :'PostalAddressInput',
109
113
  :'contact' => :'Contact',
110
- :'global_ids' => :'Array<ElectronicAddress>'
114
+ :'global_ids' => :'Array<ElectronicAddressInput>'
111
115
  }
112
116
  end
113
117
 
@@ -124,6 +128,7 @@ module FactPulse
124
128
  :'siren',
125
129
  :'siret',
126
130
  :'vat_number',
131
+ :'tax_registration_id',
127
132
  :'iban',
128
133
  :'bic',
129
134
  :'bank_account_name',
@@ -196,6 +201,10 @@ module FactPulse
196
201
  self.vat_number = attributes[:'vat_number']
197
202
  end
198
203
 
204
+ if attributes.key?(:'tax_registration_id')
205
+ self.tax_registration_id = attributes[:'tax_registration_id']
206
+ end
207
+
199
208
  if attributes.key?(:'iban')
200
209
  self.iban = attributes[:'iban']
201
210
  end
@@ -258,6 +267,7 @@ module FactPulse
258
267
  siren == o.siren &&
259
268
  siret == o.siret &&
260
269
  vat_number == o.vat_number &&
270
+ tax_registration_id == o.tax_registration_id &&
261
271
  iban == o.iban &&
262
272
  bic == o.bic &&
263
273
  bank_account_name == o.bank_account_name &&
@@ -276,7 +286,7 @@ module FactPulse
276
286
  # Calculates hash code according to all attributes.
277
287
  # @return [Integer] Hash code
278
288
  def hash
279
- [electronic_address, supplier_id, private_id, supplier_bank_account_code, supplier_service_id, name, trading_business_name, legal_description, siren, siret, vat_number, iban, bic, bank_account_name, proprietary_id, postal_address, contact, global_ids].hash
289
+ [electronic_address, supplier_id, private_id, supplier_bank_account_code, supplier_service_id, name, trading_business_name, legal_description, siren, siret, vat_number, tax_registration_id, iban, bic, bank_account_name, proprietary_id, postal_address, contact, global_ids].hash
280
290
  end
281
291
 
282
292
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: contact@factpulse.fr
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0-SNAPSHOT
9
+ Generator version: 7.21.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: contact@factpulse.fr
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0-SNAPSHOT
9
+ Generator version: 7.21.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: contact@factpulse.fr
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0-SNAPSHOT
9
+ Generator version: 7.21.0
10
10
 
11
11
  =end
12
12
 
@@ -22,12 +22,21 @@ module FactPulse
22
22
 
23
23
  attr_accessor :tax_amount
24
24
 
25
+ attr_accessor :tax_category_code
26
+
27
+ attr_accessor :exemption_reason_code
28
+
29
+ attr_accessor :exemption_reason
30
+
25
31
  # Attribute mapping from ruby-style variable name to JSON key.
26
32
  def self.attribute_map
27
33
  {
28
34
  :'rate' => :'rate',
29
35
  :'taxable_amount' => :'taxableAmount',
30
- :'tax_amount' => :'taxAmount'
36
+ :'tax_amount' => :'taxAmount',
37
+ :'tax_category_code' => :'taxCategoryCode',
38
+ :'exemption_reason_code' => :'exemptionReasonCode',
39
+ :'exemption_reason' => :'exemptionReason'
31
40
  }
32
41
  end
33
42
 
@@ -46,13 +55,19 @@ module FactPulse
46
55
  {
47
56
  :'rate' => :'Rate1',
48
57
  :'taxable_amount' => :'Taxableamount',
49
- :'tax_amount' => :'Taxamount2'
58
+ :'tax_amount' => :'Taxamount2',
59
+ :'tax_category_code' => :'String',
60
+ :'exemption_reason_code' => :'String',
61
+ :'exemption_reason' => :'String'
50
62
  }
51
63
  end
52
64
 
53
65
  # List of attributes with nullable: true
54
66
  def self.openapi_nullable
55
67
  Set.new([
68
+ :'tax_category_code',
69
+ :'exemption_reason_code',
70
+ :'exemption_reason'
56
71
  ])
57
72
  end
58
73
 
@@ -89,6 +104,18 @@ module FactPulse
89
104
  else
90
105
  self.tax_amount = nil
91
106
  end
107
+
108
+ if attributes.key?(:'tax_category_code')
109
+ self.tax_category_code = attributes[:'tax_category_code']
110
+ end
111
+
112
+ if attributes.key?(:'exemption_reason_code')
113
+ self.exemption_reason_code = attributes[:'exemption_reason_code']
114
+ end
115
+
116
+ if attributes.key?(:'exemption_reason')
117
+ self.exemption_reason = attributes[:'exemption_reason']
118
+ end
92
119
  end
93
120
 
94
121
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -158,7 +185,10 @@ module FactPulse
158
185
  self.class == o.class &&
159
186
  rate == o.rate &&
160
187
  taxable_amount == o.taxable_amount &&
161
- tax_amount == o.tax_amount
188
+ tax_amount == o.tax_amount &&
189
+ tax_category_code == o.tax_category_code &&
190
+ exemption_reason_code == o.exemption_reason_code &&
191
+ exemption_reason == o.exemption_reason
162
192
  end
163
193
 
164
194
  # @see the `==` method
@@ -170,7 +200,7 @@ module FactPulse
170
200
  # Calculates hash code according to all attributes.
171
201
  # @return [Integer] Hash code
172
202
  def hash
173
- [rate, taxable_amount, tax_amount].hash
203
+ [rate, taxable_amount, tax_amount, tax_category_code, exemption_reason_code, exemption_reason].hash
174
204
  end
175
205
 
176
206
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: contact@factpulse.fr
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0-SNAPSHOT
9
+ Generator version: 7.21.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: contact@factpulse.fr
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0-SNAPSHOT
9
+ Generator version: 7.21.0
10
10
 
11
11
  =end
12
12
 
@@ -49,7 +49,7 @@ module FactPulse
49
49
  {
50
50
  :'name' => :'String',
51
51
  :'vat_number' => :'String',
52
- :'postal_address' => :'PostalAddress'
52
+ :'postal_address' => :'PostalAddressInput'
53
53
  }
54
54
  end
55
55
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: contact@factpulse.fr
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0-SNAPSHOT
9
+ Generator version: 7.21.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: contact@factpulse.fr
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0-SNAPSHOT
9
+ Generator version: 7.21.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: contact@factpulse.fr
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0-SNAPSHOT
9
+ Generator version: 7.21.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: contact@factpulse.fr
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0-SNAPSHOT
9
+ Generator version: 7.21.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: contact@factpulse.fr
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0-SNAPSHOT
9
+ Generator version: 7.21.0
10
10
 
11
11
  =end
12
12