factpulse 2.0.42 → 3.0.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 (410) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -3
  3. data/Gemfile.lock +3 -3
  4. data/README.md +91 -91
  5. data/docs/{CredentialsAFNOR.md → AFNORCredentials.md} +2 -2
  6. data/docs/{DestinationAFNOR.md → AFNORDestination.md} +4 -4
  7. data/docs/AFNORHealthCheckResponse.md +22 -0
  8. data/docs/AFNORPDPPAApi.md +25 -25
  9. data/docs/AFNORPDPPADirectoryServiceApi.md +19 -19
  10. data/docs/AFNORPDPPAFlowServiceApi.md +16 -16
  11. data/docs/{ResultatAFNOR.md → AFNORResult.md} +5 -5
  12. data/docs/APIError.md +2 -2
  13. data/docs/{MontantTva.md → APIProfile.md} +2 -2
  14. data/docs/{CodeCadreFacturation.md → AcknowledgmentStatus.md} +2 -2
  15. data/docs/{CodeRaisonReduction.md → AllowanceReasonCode.md} +2 -2
  16. data/docs/{ModeDepot.md → AmountDue.md} +2 -2
  17. data/docs/BoundingBoxSchema.md +7 -7
  18. data/docs/{CategorieTVA.md → CeleryStatus.md} +2 -2
  19. data/docs/CertificateInfoResponse.md +20 -20
  20. data/docs/ChorusProApi.md +123 -123
  21. data/docs/ChorusProDestination.md +20 -0
  22. data/docs/ChorusProResult.md +22 -0
  23. data/docs/Destination.md +7 -7
  24. data/docs/{ModePaiement.md → DocumentType.md} +2 -2
  25. data/docs/{AdresseElectronique.md → ElectronicAddress.md} +4 -4
  26. data/docs/EnrichedInvoiceInfo.md +32 -0
  27. data/docs/FacturXPDFInfo.md +22 -0
  28. data/docs/FactureElectroniqueRestApiSchemasChorusProChorusProCredentials.md +26 -0
  29. data/docs/{CredentialsChorusPro.md → FactureElectroniqueRestApiSchemasProcessingChorusProCredentials.md} +4 -4
  30. data/docs/FactureFacturX.md +30 -30
  31. data/docs/FieldStatus.md +15 -0
  32. data/docs/{DirectionFlux.md → FlowDirection.md} +2 -2
  33. data/docs/FlowProfile.md +15 -0
  34. data/docs/FlowSummary.md +32 -0
  35. data/docs/{ProfilFlux.md → FlowSyntax.md} +2 -2
  36. data/docs/{TypeTVA.md → FlowType.md} +2 -2
  37. data/docs/GenerateCertificateRequest.md +19 -19
  38. data/docs/GenerateCertificateResponse.md +8 -8
  39. data/docs/GetChorusProIdRequest.md +22 -0
  40. data/docs/GetChorusProIdResponse.md +24 -0
  41. data/docs/GetInvoiceRequest.md +20 -0
  42. data/docs/GetInvoiceResponse.md +34 -0
  43. data/docs/GetStructureRequest.md +22 -0
  44. data/docs/GetStructureResponse.md +34 -0
  45. data/docs/GlobalAllowanceAmount.md +15 -0
  46. data/docs/{SantApi.md → HealthApi.md} +23 -23
  47. data/docs/IncomingInvoice.md +54 -0
  48. data/docs/IncomingSupplier.md +32 -0
  49. data/docs/{FormatFacture.md → InvoiceFormat.md} +2 -2
  50. data/docs/InvoiceLine.md +46 -0
  51. data/docs/InvoiceLineAllowanceAmount.md +15 -0
  52. data/docs/InvoiceNote.md +20 -0
  53. data/docs/InvoiceProcessingApi.md +831 -0
  54. data/docs/InvoiceReferences.md +32 -0
  55. data/docs/{StatutFacture.md → InvoiceStatus.md} +5 -5
  56. data/docs/InvoiceTotals.md +30 -0
  57. data/docs/InvoiceTotalsPrepayment.md +15 -0
  58. data/docs/InvoiceTypeCode.md +15 -0
  59. data/docs/InvoicingFramework.md +24 -0
  60. data/docs/InvoicingFrameworkCode.md +15 -0
  61. data/docs/LineNetAmount.md +15 -0
  62. data/docs/MandatoryNoteSchema.md +30 -0
  63. data/docs/ManualRate.md +15 -0
  64. data/docs/ManualVatRate.md +15 -0
  65. data/docs/OperationNature.md +15 -0
  66. data/docs/{FormatSortie.md → OutputFormat.md} +2 -2
  67. data/docs/PDFValidationResultAPI.md +62 -0
  68. data/docs/PDFXMLVerificationApi.md +435 -0
  69. data/docs/PDPCredentials.md +4 -4
  70. data/docs/PageDimensionsSchema.md +20 -0
  71. data/docs/{Beneficiaire.md → Payee.md} +5 -5
  72. data/docs/PaymentMeans.md +15 -0
  73. data/docs/PostalAddress.md +26 -0
  74. data/docs/ProcessingOptions.md +24 -0
  75. data/docs/{Quantite.md → Quantity.md} +2 -2
  76. data/docs/Recipient.md +28 -0
  77. data/docs/SearchFlowRequest.md +34 -0
  78. data/docs/SearchFlowResponse.md +24 -0
  79. data/docs/SearchServicesResponse.md +24 -0
  80. data/docs/SearchStructureRequest.md +26 -0
  81. data/docs/SearchStructureResponse.md +24 -0
  82. data/docs/SignatureInfo.md +2 -2
  83. data/docs/SignatureInfoAPI.md +28 -0
  84. data/docs/SignatureParameters.md +34 -0
  85. data/docs/SimplifiedInvoiceData.md +34 -0
  86. data/docs/StructureInfo.md +10 -10
  87. data/docs/StructureParameters.md +22 -0
  88. data/docs/StructureService.md +24 -0
  89. data/docs/SubmissionMode.md +15 -0
  90. data/docs/SubmitCompleteInvoiceRequest.md +26 -0
  91. data/docs/SubmitCompleteInvoiceResponse.md +34 -0
  92. data/docs/SubmitFlowRequest.md +28 -0
  93. data/docs/SubmitFlowResponse.md +30 -0
  94. data/docs/SubmitInvoiceRequest.md +46 -0
  95. data/docs/SubmitInvoiceResponse.md +24 -0
  96. data/docs/SupplementaryAttachment.md +26 -0
  97. data/docs/Supplier.md +36 -0
  98. data/docs/TaskResponse.md +18 -0
  99. data/docs/TaskStatus.md +22 -0
  100. data/docs/TaxableAmount.md +15 -0
  101. data/docs/TotalGrossAmount.md +15 -0
  102. data/docs/TotalNetAmount.md +15 -0
  103. data/docs/TotalVATAmount.md +15 -0
  104. data/docs/UnitNetPrice.md +15 -0
  105. data/docs/UnitOfMeasure.md +15 -0
  106. data/docs/UserApi.md +74 -0
  107. data/docs/VATAccountingCode.md +15 -0
  108. data/docs/{ProfilAPI.md → VATAmount.md} +2 -2
  109. data/docs/VATCategory.md +15 -0
  110. data/docs/VATLine.md +30 -0
  111. data/docs/ValidationErrorDetail.md +3 -3
  112. data/docs/ValidationErrorResponse.md +18 -0
  113. data/docs/ValidationSuccessResponse.md +18 -0
  114. data/docs/{TypeFlux.md → VatAmount.md} +2 -2
  115. data/docs/VerificationSuccessResponse.md +36 -0
  116. data/docs/VerifiedFieldSchema.md +34 -0
  117. data/factpulse.gemspec +4 -4
  118. data/lib/factpulse/api/afnorpdppa_api.rb +25 -25
  119. data/lib/factpulse/api/afnorpdppa_directory_service_api.rb +40 -40
  120. data/lib/factpulse/api/afnorpdppa_flow_service_api.rb +16 -16
  121. data/lib/factpulse/api/chorus_pro_api.rb +127 -127
  122. data/lib/factpulse/api/health_api.rb +136 -0
  123. data/lib/factpulse/api/invoice_processing_api.rb +835 -0
  124. data/lib/factpulse/api/pdfxml_verification_api.rb +430 -0
  125. data/lib/factpulse/api/user_api.rb +79 -0
  126. data/lib/factpulse/api_client.rb +2 -2
  127. data/lib/factpulse/api_error.rb +2 -2
  128. data/lib/factpulse/api_model_base.rb +2 -2
  129. data/lib/factpulse/configuration.rb +2 -2
  130. data/lib/factpulse/helpers/client.rb +182 -182
  131. data/lib/factpulse/helpers/exceptions.rb +2 -2
  132. data/lib/factpulse/helpers/helpers.rb +5 -5
  133. data/lib/factpulse/models/acknowledgment_status.rb +41 -0
  134. data/lib/factpulse/models/afnor_credentials.rb +169 -0
  135. data/lib/factpulse/models/{destination_afnor.rb → afnor_destination.rb} +10 -10
  136. data/lib/factpulse/models/{reponse_healthcheck_afnor.rb → afnor_health_check_response.rb} +9 -9
  137. data/lib/factpulse/models/{resultat_afnor.rb → afnor_result.rb} +13 -13
  138. data/lib/factpulse/models/allowance_reason_code.rb +45 -0
  139. data/lib/factpulse/models/amount_due.rb +104 -0
  140. data/lib/factpulse/models/api_error.rb +5 -5
  141. data/lib/factpulse/models/api_profile.rb +42 -0
  142. data/lib/factpulse/models/bounding_box_schema.rb +10 -10
  143. data/lib/factpulse/models/celery_status.rb +43 -0
  144. data/lib/factpulse/models/certificate_info_response.rb +164 -164
  145. data/lib/factpulse/models/{destination_chorus_pro.rb → chorus_pro_destination.rb} +7 -7
  146. data/lib/factpulse/models/chorus_pro_result.rb +186 -0
  147. data/lib/factpulse/models/destination.rb +7 -7
  148. data/lib/factpulse/models/document_type.rb +43 -0
  149. data/lib/factpulse/models/electronic_address.rb +196 -0
  150. data/lib/factpulse/models/enriched_invoice_info.rb +348 -0
  151. data/lib/factpulse/models/error_level.rb +2 -2
  152. data/lib/factpulse/models/error_source.rb +2 -2
  153. data/lib/factpulse/models/factur_xpdf_info.rb +205 -0
  154. data/lib/factpulse/models/{chorus_pro_credentials.rb → facture_electronique_rest_api_schemas_chorus_pro_chorus_pro_credentials.rb} +11 -11
  155. data/lib/factpulse/models/facture_electronique_rest_api_schemas_processing_chorus_pro_credentials.rb +191 -0
  156. data/lib/factpulse/models/facture_factur_x.rb +160 -160
  157. data/lib/factpulse/models/field_status.rb +43 -0
  158. data/lib/factpulse/models/flow_direction.rb +40 -0
  159. data/lib/factpulse/models/flow_profile.rb +41 -0
  160. data/lib/factpulse/models/flow_summary.rb +251 -0
  161. data/lib/factpulse/models/flow_syntax.rb +43 -0
  162. data/lib/factpulse/models/flow_type.rb +43 -0
  163. data/lib/factpulse/models/generate_certificate_request.rb +106 -106
  164. data/lib/factpulse/models/generate_certificate_response.rb +47 -47
  165. data/lib/factpulse/models/get_chorus_pro_id_request.rb +188 -0
  166. data/lib/factpulse/models/get_chorus_pro_id_response.rb +230 -0
  167. data/lib/factpulse/models/get_invoice_request.rb +176 -0
  168. data/lib/factpulse/models/get_invoice_response.rb +261 -0
  169. data/lib/factpulse/models/get_structure_request.rb +188 -0
  170. data/lib/factpulse/models/get_structure_response.rb +261 -0
  171. data/lib/factpulse/models/global_allowance_amount.rb +104 -0
  172. data/lib/factpulse/models/http_validation_error.rb +2 -2
  173. data/lib/factpulse/models/incoming_invoice.rb +522 -0
  174. data/lib/factpulse/models/incoming_supplier.rb +236 -0
  175. data/lib/factpulse/models/invoice_format.rb +41 -0
  176. data/lib/factpulse/models/invoice_line.rb +389 -0
  177. data/lib/factpulse/models/invoice_line_allowance_amount.rb +104 -0
  178. data/lib/factpulse/models/invoice_note.rb +175 -0
  179. data/lib/factpulse/models/invoice_references.rb +290 -0
  180. data/lib/factpulse/models/invoice_status.rb +203 -0
  181. data/lib/factpulse/models/invoice_totals.rb +272 -0
  182. data/lib/factpulse/models/invoice_totals_prepayment.rb +104 -0
  183. data/lib/factpulse/models/invoice_type_code.rb +70 -0
  184. data/lib/factpulse/models/invoicing_framework.rb +217 -0
  185. data/lib/factpulse/models/invoicing_framework_code.rb +46 -0
  186. data/lib/factpulse/models/line_net_amount.rb +104 -0
  187. data/lib/factpulse/models/mandatory_note_schema.rb +265 -0
  188. data/lib/factpulse/models/manual_rate.rb +104 -0
  189. data/lib/factpulse/models/manual_vat_rate.rb +104 -0
  190. data/lib/factpulse/models/operation_nature.rb +52 -0
  191. data/lib/factpulse/models/output_format.rb +40 -0
  192. data/lib/factpulse/models/page_dimensions_schema.rb +193 -0
  193. data/lib/factpulse/models/{beneficiaire.rb → payee.rb} +15 -15
  194. data/lib/factpulse/models/payment_means.rb +50 -0
  195. data/lib/factpulse/models/pdf_validation_result_api.rb +523 -0
  196. data/lib/factpulse/models/pdp_credentials.rb +7 -7
  197. data/lib/factpulse/models/postal_address.rb +189 -0
  198. data/lib/factpulse/models/processing_options.rb +207 -0
  199. data/lib/factpulse/models/quantity.rb +104 -0
  200. data/lib/factpulse/models/recipient.rb +201 -0
  201. data/lib/factpulse/models/scheme_id.rb +2 -2
  202. data/lib/factpulse/models/search_flow_request.rb +306 -0
  203. data/lib/factpulse/models/search_flow_response.rb +249 -0
  204. data/lib/factpulse/models/search_services_response.rb +214 -0
  205. data/lib/factpulse/models/search_structure_request.rb +191 -0
  206. data/lib/factpulse/models/search_structure_response.rb +216 -0
  207. data/lib/factpulse/models/signature_info.rb +20 -20
  208. data/lib/factpulse/models/signature_info_api.rb +216 -0
  209. data/lib/factpulse/models/signature_parameters.rb +235 -0
  210. data/lib/factpulse/models/simplified_invoice_data.rb +342 -0
  211. data/lib/factpulse/models/structure_info.rb +84 -84
  212. data/lib/factpulse/models/structure_parameters.rb +175 -0
  213. data/lib/factpulse/models/structure_service.rb +247 -0
  214. data/lib/factpulse/models/submission_mode.rb +44 -0
  215. data/lib/factpulse/models/submit_complete_invoice_request.rb +239 -0
  216. data/lib/factpulse/models/submit_complete_invoice_response.rb +355 -0
  217. data/lib/factpulse/models/submit_flow_request.rb +238 -0
  218. data/lib/factpulse/models/submit_flow_response.rb +294 -0
  219. data/lib/factpulse/models/submit_invoice_request.rb +388 -0
  220. data/lib/factpulse/models/submit_invoice_response.rb +213 -0
  221. data/lib/factpulse/models/supplementary_attachment.rb +269 -0
  222. data/lib/factpulse/models/supplier.rb +257 -0
  223. data/lib/factpulse/models/task_response.rb +166 -0
  224. data/lib/factpulse/models/task_status.rb +227 -0
  225. data/lib/factpulse/models/taxable_amount.rb +104 -0
  226. data/lib/factpulse/models/total_gross_amount.rb +104 -0
  227. data/lib/factpulse/models/total_net_amount.rb +104 -0
  228. data/lib/factpulse/models/total_vat_amount.rb +104 -0
  229. data/lib/factpulse/models/unit_net_price.rb +104 -0
  230. data/lib/factpulse/models/unit_of_measure.rb +50 -0
  231. data/lib/factpulse/models/validation_error.rb +2 -2
  232. data/lib/factpulse/models/validation_error_detail.rb +6 -6
  233. data/lib/factpulse/models/validation_error_loc_inner.rb +2 -2
  234. data/lib/factpulse/models/validation_error_response.rb +168 -0
  235. data/lib/factpulse/models/validation_success_response.rb +166 -0
  236. data/lib/factpulse/models/vat_accounting_code.rb +46 -0
  237. data/lib/factpulse/models/vat_amount.rb +104 -0
  238. data/lib/factpulse/models/vat_category.rb +47 -0
  239. data/lib/factpulse/models/vat_line.rb +262 -0
  240. data/lib/factpulse/models/verification_success_response.rb +343 -0
  241. data/lib/factpulse/models/verified_field_schema.rb +334 -0
  242. data/lib/factpulse/version.rb +3 -3
  243. data/lib/factpulse.rb +99 -99
  244. metadata +250 -257
  245. data/docs/AdressePostale.md +0 -26
  246. data/docs/CadreDeFacturation.md +0 -24
  247. data/docs/ChampVerifieSchema.md +0 -34
  248. data/docs/ChorusProCredentials.md +0 -26
  249. data/docs/ConsulterFactureRequest.md +0 -20
  250. data/docs/ConsulterFactureResponse.md +0 -34
  251. data/docs/ConsulterStructureRequest.md +0 -22
  252. data/docs/ConsulterStructureResponse.md +0 -34
  253. data/docs/Destinataire.md +0 -28
  254. data/docs/DestinationChorusPro.md +0 -20
  255. data/docs/DimensionPageSchema.md +0 -20
  256. data/docs/DonneesFactureSimplifiees.md +0 -34
  257. data/docs/FactureEnrichieInfo.md +0 -32
  258. data/docs/FactureEntrante.md +0 -54
  259. data/docs/FluxResume.md +0 -32
  260. data/docs/Fournisseur.md +0 -36
  261. data/docs/FournisseurEntrant.md +0 -32
  262. data/docs/InformationSignatureAPI.md +0 -28
  263. data/docs/LigneDePoste.md +0 -46
  264. data/docs/LigneDePosteMontantRemiseHt.md +0 -15
  265. data/docs/LigneDePosteTauxTvaManuel.md +0 -15
  266. data/docs/LigneDeTVA.md +0 -30
  267. data/docs/MontantAPayer.md +0 -15
  268. data/docs/MontantBaseHt.md +0 -15
  269. data/docs/MontantHtTotal.md +0 -15
  270. data/docs/MontantRemiseGlobaleTtc.md +0 -15
  271. data/docs/MontantTotal.md +0 -30
  272. data/docs/MontantTotalAcompte.md +0 -15
  273. data/docs/MontantTotalLigneHt.md +0 -15
  274. data/docs/MontantTtcTotal.md +0 -15
  275. data/docs/MontantTvaLigne.md +0 -15
  276. data/docs/MontantTvaTotal.md +0 -15
  277. data/docs/MontantUnitaireHt.md +0 -15
  278. data/docs/NatureOperation.md +0 -15
  279. data/docs/Note.md +0 -20
  280. data/docs/NoteObligatoireSchema.md +0 -30
  281. data/docs/ObtenirIdChorusProRequest.md +0 -22
  282. data/docs/ObtenirIdChorusProResponse.md +0 -24
  283. data/docs/OptionsProcessing.md +0 -24
  284. data/docs/PDFFacturXInfo.md +0 -22
  285. data/docs/ParametresSignature.md +0 -34
  286. data/docs/ParametresStructure.md +0 -22
  287. data/docs/PieceJointeComplementaire.md +0 -26
  288. data/docs/RechercherServicesResponse.md +0 -24
  289. data/docs/RechercherStructureRequest.md +0 -26
  290. data/docs/RechercherStructureResponse.md +0 -24
  291. data/docs/References.md +0 -32
  292. data/docs/ReponseHealthcheckAFNOR.md +0 -22
  293. data/docs/ReponseRechercheFlux.md +0 -24
  294. data/docs/ReponseSoumissionFlux.md +0 -30
  295. data/docs/ReponseTache.md +0 -18
  296. data/docs/ReponseValidationErreur.md +0 -18
  297. data/docs/ReponseValidationSucces.md +0 -18
  298. data/docs/ReponseVerificationSucces.md +0 -36
  299. data/docs/RequeteRechercheFlux.md +0 -34
  300. data/docs/RequeteSoumissionFlux.md +0 -28
  301. data/docs/ResultatChorusPro.md +0 -22
  302. data/docs/ResultatValidationPDFAPI.md +0 -62
  303. data/docs/ServiceStructure.md +0 -24
  304. data/docs/SoumettreFactureCompleteRequest.md +0 -26
  305. data/docs/SoumettreFactureCompleteResponse.md +0 -34
  306. data/docs/SoumettreFactureRequest.md +0 -46
  307. data/docs/SoumettreFactureResponse.md +0 -24
  308. data/docs/StatutAcquittement.md +0 -15
  309. data/docs/StatutCelery.md +0 -15
  310. data/docs/StatutChampAPI.md +0 -15
  311. data/docs/StatutTache.md +0 -22
  312. data/docs/SyntaxeFlux.md +0 -15
  313. data/docs/Tauxmanuel.md +0 -15
  314. data/docs/TraitementFactureApi.md +0 -831
  315. data/docs/TypeDocument.md +0 -15
  316. data/docs/TypeFacture.md +0 -15
  317. data/docs/Unite.md +0 -15
  318. data/docs/UtilisateurApi.md +0 -74
  319. data/docs/VrificationPDFXMLApi.md +0 -435
  320. data/lib/factpulse/api/sant_api.rb +0 -136
  321. data/lib/factpulse/api/traitement_facture_api.rb +0 -835
  322. data/lib/factpulse/api/utilisateur_api.rb +0 -79
  323. data/lib/factpulse/api/vrification_pdfxml_api.rb +0 -430
  324. data/lib/factpulse/models/adresse_electronique.rb +0 -196
  325. data/lib/factpulse/models/adresse_postale.rb +0 -189
  326. data/lib/factpulse/models/cadre_de_facturation.rb +0 -217
  327. data/lib/factpulse/models/categorie_tva.rb +0 -47
  328. data/lib/factpulse/models/champ_verifie_schema.rb +0 -334
  329. data/lib/factpulse/models/code_cadre_facturation.rb +0 -42
  330. data/lib/factpulse/models/code_raison_reduction.rb +0 -45
  331. data/lib/factpulse/models/consulter_facture_request.rb +0 -176
  332. data/lib/factpulse/models/consulter_facture_response.rb +0 -261
  333. data/lib/factpulse/models/consulter_structure_request.rb +0 -188
  334. data/lib/factpulse/models/consulter_structure_response.rb +0 -261
  335. data/lib/factpulse/models/credentials_afnor.rb +0 -169
  336. data/lib/factpulse/models/credentials_chorus_pro.rb +0 -191
  337. data/lib/factpulse/models/destinataire.rb +0 -201
  338. data/lib/factpulse/models/dimension_page_schema.rb +0 -193
  339. data/lib/factpulse/models/direction_flux.rb +0 -40
  340. data/lib/factpulse/models/donnees_facture_simplifiees.rb +0 -342
  341. data/lib/factpulse/models/facture_enrichie_info.rb +0 -348
  342. data/lib/factpulse/models/facture_entrante.rb +0 -522
  343. data/lib/factpulse/models/flux_resume.rb +0 -251
  344. data/lib/factpulse/models/format_facture.rb +0 -41
  345. data/lib/factpulse/models/format_sortie.rb +0 -40
  346. data/lib/factpulse/models/fournisseur.rb +0 -257
  347. data/lib/factpulse/models/fournisseur_entrant.rb +0 -236
  348. data/lib/factpulse/models/information_signature_api.rb +0 -216
  349. data/lib/factpulse/models/ligne_de_poste.rb +0 -390
  350. data/lib/factpulse/models/ligne_de_poste_montant_remise_ht.rb +0 -104
  351. data/lib/factpulse/models/ligne_de_poste_taux_tva_manuel.rb +0 -104
  352. data/lib/factpulse/models/ligne_de_tva.rb +0 -262
  353. data/lib/factpulse/models/mode_depot.rb +0 -41
  354. data/lib/factpulse/models/mode_paiement.rb +0 -44
  355. data/lib/factpulse/models/montant_a_payer.rb +0 -104
  356. data/lib/factpulse/models/montant_base_ht.rb +0 -104
  357. data/lib/factpulse/models/montant_ht_total.rb +0 -104
  358. data/lib/factpulse/models/montant_remise_globale_ttc.rb +0 -104
  359. data/lib/factpulse/models/montant_total.rb +0 -272
  360. data/lib/factpulse/models/montant_total_acompte.rb +0 -104
  361. data/lib/factpulse/models/montant_total_ligne_ht.rb +0 -104
  362. data/lib/factpulse/models/montant_ttc_total.rb +0 -104
  363. data/lib/factpulse/models/montant_tva.rb +0 -104
  364. data/lib/factpulse/models/montant_tva_ligne.rb +0 -104
  365. data/lib/factpulse/models/montant_tva_total.rb +0 -104
  366. data/lib/factpulse/models/montant_unitaire_ht.rb +0 -104
  367. data/lib/factpulse/models/nature_operation.rb +0 -52
  368. data/lib/factpulse/models/note.rb +0 -175
  369. data/lib/factpulse/models/note_obligatoire_schema.rb +0 -265
  370. data/lib/factpulse/models/obtenir_id_chorus_pro_request.rb +0 -188
  371. data/lib/factpulse/models/obtenir_id_chorus_pro_response.rb +0 -230
  372. data/lib/factpulse/models/options_processing.rb +0 -207
  373. data/lib/factpulse/models/parametres_signature.rb +0 -235
  374. data/lib/factpulse/models/parametres_structure.rb +0 -175
  375. data/lib/factpulse/models/pdf_factur_x_info.rb +0 -205
  376. data/lib/factpulse/models/piece_jointe_complementaire.rb +0 -269
  377. data/lib/factpulse/models/profil_api.rb +0 -42
  378. data/lib/factpulse/models/profil_flux.rb +0 -41
  379. data/lib/factpulse/models/quantite.rb +0 -104
  380. data/lib/factpulse/models/rechercher_services_response.rb +0 -214
  381. data/lib/factpulse/models/rechercher_structure_request.rb +0 -191
  382. data/lib/factpulse/models/rechercher_structure_response.rb +0 -216
  383. data/lib/factpulse/models/references.rb +0 -290
  384. data/lib/factpulse/models/reponse_recherche_flux.rb +0 -249
  385. data/lib/factpulse/models/reponse_soumission_flux.rb +0 -294
  386. data/lib/factpulse/models/reponse_tache.rb +0 -165
  387. data/lib/factpulse/models/reponse_validation_erreur.rb +0 -167
  388. data/lib/factpulse/models/reponse_validation_succes.rb +0 -165
  389. data/lib/factpulse/models/reponse_verification_succes.rb +0 -343
  390. data/lib/factpulse/models/requete_recherche_flux.rb +0 -306
  391. data/lib/factpulse/models/requete_soumission_flux.rb +0 -238
  392. data/lib/factpulse/models/resultat_chorus_pro.rb +0 -186
  393. data/lib/factpulse/models/resultat_validation_pdfapi.rb +0 -523
  394. data/lib/factpulse/models/service_structure.rb +0 -247
  395. data/lib/factpulse/models/soumettre_facture_complete_request.rb +0 -239
  396. data/lib/factpulse/models/soumettre_facture_complete_response.rb +0 -355
  397. data/lib/factpulse/models/soumettre_facture_request.rb +0 -388
  398. data/lib/factpulse/models/soumettre_facture_response.rb +0 -213
  399. data/lib/factpulse/models/statut_acquittement.rb +0 -41
  400. data/lib/factpulse/models/statut_celery.rb +0 -43
  401. data/lib/factpulse/models/statut_champ_api.rb +0 -43
  402. data/lib/factpulse/models/statut_facture.rb +0 -203
  403. data/lib/factpulse/models/statut_tache.rb +0 -226
  404. data/lib/factpulse/models/syntaxe_flux.rb +0 -43
  405. data/lib/factpulse/models/tauxmanuel.rb +0 -104
  406. data/lib/factpulse/models/type_document.rb +0 -43
  407. data/lib/factpulse/models/type_facture.rb +0 -54
  408. data/lib/factpulse/models/type_flux.rb +0 -43
  409. data/lib/factpulse/models/type_tva.rb +0 -42
  410. data/lib/factpulse/models/unite.rb +0 -44
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18af34c1a63d2c0885f063733c80e707620ba71f3c66715cf745f755cc75257d
4
- data.tar.gz: 5dab848c527564367ae0edf9bc1a2528439e921a88b5b535f7f79293a47a25fe
3
+ metadata.gz: 478a4ac7a831e89b36ec62bdbe1b56d9c64a65f9ee43ed4bb08c84bc15f319db
4
+ data.tar.gz: 3d21fcc9fde5390be6826dc2031df27828eb6a78e645c9ff921d247730a905a8
5
5
  SHA512:
6
- metadata.gz: 2b7c3950599e9594d14ca5381c9fe7a9bdfc5bfdd26e290ba6c41288aebbc346eb32e2b2bd8883401e823eaecf2cb9e71dd14f80ea20ea55656a5f3ed6477df4
7
- data.tar.gz: 3d2ca6960f92c593a6b4efce60f4e3286bd7dbc3282f91b1049a8e6987e65dd1afb86e787611ec8c7850eb1cf09b6ffe545c73c0a74be77715dfe9a4981c49c6
6
+ metadata.gz: e66553231193e8e1228db2c1f0e7405b60f69a9f3fb4cf7e26af314973bb7c023d0f8aaa624cd1cf885c22dc8204adca336108c359f9c3454b88c505c5af744e
7
+ data.tar.gz: cfc636b0d788d240eb12afca134c22d505cb65e03e98cbe3b177fa64127b476637f9eb1d1a5039430102b182153dc8c525255fb65ea05f7cf829bef3c62a1ba2
data/CHANGELOG.md CHANGED
@@ -7,7 +7,7 @@ et ce projet adhère au [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
- ## [2.0.42] - 2025-12-16
10
+ ## [3.0.0] - 2025-12-19
11
11
 
12
12
  ### Added
13
13
  - Version initiale du SDK ruby
@@ -24,5 +24,5 @@ et ce projet adhère au [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
24
24
  - Guide d'authentification JWT
25
25
  - Configuration avancée (timeout, proxy, debug)
26
26
 
27
- [Unreleased]: https://github.com/factpulse/sdk-ruby/compare/v2.0.42...HEAD
28
- [2.0.42]: https://github.com/factpulse/sdk-ruby/releases/tag/v2.0.42
27
+ [Unreleased]: https://github.com/factpulse/sdk-ruby/compare/v3.0.0...HEAD
28
+ [3.0.0]: https://github.com/factpulse/sdk-ruby/releases/tag/v3.0.0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- factpulse (2.0.42)
4
+ factpulse (3.0.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -27,7 +27,7 @@ GEM
27
27
  pry-byebug (3.10.1)
28
28
  byebug (~> 11.0)
29
29
  pry (>= 0.13, < 0.15)
30
- psych (5.3.0)
30
+ psych (5.3.1)
31
31
  date
32
32
  stringio
33
33
  racc (1.8.1)
@@ -55,7 +55,7 @@ GEM
55
55
  ruby-progressbar (~> 1.7)
56
56
  unicode-display_width (>= 1.4.0, < 1.6)
57
57
  ruby-progressbar (1.13.0)
58
- stringio (3.1.9)
58
+ stringio (3.2.0)
59
59
  typhoeus (1.5.0)
60
60
  ethon (>= 0.9.0, < 0.16.0)
61
61
  unicode-display_width (1.5.0)
data/README.md CHANGED
@@ -1,14 +1,14 @@
1
1
  # FactPulse SDK Ruby
2
2
 
3
- Client Ruby officiel pour l'API FactPulse - Facturation électronique française.
3
+ Official Ruby client for the FactPulse API - French electronic invoicing.
4
4
 
5
- ## Fonctionnalités
5
+ ## Features
6
6
 
7
- - **Factur-X** : Génération et validation de factures électroniques (profils MINIMUM, BASIC, EN16931, EXTENDED)
8
- - **Chorus Pro** : Intégration avec la plateforme de facturation publique française
9
- - **AFNOR PDP/PA** : Soumission de flux conformes à la norme XP Z12-013
10
- - **Signature électronique** : Signature PDF (PAdES-B-B, PAdES-B-T, PAdES-B-LT)
11
- - **Client simplifié** : Authentification JWT et polling intégrés via `helpers`
7
+ - **Factur-X**: Generation and validation of electronic invoices (MINIMUM, BASIC, EN16931, EXTENDED profiles)
8
+ - **Chorus Pro**: Integration with the French public sector invoicing platform
9
+ - **AFNOR PDP/PA**: Submission of flows compliant with the XP Z12-013 standard
10
+ - **Electronic signature**: PDF signature (PAdES-B-B, PAdES-B-T, PAdES-B-LT)
11
+ - **Simplified client**: JWT authentication and integrated polling via `helpers`
12
12
 
13
13
  ## Installation
14
14
 
@@ -16,15 +16,15 @@ Client Ruby officiel pour l'API FactPulse - Facturation électronique française
16
16
  gem install factpulse
17
17
  ```
18
18
 
19
- Ou dans votre Gemfile :
19
+ Or in your Gemfile:
20
20
 
21
21
  ```ruby
22
22
  gem 'factpulse'
23
23
  ```
24
24
 
25
- ## Démarrage rapide
25
+ ## Quick Start
26
26
 
27
- Le module `helpers` offre une API simplifiée avec authentification et polling automatiques :
27
+ The `helpers` module provides a simplified API with automatic authentication and polling:
28
28
 
29
29
  ```ruby
30
30
  require 'factpulse'
@@ -32,177 +32,177 @@ require 'factpulse/helpers'
32
32
 
33
33
  include Factpulse::Helpers
34
34
 
35
- # Créer le client
35
+ # Create the client
36
36
  client = FactPulseClient.new(
37
- 'votre_email@example.com',
38
- 'votre_mot_de_passe'
37
+ 'your_email@example.com',
38
+ 'your_password'
39
39
  )
40
40
 
41
- # Construire la facture avec les helpers
42
- facture_data = {
43
- numeroFacture: 'FAC-2025-001',
44
- dateFacture: '2025-01-15',
45
- fournisseur: fournisseur(
46
- 'Mon Entreprise SAS',
41
+ # Build the invoice with helpers
42
+ invoice_data = {
43
+ number: 'INV-2025-001',
44
+ date: '2025-01-15',
45
+ supplier: supplier(
46
+ 'My Company SAS',
47
47
  '12345678901234',
48
- '123 Rue Example',
48
+ '123 Example Street',
49
49
  '75001',
50
50
  'Paris'
51
51
  ),
52
- destinataire: destinataire(
52
+ recipient: recipient(
53
53
  'Client SARL',
54
54
  '98765432109876',
55
- '456 Avenue Test',
55
+ '456 Test Avenue',
56
56
  '69001',
57
57
  'Lyon'
58
58
  ),
59
- montantTotal: montant_total(1000.00, 200.00, 1200.00, 1200.00),
60
- lignesDePoste: [
61
- ligne_de_poste(1, 'Prestation de conseil', 10, 100.00, 1000.00)
59
+ total_amount: total_amount(1000.00, 200.00, 1200.00, 1200.00),
60
+ lines: [
61
+ invoice_line(1, 'Consulting services', 10, 100.00, 1000.00)
62
62
  ],
63
- lignesDeTva: [
64
- ligne_de_tva(1000.00, 200.00)
63
+ vat_lines: [
64
+ vat_line(1000.00, 200.00)
65
65
  ]
66
66
  }
67
67
 
68
- # Générer le PDF Factur-X
69
- pdf_bytes = client.generer_facturx(facture_data, 'facture_source.pdf', 'EN16931')
68
+ # Generate the Factur-X PDF
69
+ pdf_bytes = client.generate_facturx(invoice_data, 'source_invoice.pdf', 'EN16931')
70
70
 
71
- File.binwrite('facture_facturx.pdf', pdf_bytes)
71
+ File.binwrite('invoice_facturx.pdf', pdf_bytes)
72
72
  ```
73
73
 
74
- ## Helpers disponibles (module Factpulse::Helpers)
74
+ ## Available Helpers (Factpulse::Helpers module)
75
75
 
76
- ### montant(value)
76
+ ### amount(value)
77
77
 
78
- Convertit une valeur en string formaté pour les montants monétaires.
78
+ Converts a value to a formatted string for monetary amounts.
79
79
 
80
80
  ```ruby
81
81
  include Factpulse::Helpers
82
82
 
83
- montant(1234.5) # "1234.50"
84
- montant('1234.56') # "1234.56"
85
- montant(nil) # "0.00"
83
+ amount(1234.5) # "1234.50"
84
+ amount('1234.56') # "1234.56"
85
+ amount(nil) # "0.00"
86
86
  ```
87
87
 
88
- ### montant_total(ht, tva, ttc, a_payer, ...)
88
+ ### total_amount(excluding_tax, vat, including_tax, due, ...)
89
89
 
90
- Crée un objet MontantTotal complet.
90
+ Creates a complete TotalAmount object.
91
91
 
92
92
  ```ruby
93
- total = montant_total(
94
- 1000.00, # ht
95
- 200.00, # tva
96
- 1200.00, # ttc
97
- 1200.00, # a_payer
98
- 50.00, # remise_ttc (optionnel)
99
- 'Fidélité', # motif_remise (optionnel)
100
- 100.00 # acompte (optionnel)
93
+ total = total_amount(
94
+ 1000.00, # excluding_tax
95
+ 200.00, # vat
96
+ 1200.00, # including_tax
97
+ 1200.00, # due
98
+ 50.00, # discount_including_tax (optional)
99
+ 'Loyalty discount', # discount_reason (optional)
100
+ 100.00 # prepayment (optional)
101
101
  )
102
102
  ```
103
103
 
104
- ### ligne_de_poste(numero, denomination, quantite, montant_unitaire_ht, montant_total_ligne_ht, ...)
104
+ ### invoice_line(number, description, quantity, unit_price, line_total, ...)
105
105
 
106
- Crée une ligne de facturation.
106
+ Creates an invoice line.
107
107
 
108
108
  ```ruby
109
- ligne = ligne_de_poste(
109
+ line = invoice_line(
110
110
  1,
111
- 'Prestation de conseil',
111
+ 'Consulting services',
112
112
  5,
113
113
  200.00,
114
- 1000.00, # montant_total_ligne_ht requis
115
- 'S', # categorie_tva: S, Z, E, AE, K
116
- 'HEURE', # unite: FORFAIT, PIECE, HEURE, JOUR...
114
+ 1000.00, # line_total required
115
+ 'S', # vat_category: S, Z, E, AE, K
116
+ 'HOUR', # unit: FIXED, PIECE, HOUR, DAY...
117
117
  {
118
- taux_tva: 'TVA20', # Ou taux_tva_manuel: '20.00'
118
+ vat_rate: 'VAT20', # Or manual_vat_rate: '20.00'
119
119
  reference: 'REF-001'
120
120
  }
121
121
  )
122
122
  ```
123
123
 
124
- ### ligne_de_tva(montant_base_ht, montant_tva, ...)
124
+ ### vat_line(base_excluding_tax, vat_amount, ...)
125
125
 
126
- Crée une ligne de ventilation TVA.
126
+ Creates a VAT breakdown line.
127
127
 
128
128
  ```ruby
129
- tva = ligne_de_tva(
130
- 1000.00, # montant_base_ht
131
- 200.00, # montant_tva
132
- 'S', # categorie: S, Z, E, AE, K
133
- { taux: 'TVA20' } # Ou taux_manuel: '20.00'
129
+ vat = vat_line(
130
+ 1000.00, # base_excluding_tax
131
+ 200.00, # vat_amount
132
+ 'S', # category: S, Z, E, AE, K
133
+ { rate: 'VAT20' } # Or manual_rate: '20.00'
134
134
  )
135
135
  ```
136
136
 
137
- ### adresse_postale(ligne1, code_postal, ville, ...)
137
+ ### postal_address(line1, postal_code, city, ...)
138
138
 
139
- Crée une adresse postale structurée.
139
+ Creates a structured postal address.
140
140
 
141
141
  ```ruby
142
- adresse = adresse_postale(
143
- '123 Rue de la République',
142
+ address = postal_address(
143
+ '123 Republic Street',
144
144
  '75001',
145
145
  'Paris',
146
- 'FR', # pays (défaut: 'FR')
147
- 'Bâtiment A' # ligne2 (optionnel)
146
+ 'FR', # country (default: 'FR')
147
+ 'Building A' # line2 (optional)
148
148
  )
149
149
  ```
150
150
 
151
- ### fournisseur(nom, siret, adresse_ligne1, code_postal, ville, options)
151
+ ### supplier(name, siret, address_line1, postal_code, city, options)
152
152
 
153
- Crée un fournisseur complet avec calcul automatique du SIREN et TVA intra.
153
+ Creates a complete supplier with automatic calculation of SIREN and intra-community VAT.
154
154
 
155
155
  ```ruby
156
- f = fournisseur(
157
- 'Ma Société SAS',
156
+ s = supplier(
157
+ 'My Company SAS',
158
158
  '12345678901234',
159
- '123 Rue Example',
159
+ '123 Example Street',
160
160
  '75001',
161
161
  'Paris',
162
162
  { iban: 'FR7630006000011234567890189' }
163
163
  )
164
- # SIREN et TVA intracommunautaire calculés automatiquement
164
+ # SIREN and intra-community VAT automatically calculated
165
165
  ```
166
166
 
167
- ### destinataire(nom, siret, adresse_ligne1, code_postal, ville, options)
167
+ ### recipient(name, siret, address_line1, postal_code, city, options)
168
168
 
169
- Crée un destinataire (client) avec calcul automatique du SIREN.
169
+ Creates a recipient (customer) with automatic calculation of SIREN.
170
170
 
171
171
  ```ruby
172
- d = destinataire(
172
+ r = recipient(
173
173
  'Client SARL',
174
174
  '98765432109876',
175
- '456 Avenue Test',
175
+ '456 Test Avenue',
176
176
  '69001',
177
177
  'Lyon'
178
178
  )
179
179
  ```
180
180
 
181
- ## Mode Zero-Trust (Chorus Pro / AFNOR)
181
+ ## Zero-Trust Mode (Chorus Pro / AFNOR)
182
182
 
183
- Pour passer vos propres credentials sans stockage côté serveur :
183
+ To pass your own credentials without server-side storage:
184
184
 
185
185
  ```ruby
186
186
  include Factpulse::Helpers
187
187
 
188
188
  chorus_creds = ChorusProCredentials.new(
189
- 'votre_client_id',
190
- 'votre_client_secret',
191
- 'votre_login',
192
- 'votre_password',
189
+ 'your_client_id',
190
+ 'your_client_secret',
191
+ 'your_login',
192
+ 'your_password',
193
193
  true # sandbox
194
194
  )
195
195
 
196
196
  afnor_creds = AFNORCredentials.new(
197
197
  'https://api.pdp.fr/flow/v1',
198
198
  'https://auth.pdp.fr/oauth/token',
199
- 'votre_client_id',
200
- 'votre_client_secret'
199
+ 'your_client_id',
200
+ 'your_client_secret'
201
201
  )
202
202
 
203
203
  client = FactPulseClient.new(
204
- 'votre_email@example.com',
205
- 'votre_mot_de_passe',
204
+ 'your_email@example.com',
205
+ 'your_password',
206
206
  nil, # api_url
207
207
  nil, # client_uid
208
208
  chorus_creds,
@@ -210,11 +210,11 @@ client = FactPulseClient.new(
210
210
  )
211
211
  ```
212
212
 
213
- ## Ressources
213
+ ## Resources
214
214
 
215
- - **Documentation API** : https://factpulse.fr/api/facturation/documentation
216
- - **Support** : contact@factpulse.fr
215
+ - **API Documentation**: https://factpulse.fr/api/facturation/documentation
216
+ - **Support**: contact@factpulse.fr
217
217
 
218
- ## Licence
218
+ ## License
219
219
 
220
220
  MIT License - Copyright (c) 2025 FactPulse
@@ -1,4 +1,4 @@
1
- # FactPulse::CredentialsAFNOR
1
+ # FactPulse::AFNORCredentials
2
2
 
3
3
  ## Properties
4
4
 
@@ -13,7 +13,7 @@
13
13
  ```ruby
14
14
  require 'factpulse'
15
15
 
16
- instance = FactPulse::CredentialsAFNOR.new(
16
+ instance = FactPulse::AFNORCredentials.new(
17
17
  client_id: null,
18
18
  client_secret: null,
19
19
  flow_service_url: null
@@ -1,12 +1,12 @@
1
- # FactPulse::DestinationAFNOR
1
+ # FactPulse::AFNORDestination
2
2
 
3
3
  ## Properties
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **type** | **String** | | [optional][default to &#39;afnor&#39;] |
8
- | **credentials** | [**CredentialsAFNOR**](CredentialsAFNOR.md) | | [optional] |
9
- | **flow_syntax** | **String** | Syntaxe du flux à envoyer | [optional][default to &#39;Factur-X&#39;] |
8
+ | **credentials** | [**AFNORCredentials**](AFNORCredentials.md) | | [optional] |
9
+ | **flow_syntax** | **String** | Flow syntax to send | [optional][default to &#39;Factur-X&#39;] |
10
10
  | **tracking_id** | **String** | | [optional] |
11
11
 
12
12
  ## Example
@@ -14,7 +14,7 @@
14
14
  ```ruby
15
15
  require 'factpulse'
16
16
 
17
- instance = FactPulse::DestinationAFNOR.new(
17
+ instance = FactPulse::AFNORDestination.new(
18
18
  type: null,
19
19
  credentials: null,
20
20
  flow_syntax: null,
@@ -0,0 +1,22 @@
1
+ # FactPulse::AFNORHealthCheckResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **flow_service_ok** | **Boolean** | Flow Service API status | |
8
+ | **directory_service_ok** | **Boolean** | Directory Service API status | |
9
+ | **message** | **String** | Descriptive status message | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'factpulse'
15
+
16
+ instance = FactPulse::AFNORHealthCheckResponse.new(
17
+ flow_service_ok: null,
18
+ directory_service_ok: null,
19
+ message: null
20
+ )
21
+ ```
22
+
@@ -4,18 +4,18 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
- | [**get_afnor_credentials_api_v1_afnor_credentials_get**](AFNORPDPPAApi.md#get_afnor_credentials_api_v1_afnor_credentials_get) | **GET** /api/v1/afnor/credentials | Récupérer les credentials AFNOR stockés |
8
- | [**get_flux_entrant_api_v1_afnor_flux_entrants_flow_id_get**](AFNORPDPPAApi.md#get_flux_entrant_api_v1_afnor_flux_entrants_flow_id_get) | **GET** /api/v1/afnor/flux-entrants/{flow_id} | Récupérer et extraire une facture entrante |
9
- | [**oauth_token_proxy_api_v1_afnor_oauth_token_post**](AFNORPDPPAApi.md#oauth_token_proxy_api_v1_afnor_oauth_token_post) | **POST** /api/v1/afnor/oauth/token | Endpoint OAuth2 pour authentification AFNOR |
7
+ | [**get_afnor_credentials_api_v1_afnor_credentials_get**](AFNORPDPPAApi.md#get_afnor_credentials_api_v1_afnor_credentials_get) | **GET** /api/v1/afnor/credentials | Retrieve stored AFNOR credentials |
8
+ | [**get_flux_entrant_api_v1_afnor_incoming_flows_flow_id_get**](AFNORPDPPAApi.md#get_flux_entrant_api_v1_afnor_incoming_flows_flow_id_get) | **GET** /api/v1/afnor/incoming-flows/{flow_id} | Retrieve and extract an incoming invoice |
9
+ | [**oauth_token_proxy_api_v1_afnor_oauth_token_post**](AFNORPDPPAApi.md#oauth_token_proxy_api_v1_afnor_oauth_token_post) | **POST** /api/v1/afnor/oauth/token | OAuth2 endpoint for AFNOR authentication |
10
10
 
11
11
 
12
12
  ## get_afnor_credentials_api_v1_afnor_credentials_get
13
13
 
14
14
  > Object get_afnor_credentials_api_v1_afnor_credentials_get
15
15
 
16
- Récupérer les credentials AFNOR stockés
16
+ Retrieve stored AFNOR credentials
17
17
 
18
- Récupère les credentials AFNOR/PDP stockés pour le client_uid du JWT. Cet endpoint est utilisé par le SDK en mode 'stored' pour récupérer les credentials avant de faire l'OAuth AFNOR lui-même.
18
+ Retrieves stored AFNOR/PDP credentials for the JWT's client_uid. This endpoint is used by the SDK in 'stored' mode to retrieve credentials before performing AFNOR OAuth itself.
19
19
 
20
20
  ### Examples
21
21
 
@@ -31,7 +31,7 @@ end
31
31
  api_instance = FactPulse::AFNORPDPPAApi.new
32
32
 
33
33
  begin
34
- # Récupérer les credentials AFNOR stockés
34
+ # Retrieve stored AFNOR credentials
35
35
  result = api_instance.get_afnor_credentials_api_v1_afnor_credentials_get
36
36
  p result
37
37
  rescue FactPulse::ApiError => e
@@ -47,7 +47,7 @@ This returns an Array which contains the response data, status code and headers.
47
47
 
48
48
  ```ruby
49
49
  begin
50
- # Récupérer les credentials AFNOR stockés
50
+ # Retrieve stored AFNOR credentials
51
51
  data, status_code, headers = api_instance.get_afnor_credentials_api_v1_afnor_credentials_get_with_http_info
52
52
  p status_code # => 2xx
53
53
  p headers # => { ... }
@@ -75,13 +75,13 @@ This endpoint does not need any parameter.
75
75
  - **Accept**: application/json
76
76
 
77
77
 
78
- ## get_flux_entrant_api_v1_afnor_flux_entrants_flow_id_get
78
+ ## get_flux_entrant_api_v1_afnor_incoming_flows_flow_id_get
79
79
 
80
- > <FactureEntrante> get_flux_entrant_api_v1_afnor_flux_entrants_flow_id_get(flow_id, opts)
80
+ > <IncomingInvoice> get_flux_entrant_api_v1_afnor_incoming_flows_flow_id_get(flow_id, opts)
81
81
 
82
- Récupérer et extraire une facture entrante
82
+ Retrieve and extract an incoming invoice
83
83
 
84
- Télécharge un flux entrant depuis la PDP AFNOR et extrait les métadonnées de la facture vers un format JSON unifié. Supporte les formats Factur-X, CII et UBL.
84
+ Downloads an incoming flow from the AFNOR PDP and extracts invoice metadata into a unified JSON format. Supports Factur-X, CII, and UBL formats.
85
85
 
86
86
  ### Examples
87
87
 
@@ -101,29 +101,29 @@ opts = {
101
101
  }
102
102
 
103
103
  begin
104
- # Récupérer et extraire une facture entrante
105
- result = api_instance.get_flux_entrant_api_v1_afnor_flux_entrants_flow_id_get(flow_id, opts)
104
+ # Retrieve and extract an incoming invoice
105
+ result = api_instance.get_flux_entrant_api_v1_afnor_incoming_flows_flow_id_get(flow_id, opts)
106
106
  p result
107
107
  rescue FactPulse::ApiError => e
108
- puts "Error when calling AFNORPDPPAApi->get_flux_entrant_api_v1_afnor_flux_entrants_flow_id_get: #{e}"
108
+ puts "Error when calling AFNORPDPPAApi->get_flux_entrant_api_v1_afnor_incoming_flows_flow_id_get: #{e}"
109
109
  end
110
110
  ```
111
111
 
112
- #### Using the get_flux_entrant_api_v1_afnor_flux_entrants_flow_id_get_with_http_info variant
112
+ #### Using the get_flux_entrant_api_v1_afnor_incoming_flows_flow_id_get_with_http_info variant
113
113
 
114
114
  This returns an Array which contains the response data, status code and headers.
115
115
 
116
- > <Array(<FactureEntrante>, Integer, Hash)> get_flux_entrant_api_v1_afnor_flux_entrants_flow_id_get_with_http_info(flow_id, opts)
116
+ > <Array(<IncomingInvoice>, Integer, Hash)> get_flux_entrant_api_v1_afnor_incoming_flows_flow_id_get_with_http_info(flow_id, opts)
117
117
 
118
118
  ```ruby
119
119
  begin
120
- # Récupérer et extraire une facture entrante
121
- data, status_code, headers = api_instance.get_flux_entrant_api_v1_afnor_flux_entrants_flow_id_get_with_http_info(flow_id, opts)
120
+ # Retrieve and extract an incoming invoice
121
+ data, status_code, headers = api_instance.get_flux_entrant_api_v1_afnor_incoming_flows_flow_id_get_with_http_info(flow_id, opts)
122
122
  p status_code # => 2xx
123
123
  p headers # => { ... }
124
- p data # => <FactureEntrante>
124
+ p data # => <IncomingInvoice>
125
125
  rescue FactPulse::ApiError => e
126
- puts "Error when calling AFNORPDPPAApi->get_flux_entrant_api_v1_afnor_flux_entrants_flow_id_get_with_http_info: #{e}"
126
+ puts "Error when calling AFNORPDPPAApi->get_flux_entrant_api_v1_afnor_incoming_flows_flow_id_get_with_http_info: #{e}"
127
127
  end
128
128
  ```
129
129
 
@@ -136,7 +136,7 @@ end
136
136
 
137
137
  ### Return type
138
138
 
139
- [**FactureEntrante**](FactureEntrante.md)
139
+ [**IncomingInvoice**](IncomingInvoice.md)
140
140
 
141
141
  ### Authorization
142
142
 
@@ -152,9 +152,9 @@ end
152
152
 
153
153
  > Object oauth_token_proxy_api_v1_afnor_oauth_token_post
154
154
 
155
- Endpoint OAuth2 pour authentification AFNOR
155
+ OAuth2 endpoint for AFNOR authentication
156
156
 
157
- Endpoint proxy OAuth2 pour obtenir un token d'accès AFNOR. Fait proxy vers le mock AFNOR (sandbox) ou la vraie PDP selon MOCK_AFNOR_BASE_URL. Cet endpoint est public (pas d'auth Django requise) car il est appelé par le SDK AFNOR.
157
+ OAuth2 proxy endpoint to obtain an AFNOR access token. Proxies to AFNOR mock (sandbox) or real PDP depending on MOCK_AFNOR_BASE_URL. This endpoint is public (no Django auth required) as it is called by the AFNOR SDK.
158
158
 
159
159
  ### Examples
160
160
 
@@ -165,7 +165,7 @@ require 'factpulse'
165
165
  api_instance = FactPulse::AFNORPDPPAApi.new
166
166
 
167
167
  begin
168
- # Endpoint OAuth2 pour authentification AFNOR
168
+ # OAuth2 endpoint for AFNOR authentication
169
169
  result = api_instance.oauth_token_proxy_api_v1_afnor_oauth_token_post
170
170
  p result
171
171
  rescue FactPulse::ApiError => e
@@ -181,7 +181,7 @@ This returns an Array which contains the response data, status code and headers.
181
181
 
182
182
  ```ruby
183
183
  begin
184
- # Endpoint OAuth2 pour authentification AFNOR
184
+ # OAuth2 endpoint for AFNOR authentication
185
185
  data, status_code, headers = api_instance.oauth_token_proxy_api_v1_afnor_oauth_token_post_with_http_info
186
186
  p status_code # => 2xx
187
187
  p headers # => { ... }