factpulse 4.3.0 → 4.4.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 (456) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -5
  3. data/Gemfile.lock +11 -9
  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 → Amounteur.md} +2 -2
  36. data/docs/ChorusProCredentials.md +8 -8
  37. data/docs/ChorusProDestination.md +1 -1
  38. data/docs/ClientManagementApi.md +231 -0
  39. data/docs/CreateCDARRequest.md +3 -1
  40. data/docs/DeliveryParty.md +2 -2
  41. data/docs/ElectronicAddressInput.md +20 -0
  42. data/docs/ElectronicAddressOutput.md +20 -0
  43. data/docs/EncaisseeRequest.md +3 -1
  44. data/docs/FactureElectroniqueModelsInvoiceTypeCode.md +15 -0
  45. data/docs/FactureElectroniqueRestApiSchemasChorusProChorusProCredentials.md +26 -0
  46. data/docs/Flux10EReportingApi.md +18 -8
  47. data/docs/Flux6InvoiceLifecycleCDARApi.md +39 -19
  48. data/docs/GetChorusProIdRequest.md +1 -1
  49. data/docs/GetInvoiceRequest.md +1 -1
  50. data/docs/GetStructureRequest.md +1 -1
  51. data/docs/IncomingSupplier.md +4 -2
  52. data/docs/InvoiceGenerationApi.md +14 -8
  53. data/docs/InvoiceInput.md +5 -1
  54. data/docs/{AFNORCallbackAuthentication.md → Invoicedata.md} +9 -9
  55. data/docs/LifecycleEvent.md +2 -0
  56. data/docs/Payee.md +2 -2
  57. data/docs/PaymentAmountByRate.md +4 -2
  58. data/docs/PostalAddressInput.md +30 -0
  59. data/docs/PostalAddressOutput.md +30 -0
  60. data/docs/ProcessingOptions.md +1 -1
  61. data/docs/Recipient.md +3 -3
  62. data/docs/ReportSender.md +2 -0
  63. data/docs/SearchStructureRequest.md +1 -1
  64. data/docs/SimplifiedInvoiceData.md +3 -3
  65. data/docs/SubmitCDARRequest.md +2 -0
  66. data/docs/SubmitCompleteInvoiceRequest.md +1 -1
  67. data/docs/SubmitInvoiceRequest.md +1 -1
  68. data/docs/SuperPDPConnectURLResponse.md +18 -0
  69. data/docs/SuperPDPDisconnectResponse.md +20 -0
  70. data/docs/SuperPDPStatusResponse.md +26 -0
  71. data/docs/Supplier.md +5 -3
  72. data/docs/TaxBreakdownInput.md +7 -1
  73. data/docs/TaxRepresentative.md +1 -1
  74. data/docs/{AFNORContainsOperator.md → Taxamounteur.md} +2 -2
  75. data/factpulse.gemspec +1 -1
  76. data/lib/factpulse/api/afnorpdppa_api.rb +1 -1
  77. data/lib/factpulse/api/afnorpdppa_directory_service_api.rb +1 -1
  78. data/lib/factpulse/api/afnorpdppa_flow_service_api.rb +7 -133
  79. data/lib/factpulse/api/async_tasks_api.rb +1 -1
  80. data/lib/factpulse/api/chorus_pro_api.rb +1 -1
  81. data/lib/factpulse/api/client_management_api.rb +196 -1
  82. data/lib/factpulse/api/downloads_api.rb +1 -1
  83. data/lib/factpulse/api/electronic_signature_api.rb +1 -1
  84. data/lib/factpulse/api/factur_x_conversion_api.rb +1 -1
  85. data/lib/factpulse/api/factur_x_validation_api.rb +1 -1
  86. data/lib/factpulse/api/factur_xpdfxml_verification_api.rb +1 -1
  87. data/lib/factpulse/api/flux10_e_reporting_api.rb +10 -1
  88. data/lib/factpulse/api/flux6_invoice_lifecycle_cdar_api.rb +25 -3
  89. data/lib/factpulse/api/health_api.rb +1 -1
  90. data/lib/factpulse/api/invoice_generation_api.rb +9 -3
  91. data/lib/factpulse/api/parse_api.rb +1 -1
  92. data/lib/factpulse/api/references_api.rb +1 -1
  93. data/lib/factpulse/api/validation_api.rb +1 -1
  94. data/lib/factpulse/api_client.rb +1 -1
  95. data/lib/factpulse/api_error.rb +1 -1
  96. data/lib/factpulse/api_model_base.rb +1 -1
  97. data/lib/factpulse/configuration.rb +1 -1
  98. data/lib/factpulse/helpers/client.rb +42 -5
  99. data/lib/factpulse/models/acknowledgment_status.rb +1 -1
  100. data/lib/factpulse/models/action_code_info.rb +1 -1
  101. data/lib/factpulse/models/action_codes_response.rb +1 -1
  102. data/lib/factpulse/models/additional_document.rb +1 -1
  103. data/lib/factpulse/models/afnor_acknowledgement.rb +1 -1
  104. data/lib/factpulse/models/afnor_acknowledgement_detail.rb +1 -1
  105. data/lib/factpulse/models/afnor_address_read.rb +1 -1
  106. data/lib/factpulse/models/{afnor_contains_operator.rb → afnor_contains_or_start_with_operator.rb} +6 -5
  107. data/lib/factpulse/models/afnor_contains_or_strict_operator.rb +1 -1
  108. data/lib/factpulse/models/{afnor_algorithm.rb → afnor_contains_or_strict_or_start_with_operator.rb} +8 -11
  109. data/lib/factpulse/models/afnor_core_flow_info.rb +6 -6
  110. data/lib/factpulse/models/afnor_credentials.rb +1 -1
  111. data/lib/factpulse/models/afnor_destination.rb +1 -1
  112. data/lib/factpulse/models/afnor_directory_line_field.rb +1 -1
  113. data/lib/factpulse/models/afnor_directory_line_payload_history_legal_unit_facility_routing_code_routing_code.rb +1 -1
  114. data/lib/factpulse/models/afnor_directory_line_payload_legal_unit_facility_routing_code.rb +51 -2
  115. data/lib/factpulse/models/afnor_directory_line_payload_status_legal_unit_facility_routing_code.rb +42 -2
  116. data/lib/factpulse/models/afnor_directory_line_search_post200_response.rb +4 -2
  117. data/lib/factpulse/models/afnor_directory_line_status.rb +1 -1
  118. data/lib/factpulse/models/afnor_entity_type.rb +1 -1
  119. data/lib/factpulse/models/afnor_error.rb +1 -1
  120. data/lib/factpulse/models/afnor_error_detail.rb +1 -1
  121. data/lib/factpulse/models/afnor_facility_administrative_status.rb +1 -1
  122. data/lib/factpulse/models/afnor_facility_payload_history.rb +1 -1
  123. data/lib/factpulse/models/afnor_facility_payload_history_ule_b2g_additional_data.rb +1 -1
  124. data/lib/factpulse/models/afnor_facility_payload_included.rb +11 -2
  125. data/lib/factpulse/models/afnor_facility_type.rb +1 -1
  126. data/lib/factpulse/models/afnor_flow.rb +45 -11
  127. data/lib/factpulse/models/afnor_flow_ack_status.rb +1 -1
  128. data/lib/factpulse/models/afnor_flow_direction.rb +1 -1
  129. data/lib/factpulse/models/afnor_flow_extension.rb +1 -1
  130. data/lib/factpulse/models/afnor_flow_info.rb +6 -6
  131. data/lib/factpulse/models/afnor_flow_info_extension.rb +1 -1
  132. data/lib/factpulse/models/afnor_flow_profile.rb +3 -2
  133. data/lib/factpulse/models/afnor_flow_syntax.rb +1 -1
  134. data/lib/factpulse/models/afnor_flow_type.rb +9 -3
  135. data/lib/factpulse/models/afnor_full_flow_info.rb +11 -11
  136. data/lib/factpulse/models/afnor_full_flow_info_extension.rb +7 -7
  137. data/lib/factpulse/models/afnor_health_check_response.rb +1 -1
  138. data/lib/factpulse/models/afnor_legal_unit_administrative_status.rb +1 -1
  139. data/lib/factpulse/models/afnor_legal_unit_payload_history.rb +1 -1
  140. data/lib/factpulse/models/afnor_legal_unit_payload_included.rb +14 -5
  141. data/lib/factpulse/models/afnor_processing_rule.rb +3 -2
  142. data/lib/factpulse/models/afnor_reason_code.rb +1 -1
  143. data/lib/factpulse/models/afnor_reason_code_enum.rb +1 -1
  144. data/lib/factpulse/models/afnor_recipient_platform_type.rb +1 -1
  145. data/lib/factpulse/models/afnor_result.rb +1 -1
  146. data/lib/factpulse/models/afnor_routing_code_administrative_status.rb +1 -1
  147. data/lib/factpulse/models/afnor_routing_code_field.rb +1 -1
  148. data/lib/factpulse/models/afnor_routing_code_payload_history_legal_unit_facility.rb +1 -1
  149. data/lib/factpulse/models/afnor_routing_code_search.rb +1 -1
  150. data/lib/factpulse/models/afnor_routing_code_search_filters.rb +1 -1
  151. data/lib/factpulse/models/afnor_routing_code_search_filters_administrative_status.rb +1 -1
  152. data/lib/factpulse/models/afnor_routing_code_search_filters_routing_code_name.rb +1 -1
  153. data/lib/factpulse/models/afnor_routing_code_search_filters_routing_identifier.rb +1 -1
  154. data/lib/factpulse/models/afnor_routing_code_search_post200_response.rb +4 -2
  155. data/lib/factpulse/models/afnor_routing_code_search_sorting_inner.rb +1 -1
  156. data/lib/factpulse/models/afnor_search_directory_line.rb +35 -2
  157. data/lib/factpulse/models/afnor_search_directory_line_filters.rb +1 -1
  158. data/lib/factpulse/models/afnor_search_directory_line_filters_addressing_identifier.rb +1 -1
  159. data/lib/factpulse/models/afnor_search_directory_line_filters_addressing_suffix.rb +1 -1
  160. data/lib/factpulse/models/afnor_search_directory_line_sorting_inner.rb +8 -8
  161. data/lib/factpulse/models/afnor_search_flow_content.rb +34 -2
  162. data/lib/factpulse/models/afnor_search_flow_filters.rb +6 -6
  163. data/lib/factpulse/models/afnor_search_flow_params.rb +13 -3
  164. data/lib/factpulse/models/afnor_search_siren.rb +1 -1
  165. data/lib/factpulse/models/afnor_search_siren_filters.rb +1 -1
  166. data/lib/factpulse/models/afnor_search_siren_filters_administrative_status.rb +1 -1
  167. data/lib/factpulse/models/afnor_search_siren_filters_business_name.rb +2 -2
  168. data/lib/factpulse/models/afnor_search_siren_filters_entity_type.rb +1 -1
  169. data/lib/factpulse/models/afnor_search_siren_filters_siren.rb +1 -1
  170. data/lib/factpulse/models/afnor_search_siren_sorting_inner.rb +8 -8
  171. data/lib/factpulse/models/afnor_search_siret.rb +1 -1
  172. data/lib/factpulse/models/afnor_search_siret_filters.rb +1 -1
  173. data/lib/factpulse/models/afnor_search_siret_filters_address_lines.rb +2 -2
  174. data/lib/factpulse/models/afnor_search_siret_filters_administrative_status.rb +1 -1
  175. data/lib/factpulse/models/afnor_search_siret_filters_country_subdivision.rb +1 -1
  176. data/lib/factpulse/models/afnor_search_siret_filters_facility_type.rb +1 -1
  177. data/lib/factpulse/models/afnor_search_siret_filters_locality.rb +2 -2
  178. data/lib/factpulse/models/afnor_search_siret_filters_name.rb +2 -2
  179. data/lib/factpulse/models/afnor_search_siret_filters_postal_code.rb +1 -1
  180. data/lib/factpulse/models/afnor_search_siret_filters_siret.rb +1 -1
  181. data/lib/factpulse/models/afnor_search_siret_sorting_inner.rb +8 -8
  182. data/lib/factpulse/models/afnor_siren_field.rb +1 -1
  183. data/lib/factpulse/models/afnor_siren_instructions.rb +1 -1
  184. data/lib/factpulse/models/afnor_siren_search_post200_response.rb +4 -2
  185. data/lib/factpulse/models/afnor_siret_field.rb +1 -1
  186. data/lib/factpulse/models/afnor_siret_instructions.rb +1 -1
  187. data/lib/factpulse/models/afnor_siret_search_post200_response.rb +4 -2
  188. data/lib/factpulse/models/afnor_sorting_order.rb +1 -1
  189. data/lib/factpulse/models/afnor_strict_operator.rb +1 -1
  190. data/lib/factpulse/models/afnor_strict_or_start_with_operator.rb +1 -1
  191. data/lib/factpulse/models/{facture_electronique_rest_api_schemas_ereporting_invoice_type_code.rb → afnor_unique_directory_line_status.rb} +7 -10
  192. data/lib/factpulse/models/afnor_webhook.rb +83 -40
  193. data/lib/factpulse/models/afnor_webhook_id_param.rb +23 -5
  194. data/lib/factpulse/models/afnor_webhook_params.rb +65 -40
  195. data/lib/factpulse/models/aggregated_payment_input.rb +1 -1
  196. data/lib/factpulse/models/aggregated_transaction_input.rb +1 -1
  197. data/lib/factpulse/models/allowance_charge.rb +2 -2
  198. data/lib/factpulse/models/allowance_charge_reason_code.rb +1 -1
  199. data/lib/factpulse/models/allowance_reason_code.rb +1 -1
  200. data/lib/factpulse/models/allowance_total_amount.rb +1 -1
  201. data/lib/factpulse/models/amount.rb +2 -2
  202. data/lib/factpulse/models/amount1.rb +2 -2
  203. data/lib/factpulse/models/amount2.rb +2 -2
  204. data/lib/factpulse/models/amount_due.rb +1 -1
  205. data/lib/factpulse/models/amounteur.rb +104 -0
  206. data/lib/factpulse/models/api_error.rb +1 -1
  207. data/lib/factpulse/models/api_profile.rb +1 -1
  208. data/lib/factpulse/models/async_task_status.rb +1 -1
  209. data/lib/factpulse/models/base_amount.rb +1 -1
  210. data/lib/factpulse/models/bounding_box_schema.rb +1 -1
  211. data/lib/factpulse/models/buyercountry.rb +1 -1
  212. data/lib/factpulse/models/celery_status.rb +1 -1
  213. data/lib/factpulse/models/certificate_info_response.rb +1 -1
  214. data/lib/factpulse/models/charge_total_amount.rb +1 -1
  215. data/lib/factpulse/models/chorus_pro_credentials.rb +27 -95
  216. data/lib/factpulse/models/chorus_pro_destination.rb +2 -2
  217. data/lib/factpulse/models/chorus_pro_result.rb +1 -1
  218. data/lib/factpulse/models/client_activate_response.rb +1 -1
  219. data/lib/factpulse/models/client_create_request.rb +1 -1
  220. data/lib/factpulse/models/client_detail.rb +1 -1
  221. data/lib/factpulse/models/client_list_response.rb +1 -1
  222. data/lib/factpulse/models/client_summary.rb +1 -1
  223. data/lib/factpulse/models/client_update_request.rb +1 -1
  224. data/lib/factpulse/models/contact.rb +1 -1
  225. data/lib/factpulse/models/conversion_error_result.rb +1 -1
  226. data/lib/factpulse/models/conversion_extraction_info.rb +1 -1
  227. data/lib/factpulse/models/conversion_pending_input_result.rb +1 -1
  228. data/lib/factpulse/models/conversion_success_task_result.rb +1 -1
  229. data/lib/factpulse/models/conversion_task_status.rb +1 -1
  230. data/lib/factpulse/models/conversion_task_status_result.rb +1 -1
  231. data/lib/factpulse/models/conversion_validation_failed_result.rb +1 -1
  232. data/lib/factpulse/models/convert_resume_request.rb +1 -1
  233. data/lib/factpulse/models/convert_success_response.rb +1 -1
  234. data/lib/factpulse/models/convert_validation_failed_response.rb +1 -1
  235. data/lib/factpulse/models/country_code.rb +1 -1
  236. data/lib/factpulse/models/create_aggregated_report_request.rb +1 -1
  237. data/lib/factpulse/models/create_cdar_request.rb +18 -6
  238. data/lib/factpulse/models/create_e_reporting_request.rb +1 -1
  239. data/lib/factpulse/models/currency.rb +1 -1
  240. data/lib/factpulse/models/currency_code.rb +1 -1
  241. data/lib/factpulse/models/delivery_party.rb +3 -3
  242. data/lib/factpulse/models/destination.rb +1 -1
  243. data/lib/factpulse/models/doc_type.rb +1 -1
  244. data/lib/factpulse/models/document_type_info.rb +1 -1
  245. data/lib/factpulse/models/e_reporting_flow_type.rb +1 -1
  246. data/lib/factpulse/models/e_reporting_validation_error.rb +1 -1
  247. data/lib/factpulse/models/electronic_address.rb +2 -2
  248. data/lib/factpulse/models/{afnor_callback_signature.rb → electronic_address_input.rb} +29 -44
  249. data/lib/factpulse/models/{afnor_callback_parameters.rb → electronic_address_output.rb} +51 -46
  250. data/lib/factpulse/models/encaisseamount.rb +1 -1
  251. data/lib/factpulse/models/encaisseamount1.rb +1 -1
  252. data/lib/factpulse/models/encaissee_request.rb +15 -3
  253. data/lib/factpulse/models/enriched_invoice_info.rb +1 -1
  254. data/lib/factpulse/models/error_level.rb +1 -1
  255. data/lib/factpulse/models/error_source.rb +1 -1
  256. data/lib/factpulse/models/extraction_info.rb +1 -1
  257. data/lib/factpulse/models/factur_x_invoice.rb +1 -1
  258. data/lib/factpulse/models/factur_xpdf_info.rb +1 -1
  259. data/lib/factpulse/models/facture_electronique_models_invoice_type_code.rb +54 -0
  260. data/lib/factpulse/models/facture_electronique_rest_api_schemas_cdar_validation_error_response.rb +1 -1
  261. data/lib/factpulse/models/{facture_electronique_rest_api_schemas_processing_chorus_pro_credentials.rb → facture_electronique_rest_api_schemas_chorus_pro_chorus_pro_credentials.rb} +98 -30
  262. data/lib/factpulse/models/field_status.rb +1 -1
  263. data/lib/factpulse/models/file_info.rb +1 -1
  264. data/lib/factpulse/models/files_info.rb +1 -1
  265. data/lib/factpulse/models/flow_direction.rb +1 -1
  266. data/lib/factpulse/models/flow_profile.rb +3 -2
  267. data/lib/factpulse/models/flow_summary.rb +1 -1
  268. data/lib/factpulse/models/flow_syntax.rb +1 -1
  269. data/lib/factpulse/models/flow_type.rb +9 -3
  270. data/lib/factpulse/models/generate_aggregated_report_response.rb +1 -1
  271. data/lib/factpulse/models/generate_cdar_response.rb +1 -1
  272. data/lib/factpulse/models/generate_certificate_request.rb +1 -1
  273. data/lib/factpulse/models/generate_certificate_response.rb +1 -1
  274. data/lib/factpulse/models/generate_e_reporting_response.rb +1 -1
  275. data/lib/factpulse/models/generation_success_result.rb +1 -1
  276. data/lib/factpulse/models/generation_task_status.rb +1 -1
  277. data/lib/factpulse/models/generation_task_status_result.rb +1 -1
  278. data/lib/factpulse/models/get_chorus_pro_id_request.rb +2 -2
  279. data/lib/factpulse/models/get_chorus_pro_id_response.rb +1 -1
  280. data/lib/factpulse/models/get_invoice_request.rb +2 -2
  281. data/lib/factpulse/models/get_invoice_response.rb +1 -1
  282. data/lib/factpulse/models/get_structure_request.rb +2 -2
  283. data/lib/factpulse/models/get_structure_response.rb +1 -1
  284. data/lib/factpulse/models/global_allowance_amount.rb +1 -1
  285. data/lib/factpulse/models/gross_unit_price.rb +1 -1
  286. data/lib/factpulse/models/http_validation_error.rb +1 -1
  287. data/lib/factpulse/models/incoming_invoice.rb +1 -1
  288. data/lib/factpulse/models/incoming_supplier.rb +14 -4
  289. data/lib/factpulse/models/invoice_format.rb +1 -1
  290. data/lib/factpulse/models/invoice_input.rb +23 -3
  291. data/lib/factpulse/models/invoice_lifecycle.rb +1 -1
  292. data/lib/factpulse/models/invoice_line.rb +1 -1
  293. data/lib/factpulse/models/invoice_line_allowance_amount.rb +1 -1
  294. data/lib/factpulse/models/invoice_note.rb +1 -1
  295. data/lib/factpulse/models/invoice_payment_input.rb +1 -1
  296. data/lib/factpulse/models/invoice_references.rb +1 -1
  297. data/lib/factpulse/models/invoice_status.rb +1 -1
  298. data/lib/factpulse/models/invoice_totals.rb +1 -1
  299. data/lib/factpulse/models/invoice_totals_prepayment.rb +1 -1
  300. data/lib/factpulse/models/invoice_type_code.rb +7 -18
  301. data/lib/factpulse/models/invoice_type_code_output.rb +1 -1
  302. data/lib/factpulse/models/{afnor_callback_authentication.rb → invoicedata.rb} +5 -5
  303. data/lib/factpulse/models/invoicing_framework.rb +1 -1
  304. data/lib/factpulse/models/invoicing_framework_code.rb +1 -1
  305. data/lib/factpulse/models/issuer_role_code.rb +1 -1
  306. data/lib/factpulse/models/key_rotation_request.rb +1 -1
  307. data/lib/factpulse/models/key_rotation_response.rb +1 -1
  308. data/lib/factpulse/models/lifecycle_event.rb +12 -2
  309. data/lib/factpulse/models/lifecycle_response.rb +1 -1
  310. data/lib/factpulse/models/line_net_amount.rb +1 -1
  311. data/lib/factpulse/models/line_sub_type.rb +1 -1
  312. data/lib/factpulse/models/line_total_amount.rb +1 -1
  313. data/lib/factpulse/models/location_inner.rb +1 -1
  314. data/lib/factpulse/models/mandatory_note_schema.rb +1 -1
  315. data/lib/factpulse/models/manual_rate.rb +1 -1
  316. data/lib/factpulse/models/manual_vat_rate.rb +1 -1
  317. data/lib/factpulse/models/missing_field.rb +1 -1
  318. data/lib/factpulse/models/operation_nature.rb +1 -1
  319. data/lib/factpulse/models/output_format.rb +1 -1
  320. data/lib/factpulse/models/page_dimensions_schema.rb +1 -1
  321. data/lib/factpulse/models/parse_factur_x_response.rb +1 -1
  322. data/lib/factpulse/models/payee.rb +3 -3
  323. data/lib/factpulse/models/payment_amount_by_rate.rb +15 -5
  324. data/lib/factpulse/models/payment_card.rb +1 -1
  325. data/lib/factpulse/models/payment_means.rb +1 -1
  326. data/lib/factpulse/models/pdf_validation_result_api.rb +1 -1
  327. data/lib/factpulse/models/pdp_config_response.rb +1 -1
  328. data/lib/factpulse/models/pdp_config_update_request.rb +1 -1
  329. data/lib/factpulse/models/pdp_credentials.rb +1 -1
  330. data/lib/factpulse/models/percentage.rb +1 -1
  331. data/lib/factpulse/models/postal_address.rb +7 -7
  332. data/lib/factpulse/models/postal_address_input.rb +209 -0
  333. data/lib/factpulse/models/{afnor_callback_header.rb → postal_address_output.rb} +70 -51
  334. data/lib/factpulse/models/price_allowance_amount.rb +1 -1
  335. data/lib/factpulse/models/price_basis_quantity.rb +1 -1
  336. data/lib/factpulse/models/processing_options.rb +2 -2
  337. data/lib/factpulse/models/processing_rule.rb +3 -2
  338. data/lib/factpulse/models/product_characteristic.rb +1 -1
  339. data/lib/factpulse/models/product_classification.rb +1 -1
  340. data/lib/factpulse/models/quantity.rb +1 -1
  341. data/lib/factpulse/models/rate.rb +1 -1
  342. data/lib/factpulse/models/rate1.rb +1 -1
  343. data/lib/factpulse/models/reason_code_info.rb +1 -1
  344. data/lib/factpulse/models/reason_codes_response.rb +1 -1
  345. data/lib/factpulse/models/recipient.rb +4 -4
  346. data/lib/factpulse/models/recipient_input.rb +1 -1
  347. data/lib/factpulse/models/refusee_request.rb +1 -1
  348. data/lib/factpulse/models/report_issuer.rb +1 -1
  349. data/lib/factpulse/models/report_period.rb +1 -1
  350. data/lib/factpulse/models/report_sender.rb +12 -2
  351. data/lib/factpulse/models/rounding_amount.rb +1 -1
  352. data/lib/factpulse/models/schematron_validation_error.rb +1 -1
  353. data/lib/factpulse/models/scheme_id.rb +1 -1
  354. data/lib/factpulse/models/search_flow_request.rb +1 -1
  355. data/lib/factpulse/models/search_flow_response.rb +1 -1
  356. data/lib/factpulse/models/search_services_response.rb +1 -1
  357. data/lib/factpulse/models/search_structure_request.rb +2 -2
  358. data/lib/factpulse/models/search_structure_response.rb +1 -1
  359. data/lib/factpulse/models/secret_status.rb +1 -1
  360. data/lib/factpulse/models/sellercountry.rb +1 -1
  361. data/lib/factpulse/models/signature_info.rb +1 -1
  362. data/lib/factpulse/models/signature_info_api.rb +1 -1
  363. data/lib/factpulse/models/signature_parameters.rb +1 -1
  364. data/lib/factpulse/models/signature_success_result.rb +1 -1
  365. data/lib/factpulse/models/signature_task_status.rb +1 -1
  366. data/lib/factpulse/models/signature_task_status_result.rb +1 -1
  367. data/lib/factpulse/models/simplified_cdar_response.rb +1 -1
  368. data/lib/factpulse/models/simplified_invoice_data.rb +5 -5
  369. data/lib/factpulse/models/status_code_info.rb +1 -1
  370. data/lib/factpulse/models/status_codes_response.rb +1 -1
  371. data/lib/factpulse/models/structure_info.rb +1 -1
  372. data/lib/factpulse/models/structure_parameters.rb +1 -1
  373. data/lib/factpulse/models/structure_service.rb +1 -1
  374. data/lib/factpulse/models/submission_mode.rb +1 -1
  375. data/lib/factpulse/models/submit_aggregated_report_request.rb +1 -1
  376. data/lib/factpulse/models/submit_cdar_request.rb +14 -2
  377. data/lib/factpulse/models/submit_cdar_response.rb +1 -1
  378. data/lib/factpulse/models/submit_cdarxml_request.rb +1 -1
  379. data/lib/factpulse/models/submit_complete_invoice_request.rb +2 -3
  380. data/lib/factpulse/models/submit_complete_invoice_response.rb +1 -1
  381. data/lib/factpulse/models/submit_e_reporting_request.rb +1 -1
  382. data/lib/factpulse/models/submit_e_reporting_response.rb +1 -1
  383. data/lib/factpulse/models/submit_flow_request.rb +1 -1
  384. data/lib/factpulse/models/submit_flow_response.rb +1 -1
  385. data/lib/factpulse/models/submit_gross_amount.rb +1 -1
  386. data/lib/factpulse/models/submit_invoice_request.rb +2 -2
  387. data/lib/factpulse/models/submit_invoice_response.rb +1 -1
  388. data/lib/factpulse/models/submit_net_amount.rb +1 -1
  389. data/lib/factpulse/models/submit_vat_amount.rb +1 -1
  390. data/lib/factpulse/models/{afnor_webhook_patch_payload.rb → super_pdp_connect_url_response.rb} +30 -31
  391. data/lib/factpulse/models/{afnor_basic_authentication.rb → super_pdp_disconnect_response.rb} +38 -35
  392. data/lib/factpulse/models/super_pdp_status_response.rb +208 -0
  393. data/lib/factpulse/models/supplementary_attachment.rb +1 -1
  394. data/lib/factpulse/models/supplier.rb +15 -5
  395. data/lib/factpulse/models/task_error_result.rb +1 -1
  396. data/lib/factpulse/models/task_response.rb +1 -1
  397. data/lib/factpulse/models/tax_breakdown_input.rb +35 -5
  398. data/lib/factpulse/models/tax_due_date_type.rb +1 -1
  399. data/lib/factpulse/models/tax_representative.rb +2 -2
  400. data/lib/factpulse/models/taxable_amount.rb +1 -1
  401. data/lib/factpulse/models/taxableamount.rb +1 -1
  402. data/lib/factpulse/models/taxamount.rb +1 -1
  403. data/lib/factpulse/models/taxamount1.rb +1 -1
  404. data/lib/factpulse/models/taxamount2.rb +1 -1
  405. data/lib/factpulse/models/taxamounteur.rb +104 -0
  406. data/lib/factpulse/models/taxexclusiveamount.rb +1 -1
  407. data/lib/factpulse/models/taxexclusiveamount1.rb +1 -1
  408. data/lib/factpulse/models/total_gross_amount.rb +1 -1
  409. data/lib/factpulse/models/total_net_amount.rb +1 -1
  410. data/lib/factpulse/models/total_vat_amount.rb +1 -1
  411. data/lib/factpulse/models/transaction_category.rb +1 -1
  412. data/lib/factpulse/models/transmission_type_code.rb +1 -1
  413. data/lib/factpulse/models/unit_net_price.rb +1 -1
  414. data/lib/factpulse/models/unit_of_measure.rb +1 -1
  415. data/lib/factpulse/models/validate_cdar_request.rb +1 -1
  416. data/lib/factpulse/models/validate_cdar_response.rb +1 -1
  417. data/lib/factpulse/models/validate_e_reporting_request.rb +1 -1
  418. data/lib/factpulse/models/validate_e_reporting_response.rb +1 -1
  419. data/lib/factpulse/models/validation_error.rb +1 -1
  420. data/lib/factpulse/models/validation_error_detail.rb +1 -1
  421. data/lib/factpulse/models/validation_error_response.rb +1 -1
  422. data/lib/factpulse/models/validation_info.rb +1 -1
  423. data/lib/factpulse/models/validation_success_response.rb +1 -1
  424. data/lib/factpulse/models/validation_success_task_result.rb +1 -1
  425. data/lib/factpulse/models/validation_task_status.rb +1 -1
  426. data/lib/factpulse/models/validation_task_status_result.rb +1 -1
  427. data/lib/factpulse/models/vat_accounting_code.rb +1 -1
  428. data/lib/factpulse/models/vat_amount.rb +1 -1
  429. data/lib/factpulse/models/vat_category.rb +1 -1
  430. data/lib/factpulse/models/vat_line.rb +1 -1
  431. data/lib/factpulse/models/vat_point_date_code.rb +1 -1
  432. data/lib/factpulse/models/vat_rate.rb +1 -1
  433. data/lib/factpulse/models/vatex_code_info.rb +1 -1
  434. data/lib/factpulse/models/vatex_codes_response.rb +1 -1
  435. data/lib/factpulse/models/verification_success_response.rb +1 -1
  436. data/lib/factpulse/models/verification_success_task_result.rb +1 -1
  437. data/lib/factpulse/models/verification_typed_task_status.rb +1 -1
  438. data/lib/factpulse/models/verification_typed_task_status_result.rb +1 -1
  439. data/lib/factpulse/models/verified_field_schema.rb +1 -1
  440. data/lib/factpulse/models/webhook_secret_delete_response.rb +1 -1
  441. data/lib/factpulse/models/webhook_secret_generate_response.rb +1 -1
  442. data/lib/factpulse/models/webhook_secret_status_response.rb +1 -1
  443. data/lib/factpulse/version.rb +2 -2
  444. data/lib/factpulse.rb +16 -13
  445. metadata +32 -26
  446. data/docs/AFNORBasicAuthentication.md +0 -20
  447. data/docs/AFNORCallbackHeader.md +0 -20
  448. data/docs/AFNORCallbackParameters.md +0 -24
  449. data/docs/AFNORCallbackSignature.md +0 -20
  450. data/docs/AFNOROAuth2Authentication.md +0 -22
  451. data/docs/AFNORWebhookMetadata.md +0 -24
  452. data/docs/AFNORWebhookPatchPayload.md +0 -22
  453. data/docs/FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode.md +0 -15
  454. data/docs/FactureElectroniqueRestApiSchemasProcessingChorusProCredentials.md +0 -26
  455. data/lib/factpulse/models/afnor_webhook_metadata.rb +0 -230
  456. data/lib/factpulse/models/afnoro_auth2_authentication.rb +0 -216
@@ -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
 
@@ -20,11 +20,14 @@ module FactPulse
20
20
 
21
21
  attr_accessor :amount
22
22
 
23
+ attr_accessor :amount_eur
24
+
23
25
  # Attribute mapping from ruby-style variable name to JSON key.
24
26
  def self.attribute_map
25
27
  {
26
28
  :'rate' => :'rate',
27
- :'amount' => :'amount'
29
+ :'amount' => :'amount',
30
+ :'amount_eur' => :'amountEur'
28
31
  }
29
32
  end
30
33
 
@@ -42,13 +45,15 @@ module FactPulse
42
45
  def self.openapi_types
43
46
  {
44
47
  :'rate' => :'Rate',
45
- :'amount' => :'Amount1'
48
+ :'amount' => :'Amount2',
49
+ :'amount_eur' => :'Amounteur'
46
50
  }
47
51
  end
48
52
 
49
53
  # List of attributes with nullable: true
50
54
  def self.openapi_nullable
51
55
  Set.new([
56
+ :'amount_eur'
52
57
  ])
53
58
  end
54
59
 
@@ -79,6 +84,10 @@ module FactPulse
79
84
  else
80
85
  self.amount = nil
81
86
  end
87
+
88
+ if attributes.key?(:'amount_eur')
89
+ self.amount_eur = attributes[:'amount_eur']
90
+ end
82
91
  end
83
92
 
84
93
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -132,7 +141,8 @@ module FactPulse
132
141
  return true if self.equal?(o)
133
142
  self.class == o.class &&
134
143
  rate == o.rate &&
135
- amount == o.amount
144
+ amount == o.amount &&
145
+ amount_eur == o.amount_eur
136
146
  end
137
147
 
138
148
  # @see the `==` method
@@ -144,7 +154,7 @@ module FactPulse
144
154
  # Calculates hash code according to all attributes.
145
155
  # @return [Integer] Hash code
146
156
  def hash
147
- [rate, amount].hash
157
+ [rate, amount, amount_eur].hash
148
158
  end
149
159
 
150
160
  # 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
 
@@ -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
 
@@ -33,13 +33,13 @@ module FactPulse
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
- :'postal_code' => :'postalCode',
37
- :'line_one' => :'lineOne',
38
- :'line_two' => :'lineTwo',
39
- :'line_three' => :'lineThree',
36
+ :'postal_code' => :'postal_code',
37
+ :'line_one' => :'line_one',
38
+ :'line_two' => :'line_two',
39
+ :'line_three' => :'line_three',
40
40
  :'city' => :'city',
41
- :'country_code' => :'countryCode',
42
- :'country_subdivision' => :'countrySubdivision'
41
+ :'country_code' => :'country_code',
42
+ :'country_subdivision' => :'country_subdivision'
43
43
  }
44
44
  end
45
45
 
@@ -0,0 +1,209 @@
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
+ # Represents a postal address (BG-5, BG-8, BG-12, BG-15).
18
+ class PostalAddressInput < ApiModelBase
19
+ attr_accessor :postal_code
20
+
21
+ attr_accessor :line_one
22
+
23
+ attr_accessor :line_two
24
+
25
+ attr_accessor :line_three
26
+
27
+ attr_accessor :city
28
+
29
+ attr_accessor :country_code
30
+
31
+ attr_accessor :country_subdivision
32
+
33
+ # Attribute mapping from ruby-style variable name to JSON key.
34
+ def self.attribute_map
35
+ {
36
+ :'postal_code' => :'postal_code',
37
+ :'line_one' => :'line_one',
38
+ :'line_two' => :'line_two',
39
+ :'line_three' => :'line_three',
40
+ :'city' => :'city',
41
+ :'country_code' => :'country_code',
42
+ :'country_subdivision' => :'country_subdivision'
43
+ }
44
+ end
45
+
46
+ # Returns attribute mapping this model knows about
47
+ def self.acceptable_attribute_map
48
+ attribute_map
49
+ end
50
+
51
+ # Returns all the JSON keys this model knows about
52
+ def self.acceptable_attributes
53
+ acceptable_attribute_map.values
54
+ end
55
+
56
+ # Attribute type mapping.
57
+ def self.openapi_types
58
+ {
59
+ :'postal_code' => :'String',
60
+ :'line_one' => :'String',
61
+ :'line_two' => :'String',
62
+ :'line_three' => :'String',
63
+ :'city' => :'String',
64
+ :'country_code' => :'String',
65
+ :'country_subdivision' => :'String'
66
+ }
67
+ end
68
+
69
+ # List of attributes with nullable: true
70
+ def self.openapi_nullable
71
+ Set.new([
72
+ :'postal_code',
73
+ :'line_one',
74
+ :'line_two',
75
+ :'line_three',
76
+ :'city',
77
+ :'country_code',
78
+ :'country_subdivision'
79
+ ])
80
+ end
81
+
82
+ # Initializes the object
83
+ # @param [Hash] attributes Model attributes in the form of hash
84
+ def initialize(attributes = {})
85
+ if (!attributes.is_a?(Hash))
86
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::PostalAddressInput` initialize method"
87
+ end
88
+
89
+ # check to see if the attribute exists and convert string to symbol for hash key
90
+ acceptable_attribute_map = self.class.acceptable_attribute_map
91
+ attributes = attributes.each_with_object({}) { |(k, v), h|
92
+ if (!acceptable_attribute_map.key?(k.to_sym))
93
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::PostalAddressInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
94
+ end
95
+ h[k.to_sym] = v
96
+ }
97
+
98
+ if attributes.key?(:'postal_code')
99
+ self.postal_code = attributes[:'postal_code']
100
+ end
101
+
102
+ if attributes.key?(:'line_one')
103
+ self.line_one = attributes[:'line_one']
104
+ end
105
+
106
+ if attributes.key?(:'line_two')
107
+ self.line_two = attributes[:'line_two']
108
+ end
109
+
110
+ if attributes.key?(:'line_three')
111
+ self.line_three = attributes[:'line_three']
112
+ end
113
+
114
+ if attributes.key?(:'city')
115
+ self.city = attributes[:'city']
116
+ end
117
+
118
+ if attributes.key?(:'country_code')
119
+ self.country_code = attributes[:'country_code']
120
+ end
121
+
122
+ if attributes.key?(:'country_subdivision')
123
+ self.country_subdivision = attributes[:'country_subdivision']
124
+ end
125
+ end
126
+
127
+ # Show invalid properties with the reasons. Usually used together with valid?
128
+ # @return Array for valid properties with the reasons
129
+ def list_invalid_properties
130
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
131
+ invalid_properties = Array.new
132
+ invalid_properties
133
+ end
134
+
135
+ # Check to see if the all the properties in the model are valid
136
+ # @return true if the model is valid
137
+ def valid?
138
+ warn '[DEPRECATED] the `valid?` method is obsolete'
139
+ true
140
+ end
141
+
142
+ # Checks equality by comparing each attribute.
143
+ # @param [Object] Object to be compared
144
+ def ==(o)
145
+ return true if self.equal?(o)
146
+ self.class == o.class &&
147
+ postal_code == o.postal_code &&
148
+ line_one == o.line_one &&
149
+ line_two == o.line_two &&
150
+ line_three == o.line_three &&
151
+ city == o.city &&
152
+ country_code == o.country_code &&
153
+ country_subdivision == o.country_subdivision
154
+ end
155
+
156
+ # @see the `==` method
157
+ # @param [Object] Object to be compared
158
+ def eql?(o)
159
+ self == o
160
+ end
161
+
162
+ # Calculates hash code according to all attributes.
163
+ # @return [Integer] Hash code
164
+ def hash
165
+ [postal_code, line_one, line_two, line_three, city, country_code, country_subdivision].hash
166
+ end
167
+
168
+ # Builds the object from hash
169
+ # @param [Hash] attributes Model attributes in the form of hash
170
+ # @return [Object] Returns the model itself
171
+ def self.build_from_hash(attributes)
172
+ return nil unless attributes.is_a?(Hash)
173
+ attributes = attributes.transform_keys(&:to_sym)
174
+ transformed_hash = {}
175
+ openapi_types.each_pair do |key, type|
176
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
177
+ transformed_hash["#{key}"] = nil
178
+ elsif type =~ /\AArray<(.*)>/i
179
+ # check to ensure the input is an array given that the attribute
180
+ # is documented as an array but the input is not
181
+ if attributes[attribute_map[key]].is_a?(Array)
182
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
183
+ end
184
+ elsif !attributes[attribute_map[key]].nil?
185
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
186
+ end
187
+ end
188
+ new(transformed_hash)
189
+ end
190
+
191
+ # Returns the object in the form of hash
192
+ # @return [Hash] Returns the object in the form of hash
193
+ def to_hash
194
+ hash = {}
195
+ self.class.attribute_map.each_pair do |attr, param|
196
+ value = self.send(attr)
197
+ if value.nil?
198
+ is_nullable = self.class.openapi_nullable.include?(attr)
199
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
200
+ end
201
+
202
+ hash[param] = _to_hash(value)
203
+ end
204
+ hash
205
+ end
206
+
207
+ end
208
+
209
+ 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,16 +14,32 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FactPulse
17
- class AFNORCallbackHeader < ApiModelBase
18
- attr_accessor :header_name
17
+ # Represents a postal address (BG-5, BG-8, BG-12, BG-15).
18
+ class PostalAddressOutput < ApiModelBase
19
+ attr_accessor :postal_code
19
20
 
20
- attr_accessor :header_value
21
+ attr_accessor :line_one
22
+
23
+ attr_accessor :line_two
24
+
25
+ attr_accessor :line_three
26
+
27
+ attr_accessor :city
28
+
29
+ attr_accessor :country_code
30
+
31
+ attr_accessor :country_subdivision
21
32
 
22
33
  # Attribute mapping from ruby-style variable name to JSON key.
23
34
  def self.attribute_map
24
35
  {
25
- :'header_name' => :'headerName',
26
- :'header_value' => :'headerValue'
36
+ :'postal_code' => :'postalCode',
37
+ :'line_one' => :'lineOne',
38
+ :'line_two' => :'lineTwo',
39
+ :'line_three' => :'lineThree',
40
+ :'city' => :'city',
41
+ :'country_code' => :'countryCode',
42
+ :'country_subdivision' => :'countrySubdivision'
27
43
  }
28
44
  end
29
45
 
@@ -40,14 +56,26 @@ module FactPulse
40
56
  # Attribute type mapping.
41
57
  def self.openapi_types
42
58
  {
43
- :'header_name' => :'String',
44
- :'header_value' => :'String'
59
+ :'postal_code' => :'String',
60
+ :'line_one' => :'String',
61
+ :'line_two' => :'String',
62
+ :'line_three' => :'String',
63
+ :'city' => :'String',
64
+ :'country_code' => :'String',
65
+ :'country_subdivision' => :'String'
45
66
  }
46
67
  end
47
68
 
48
69
  # List of attributes with nullable: true
49
70
  def self.openapi_nullable
50
71
  Set.new([
72
+ :'postal_code',
73
+ :'line_one',
74
+ :'line_two',
75
+ :'line_three',
76
+ :'city',
77
+ :'country_code',
78
+ :'country_subdivision'
51
79
  ])
52
80
  end
53
81
 
@@ -55,28 +83,44 @@ module FactPulse
55
83
  # @param [Hash] attributes Model attributes in the form of hash
56
84
  def initialize(attributes = {})
57
85
  if (!attributes.is_a?(Hash))
58
- fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::AFNORCallbackHeader` initialize method"
86
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::PostalAddressOutput` initialize method"
59
87
  end
60
88
 
61
89
  # check to see if the attribute exists and convert string to symbol for hash key
62
90
  acceptable_attribute_map = self.class.acceptable_attribute_map
63
91
  attributes = attributes.each_with_object({}) { |(k, v), h|
64
92
  if (!acceptable_attribute_map.key?(k.to_sym))
65
- fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::AFNORCallbackHeader`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
93
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::PostalAddressOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
66
94
  end
67
95
  h[k.to_sym] = v
68
96
  }
69
97
 
70
- if attributes.key?(:'header_name')
71
- self.header_name = attributes[:'header_name']
72
- else
73
- self.header_name = nil
98
+ if attributes.key?(:'postal_code')
99
+ self.postal_code = attributes[:'postal_code']
100
+ end
101
+
102
+ if attributes.key?(:'line_one')
103
+ self.line_one = attributes[:'line_one']
74
104
  end
75
105
 
76
- if attributes.key?(:'header_value')
77
- self.header_value = attributes[:'header_value']
78
- else
79
- self.header_value = nil
106
+ if attributes.key?(:'line_two')
107
+ self.line_two = attributes[:'line_two']
108
+ end
109
+
110
+ if attributes.key?(:'line_three')
111
+ self.line_three = attributes[:'line_three']
112
+ end
113
+
114
+ if attributes.key?(:'city')
115
+ self.city = attributes[:'city']
116
+ end
117
+
118
+ if attributes.key?(:'country_code')
119
+ self.country_code = attributes[:'country_code']
120
+ end
121
+
122
+ if attributes.key?(:'country_subdivision')
123
+ self.country_subdivision = attributes[:'country_subdivision']
80
124
  end
81
125
  end
82
126
 
@@ -85,14 +129,6 @@ module FactPulse
85
129
  def list_invalid_properties
86
130
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
87
131
  invalid_properties = Array.new
88
- if @header_name.nil?
89
- invalid_properties.push('invalid value for "header_name", header_name cannot be nil.')
90
- end
91
-
92
- if @header_value.nil?
93
- invalid_properties.push('invalid value for "header_value", header_value cannot be nil.')
94
- end
95
-
96
132
  invalid_properties
97
133
  end
98
134
 
@@ -100,38 +136,21 @@ module FactPulse
100
136
  # @return true if the model is valid
101
137
  def valid?
102
138
  warn '[DEPRECATED] the `valid?` method is obsolete'
103
- return false if @header_name.nil?
104
- return false if @header_value.nil?
105
139
  true
106
140
  end
107
141
 
108
- # Custom attribute writer method with validation
109
- # @param [Object] header_name Value to be assigned
110
- def header_name=(header_name)
111
- if header_name.nil?
112
- fail ArgumentError, 'header_name cannot be nil'
113
- end
114
-
115
- @header_name = header_name
116
- end
117
-
118
- # Custom attribute writer method with validation
119
- # @param [Object] header_value Value to be assigned
120
- def header_value=(header_value)
121
- if header_value.nil?
122
- fail ArgumentError, 'header_value cannot be nil'
123
- end
124
-
125
- @header_value = header_value
126
- end
127
-
128
142
  # Checks equality by comparing each attribute.
129
143
  # @param [Object] Object to be compared
130
144
  def ==(o)
131
145
  return true if self.equal?(o)
132
146
  self.class == o.class &&
133
- header_name == o.header_name &&
134
- header_value == o.header_value
147
+ postal_code == o.postal_code &&
148
+ line_one == o.line_one &&
149
+ line_two == o.line_two &&
150
+ line_three == o.line_three &&
151
+ city == o.city &&
152
+ country_code == o.country_code &&
153
+ country_subdivision == o.country_subdivision
135
154
  end
136
155
 
137
156
  # @see the `==` method
@@ -143,7 +162,7 @@ module FactPulse
143
162
  # Calculates hash code according to all attributes.
144
163
  # @return [Integer] Hash code
145
164
  def hash
146
- [header_name, header_value].hash
165
+ [postal_code, line_one, line_two, line_three, city, country_code, country_subdivision].hash
147
166
  end
148
167
 
149
168
  # 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
 
@@ -19,7 +19,7 @@ module FactPulse
19
19
  # Factur-X profile to use
20
20
  attr_accessor :facturx_profile
21
21
 
22
- # Auto-enrich data (Company APIs, Chorus Pro, etc.)
22
+ # Auto-enrich data (Company APIs, Chorus Pro, etc.). Applies to the **simplified format** only: a complete `FacturXInvoice` payload is used exactly as provided.
23
23
  attr_accessor :auto_enrich
24
24
 
25
25
  # Validate Factur-X XML with Schematron
@@ -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
 
@@ -24,9 +24,10 @@ module FactPulse
24
24
  B2_G_OUT_OF_SCOPE = "B2GOutOfScope".freeze
25
25
  ARCHIVE_ONLY = "ArchiveOnly".freeze
26
26
  NOT_APPLICABLE = "NotApplicable".freeze
27
+ UNDEFINED = "Undefined".freeze
27
28
 
28
29
  def self.all_vars
29
- @all_vars ||= [B2_B, B2_B_INT, B2_C, B2_G, B2_G_INT, OUT_OF_SCOPE, B2_G_OUT_OF_SCOPE, ARCHIVE_ONLY, NOT_APPLICABLE].freeze
30
+ @all_vars ||= [B2_B, B2_B_INT, B2_C, B2_G, B2_G_INT, OUT_OF_SCOPE, B2_G_OUT_OF_SCOPE, ARCHIVE_ONLY, NOT_APPLICABLE, UNDEFINED].freeze
30
31
  end
31
32
 
32
33
  # Builds the enum from string
@@ -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