factpulse 4.0.0 → 4.0.1

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 (354) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -9
  3. data/Gemfile.lock +1 -1
  4. data/docs/AllowanceCharge.md +1 -1
  5. data/docs/{FactureElectroniqueModelsInvoiceTypeCode.md → Amount2.md} +2 -2
  6. data/docs/CDARCycleDeVieApi.md +154 -30
  7. data/docs/ClientActivateResponse.md +22 -0
  8. data/docs/ClientCreateRequest.md +22 -0
  9. data/docs/ClientDetail.md +38 -0
  10. data/docs/ClientListResponse.md +24 -0
  11. data/docs/ClientManagementApi.md +575 -0
  12. data/docs/ClientSummary.md +38 -0
  13. data/docs/ClientUpdateRequest.md +22 -0
  14. data/docs/DownloadsApi.md +0 -144
  15. data/docs/EncaisseeRequest.md +36 -0
  16. data/docs/FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode.md +15 -0
  17. data/docs/InvoiceInput.md +1 -1
  18. data/docs/PDPConfigResponse.md +44 -0
  19. data/docs/PDPConfigUpdateRequest.md +28 -0
  20. data/docs/PaymentAmountByRate.md +1 -1
  21. data/docs/RefuseeRequest.md +36 -0
  22. data/docs/SecretStatus.md +20 -0
  23. data/docs/SimplifiedCDARResponse.md +26 -0
  24. data/docs/SimplifiedInvoiceData.md +1 -1
  25. data/docs/SubmitCDARRequest.md +9 -1
  26. data/docs/SubmitCDARXMLRequest.md +9 -1
  27. data/factpulse.gemspec +1 -1
  28. data/lib/factpulse/api/afnorpdppa_api.rb +1 -1
  29. data/lib/factpulse/api/afnorpdppa_directory_service_api.rb +1 -1
  30. data/lib/factpulse/api/afnorpdppa_flow_service_api.rb +1 -1
  31. data/lib/factpulse/api/cdar_cycle_de_vie_api.rb +159 -49
  32. data/lib/factpulse/api/chorus_pro_api.rb +1 -1
  33. data/lib/factpulse/api/client_management_api.rb +565 -0
  34. data/lib/factpulse/api/document_conversion_api.rb +1 -1
  35. data/lib/factpulse/api/downloads_api.rb +1 -130
  36. data/lib/factpulse/api/e_reporting_api.rb +1 -1
  37. data/lib/factpulse/api/health_api.rb +1 -1
  38. data/lib/factpulse/api/invoice_processing_api.rb +1 -1
  39. data/lib/factpulse/api/pdfxml_verification_api.rb +1 -1
  40. data/lib/factpulse/api/user_api.rb +1 -1
  41. data/lib/factpulse/api_client.rb +1 -1
  42. data/lib/factpulse/api_error.rb +1 -1
  43. data/lib/factpulse/api_model_base.rb +1 -1
  44. data/lib/factpulse/configuration.rb +1 -1
  45. data/lib/factpulse/helpers/client.rb +64 -1
  46. data/lib/factpulse/models/acknowledgment_status.rb +1 -1
  47. data/lib/factpulse/models/action_code_info.rb +1 -1
  48. data/lib/factpulse/models/action_codes_response.rb +1 -1
  49. data/lib/factpulse/models/additional_document.rb +1 -1
  50. data/lib/factpulse/models/afnor_acknowledgement.rb +1 -1
  51. data/lib/factpulse/models/afnor_acknowledgement_detail.rb +1 -1
  52. data/lib/factpulse/models/afnor_address_edit.rb +1 -1
  53. data/lib/factpulse/models/afnor_address_patch.rb +1 -1
  54. data/lib/factpulse/models/afnor_address_put.rb +1 -1
  55. data/lib/factpulse/models/afnor_address_read.rb +1 -1
  56. data/lib/factpulse/models/afnor_algorithm.rb +1 -1
  57. data/lib/factpulse/models/afnor_contains_operator.rb +1 -1
  58. data/lib/factpulse/models/afnor_create_directory_line_body.rb +1 -1
  59. data/lib/factpulse/models/afnor_create_directory_line_body_addressing_information.rb +1 -1
  60. data/lib/factpulse/models/afnor_create_directory_line_body_period.rb +1 -1
  61. data/lib/factpulse/models/afnor_create_routing_code_body.rb +1 -1
  62. data/lib/factpulse/models/afnor_credentials.rb +1 -1
  63. data/lib/factpulse/models/afnor_destination.rb +1 -1
  64. data/lib/factpulse/models/afnor_diffusion_status.rb +1 -1
  65. data/lib/factpulse/models/afnor_directory_line_field.rb +1 -1
  66. data/lib/factpulse/models/afnor_directory_line_payload_history_legal_unit_facility_routing_code.rb +1 -1
  67. data/lib/factpulse/models/afnor_directory_line_payload_history_legal_unit_facility_routing_code_platform.rb +1 -1
  68. data/lib/factpulse/models/afnor_directory_line_payload_history_legal_unit_facility_routing_code_routing_code.rb +1 -1
  69. data/lib/factpulse/models/afnor_directory_line_post201_response.rb +1 -1
  70. data/lib/factpulse/models/afnor_directory_line_search_post200_response.rb +1 -1
  71. data/lib/factpulse/models/afnor_entity_type.rb +1 -1
  72. data/lib/factpulse/models/afnor_error.rb +1 -1
  73. data/lib/factpulse/models/afnor_facility_administrative_status.rb +1 -1
  74. data/lib/factpulse/models/afnor_facility_nature.rb +1 -1
  75. data/lib/factpulse/models/afnor_facility_payload_history.rb +1 -1
  76. data/lib/factpulse/models/afnor_facility_payload_history_ule_b2g_additional_data.rb +1 -1
  77. data/lib/factpulse/models/afnor_facility_payload_included.rb +1 -1
  78. data/lib/factpulse/models/afnor_facility_type.rb +1 -1
  79. data/lib/factpulse/models/afnor_flow.rb +1 -1
  80. data/lib/factpulse/models/afnor_flow_ack_status.rb +1 -1
  81. data/lib/factpulse/models/afnor_flow_direction.rb +1 -1
  82. data/lib/factpulse/models/afnor_flow_info.rb +1 -1
  83. data/lib/factpulse/models/afnor_flow_profile.rb +1 -1
  84. data/lib/factpulse/models/afnor_flow_syntax.rb +1 -1
  85. data/lib/factpulse/models/afnor_flow_type.rb +1 -1
  86. data/lib/factpulse/models/afnor_full_flow_info.rb +1 -1
  87. data/lib/factpulse/models/afnor_health_check_response.rb +1 -1
  88. data/lib/factpulse/models/afnor_legal_unit_administrative_status.rb +1 -1
  89. data/lib/factpulse/models/afnor_legal_unit_payload_history.rb +1 -1
  90. data/lib/factpulse/models/afnor_legal_unit_payload_included.rb +1 -1
  91. data/lib/factpulse/models/afnor_legal_unit_payload_included_no_siren.rb +1 -1
  92. data/lib/factpulse/models/afnor_platform_status.rb +1 -1
  93. data/lib/factpulse/models/afnor_processing_rule.rb +1 -1
  94. data/lib/factpulse/models/afnor_reason_code.rb +1 -1
  95. data/lib/factpulse/models/afnor_reason_code_enum.rb +1 -1
  96. data/lib/factpulse/models/afnor_recipient_platform_type.rb +1 -1
  97. data/lib/factpulse/models/afnor_result.rb +1 -1
  98. data/lib/factpulse/models/afnor_routing_code_administrative_status.rb +1 -1
  99. data/lib/factpulse/models/afnor_routing_code_field.rb +1 -1
  100. data/lib/factpulse/models/afnor_routing_code_payload_history_legal_unit_facility.rb +1 -1
  101. data/lib/factpulse/models/afnor_routing_code_post201_response.rb +1 -1
  102. data/lib/factpulse/models/afnor_routing_code_search.rb +1 -1
  103. data/lib/factpulse/models/afnor_routing_code_search_filters.rb +1 -1
  104. data/lib/factpulse/models/afnor_routing_code_search_filters_administrative_status.rb +1 -1
  105. data/lib/factpulse/models/afnor_routing_code_search_filters_routing_code_name.rb +1 -1
  106. data/lib/factpulse/models/afnor_routing_code_search_filters_routing_identifier.rb +1 -1
  107. data/lib/factpulse/models/afnor_routing_code_search_post200_response.rb +1 -1
  108. data/lib/factpulse/models/afnor_routing_code_search_sorting_inner.rb +1 -1
  109. data/lib/factpulse/models/afnor_search_directory_line.rb +1 -1
  110. data/lib/factpulse/models/afnor_search_directory_line_filters.rb +1 -1
  111. data/lib/factpulse/models/afnor_search_directory_line_filters_addressing_identifier.rb +1 -1
  112. data/lib/factpulse/models/afnor_search_directory_line_filters_addressing_suffix.rb +1 -1
  113. data/lib/factpulse/models/afnor_search_directory_line_sorting_inner.rb +1 -1
  114. data/lib/factpulse/models/afnor_search_flow_content.rb +1 -1
  115. data/lib/factpulse/models/afnor_search_flow_filters.rb +1 -1
  116. data/lib/factpulse/models/afnor_search_flow_params.rb +1 -1
  117. data/lib/factpulse/models/afnor_search_siren.rb +1 -1
  118. data/lib/factpulse/models/afnor_search_siren_filters.rb +1 -1
  119. data/lib/factpulse/models/afnor_search_siren_filters_administrative_status.rb +1 -1
  120. data/lib/factpulse/models/afnor_search_siren_filters_business_name.rb +1 -1
  121. data/lib/factpulse/models/afnor_search_siren_filters_entity_type.rb +1 -1
  122. data/lib/factpulse/models/afnor_search_siren_filters_siren.rb +1 -1
  123. data/lib/factpulse/models/afnor_search_siren_sorting_inner.rb +1 -1
  124. data/lib/factpulse/models/afnor_search_siret.rb +1 -1
  125. data/lib/factpulse/models/afnor_search_siret_filters.rb +1 -1
  126. data/lib/factpulse/models/afnor_search_siret_filters_address_lines.rb +1 -1
  127. data/lib/factpulse/models/afnor_search_siret_filters_administrative_status.rb +1 -1
  128. data/lib/factpulse/models/afnor_search_siret_filters_country_subdivision.rb +1 -1
  129. data/lib/factpulse/models/afnor_search_siret_filters_facility_type.rb +1 -1
  130. data/lib/factpulse/models/afnor_search_siret_filters_locality.rb +1 -1
  131. data/lib/factpulse/models/afnor_search_siret_filters_name.rb +1 -1
  132. data/lib/factpulse/models/afnor_search_siret_filters_postal_code.rb +1 -1
  133. data/lib/factpulse/models/afnor_search_siret_filters_siret.rb +1 -1
  134. data/lib/factpulse/models/afnor_search_siret_sorting_inner.rb +1 -1
  135. data/lib/factpulse/models/afnor_siren_field.rb +1 -1
  136. data/lib/factpulse/models/afnor_siren_search_post200_response.rb +1 -1
  137. data/lib/factpulse/models/afnor_siret_field.rb +1 -1
  138. data/lib/factpulse/models/afnor_siret_search_post200_response.rb +1 -1
  139. data/lib/factpulse/models/afnor_sorting_order.rb +1 -1
  140. data/lib/factpulse/models/afnor_strict_operator.rb +1 -1
  141. data/lib/factpulse/models/afnor_update_patch_directory_line_body.rb +1 -1
  142. data/lib/factpulse/models/afnor_update_patch_routing_code_body.rb +1 -1
  143. data/lib/factpulse/models/afnor_update_put_routing_code_body.rb +1 -1
  144. data/lib/factpulse/models/afnor_webhook_callback_content.rb +1 -1
  145. data/lib/factpulse/models/aggregated_payment_input.rb +1 -1
  146. data/lib/factpulse/models/aggregated_transaction_input.rb +1 -1
  147. data/lib/factpulse/models/allowance_charge.rb +2 -2
  148. data/lib/factpulse/models/allowance_charge_reason_code.rb +1 -1
  149. data/lib/factpulse/models/allowance_reason_code.rb +1 -1
  150. data/lib/factpulse/models/allowance_total_amount.rb +1 -1
  151. data/lib/factpulse/models/amount.rb +2 -2
  152. data/lib/factpulse/models/amount1.rb +2 -2
  153. data/lib/factpulse/models/amount2.rb +104 -0
  154. data/lib/factpulse/models/amount_due.rb +1 -1
  155. data/lib/factpulse/models/api_error.rb +1 -1
  156. data/lib/factpulse/models/api_profile.rb +1 -1
  157. data/lib/factpulse/models/async_task_status.rb +1 -1
  158. data/lib/factpulse/models/base_amount.rb +1 -1
  159. data/lib/factpulse/models/bounding_box_schema.rb +1 -1
  160. data/lib/factpulse/models/buyercountry.rb +1 -1
  161. data/lib/factpulse/models/celery_status.rb +1 -1
  162. data/lib/factpulse/models/certificate_info_response.rb +1 -1
  163. data/lib/factpulse/models/charge_total_amount.rb +1 -1
  164. data/lib/factpulse/models/chorus_pro_credentials.rb +1 -1
  165. data/lib/factpulse/models/chorus_pro_destination.rb +1 -1
  166. data/lib/factpulse/models/chorus_pro_result.rb +1 -1
  167. data/lib/factpulse/models/{body_submit_cdar_api_v1_cdar_submit_post.rb → client_activate_response.rb} +73 -27
  168. data/lib/factpulse/models/client_create_request.rb +236 -0
  169. data/lib/factpulse/models/client_detail.rb +368 -0
  170. data/lib/factpulse/models/client_list_response.rb +249 -0
  171. data/lib/factpulse/models/client_summary.rb +368 -0
  172. data/lib/factpulse/models/client_update_request.rb +225 -0
  173. data/lib/factpulse/models/contact.rb +1 -1
  174. data/lib/factpulse/models/convert_resume_request.rb +1 -1
  175. data/lib/factpulse/models/convert_success_response.rb +1 -1
  176. data/lib/factpulse/models/convert_validation_failed_response.rb +1 -1
  177. data/lib/factpulse/models/country_code.rb +1 -1
  178. data/lib/factpulse/models/create_aggregated_report_request.rb +1 -1
  179. data/lib/factpulse/models/create_cdar_request.rb +1 -1
  180. data/lib/factpulse/models/create_e_reporting_request.rb +1 -1
  181. data/lib/factpulse/models/currency.rb +1 -1
  182. data/lib/factpulse/models/currency_code.rb +1 -1
  183. data/lib/factpulse/models/delivery_party.rb +1 -1
  184. data/lib/factpulse/models/destination.rb +1 -1
  185. data/lib/factpulse/models/doc_type.rb +1 -1
  186. data/lib/factpulse/models/document_type_info.rb +1 -1
  187. data/lib/factpulse/models/e_reporting_flow_type.rb +1 -1
  188. data/lib/factpulse/models/e_reporting_validation_error.rb +1 -1
  189. data/lib/factpulse/models/electronic_address.rb +1 -1
  190. data/lib/factpulse/models/encaisseamount.rb +1 -1
  191. data/lib/factpulse/models/encaisseamount1.rb +1 -1
  192. data/lib/factpulse/models/encaissee_request.rb +293 -0
  193. data/lib/factpulse/models/enriched_invoice_info.rb +1 -1
  194. data/lib/factpulse/models/error_level.rb +1 -1
  195. data/lib/factpulse/models/error_source.rb +1 -1
  196. data/lib/factpulse/models/extraction_info.rb +1 -1
  197. data/lib/factpulse/models/factur_x_invoice.rb +1 -1
  198. data/lib/factpulse/models/factur_xpdf_info.rb +1 -1
  199. data/lib/factpulse/models/facture_electronique_rest_api_schemas_cdar_validation_error_response.rb +1 -1
  200. data/lib/factpulse/models/{facture_electronique_models_invoice_type_code.rb → facture_electronique_rest_api_schemas_ereporting_invoice_type_code.rb} +10 -21
  201. data/lib/factpulse/models/facture_electronique_rest_api_schemas_processing_chorus_pro_credentials.rb +1 -1
  202. data/lib/factpulse/models/field_status.rb +1 -1
  203. data/lib/factpulse/models/file_info.rb +1 -1
  204. data/lib/factpulse/models/files_info.rb +1 -1
  205. data/lib/factpulse/models/flow_direction.rb +1 -1
  206. data/lib/factpulse/models/flow_profile.rb +1 -1
  207. data/lib/factpulse/models/flow_summary.rb +1 -1
  208. data/lib/factpulse/models/flow_syntax.rb +1 -1
  209. data/lib/factpulse/models/flow_type.rb +1 -1
  210. data/lib/factpulse/models/generate_aggregated_report_response.rb +1 -1
  211. data/lib/factpulse/models/generate_cdar_response.rb +1 -1
  212. data/lib/factpulse/models/generate_certificate_request.rb +1 -1
  213. data/lib/factpulse/models/generate_certificate_response.rb +1 -1
  214. data/lib/factpulse/models/generate_e_reporting_response.rb +1 -1
  215. data/lib/factpulse/models/get_chorus_pro_id_request.rb +1 -1
  216. data/lib/factpulse/models/get_chorus_pro_id_response.rb +1 -1
  217. data/lib/factpulse/models/get_invoice_request.rb +1 -1
  218. data/lib/factpulse/models/get_invoice_response.rb +1 -1
  219. data/lib/factpulse/models/get_structure_request.rb +1 -1
  220. data/lib/factpulse/models/get_structure_response.rb +1 -1
  221. data/lib/factpulse/models/global_allowance_amount.rb +1 -1
  222. data/lib/factpulse/models/gross_unit_price.rb +1 -1
  223. data/lib/factpulse/models/http_validation_error.rb +1 -1
  224. data/lib/factpulse/models/incoming_invoice.rb +1 -1
  225. data/lib/factpulse/models/incoming_supplier.rb +1 -1
  226. data/lib/factpulse/models/invoice_format.rb +1 -1
  227. data/lib/factpulse/models/invoice_input.rb +2 -2
  228. data/lib/factpulse/models/invoice_line.rb +1 -1
  229. data/lib/factpulse/models/invoice_line_allowance_amount.rb +1 -1
  230. data/lib/factpulse/models/invoice_note.rb +1 -1
  231. data/lib/factpulse/models/invoice_payment_input.rb +1 -1
  232. data/lib/factpulse/models/invoice_references.rb +1 -1
  233. data/lib/factpulse/models/invoice_status.rb +1 -1
  234. data/lib/factpulse/models/invoice_totals.rb +1 -1
  235. data/lib/factpulse/models/invoice_totals_prepayment.rb +1 -1
  236. data/lib/factpulse/models/invoice_type_code.rb +18 -7
  237. data/lib/factpulse/models/invoice_type_code_output.rb +1 -1
  238. data/lib/factpulse/models/invoicing_framework.rb +1 -1
  239. data/lib/factpulse/models/invoicing_framework_code.rb +1 -1
  240. data/lib/factpulse/models/line_net_amount.rb +1 -1
  241. data/lib/factpulse/models/line_sub_type.rb +1 -1
  242. data/lib/factpulse/models/line_total_amount.rb +1 -1
  243. data/lib/factpulse/models/location_inner.rb +1 -1
  244. data/lib/factpulse/models/mandatory_note_schema.rb +1 -1
  245. data/lib/factpulse/models/manual_rate.rb +1 -1
  246. data/lib/factpulse/models/manual_vat_rate.rb +1 -1
  247. data/lib/factpulse/models/missing_field.rb +1 -1
  248. data/lib/factpulse/models/operation_nature.rb +1 -1
  249. data/lib/factpulse/models/output_format.rb +1 -1
  250. data/lib/factpulse/models/page_dimensions_schema.rb +1 -1
  251. data/lib/factpulse/models/payee.rb +1 -1
  252. data/lib/factpulse/models/payment_amount_by_rate.rb +2 -2
  253. data/lib/factpulse/models/payment_card.rb +1 -1
  254. data/lib/factpulse/models/payment_means.rb +1 -1
  255. data/lib/factpulse/models/pdf_validation_result_api.rb +1 -1
  256. data/lib/factpulse/models/pdp_config_response.rb +296 -0
  257. data/lib/factpulse/models/pdp_config_update_request.rb +271 -0
  258. data/lib/factpulse/models/pdp_credentials.rb +1 -1
  259. data/lib/factpulse/models/percentage.rb +1 -1
  260. data/lib/factpulse/models/postal_address.rb +1 -1
  261. data/lib/factpulse/models/price_allowance_amount.rb +1 -1
  262. data/lib/factpulse/models/price_basis_quantity.rb +1 -1
  263. data/lib/factpulse/models/processing_options.rb +1 -1
  264. data/lib/factpulse/models/processing_rule.rb +1 -1
  265. data/lib/factpulse/models/product_characteristic.rb +1 -1
  266. data/lib/factpulse/models/product_classification.rb +1 -1
  267. data/lib/factpulse/models/quantity.rb +1 -1
  268. data/lib/factpulse/models/rate.rb +1 -1
  269. data/lib/factpulse/models/rate1.rb +1 -1
  270. data/lib/factpulse/models/reason_code_info.rb +1 -1
  271. data/lib/factpulse/models/reason_codes_response.rb +1 -1
  272. data/lib/factpulse/models/recipient.rb +1 -1
  273. data/lib/factpulse/models/recipient_input.rb +1 -1
  274. data/lib/factpulse/models/refusee_request.rb +292 -0
  275. data/lib/factpulse/models/report_period.rb +1 -1
  276. data/lib/factpulse/models/report_sender.rb +1 -1
  277. data/lib/factpulse/models/rounding_amount.rb +1 -1
  278. data/lib/factpulse/models/schematron_validation_error.rb +1 -1
  279. data/lib/factpulse/models/scheme_id.rb +1 -1
  280. data/lib/factpulse/models/search_flow_request.rb +1 -1
  281. data/lib/factpulse/models/search_flow_response.rb +1 -1
  282. data/lib/factpulse/models/search_services_response.rb +1 -1
  283. data/lib/factpulse/models/search_structure_request.rb +1 -1
  284. data/lib/factpulse/models/search_structure_response.rb +1 -1
  285. data/lib/factpulse/models/{body_submit_cdar_xml_api_v1_cdar_submit_xml_post.rb → secret_status.rb} +46 -27
  286. data/lib/factpulse/models/sellercountry.rb +1 -1
  287. data/lib/factpulse/models/signature_info.rb +1 -1
  288. data/lib/factpulse/models/signature_info_api.rb +1 -1
  289. data/lib/factpulse/models/signature_parameters.rb +1 -1
  290. data/lib/factpulse/models/simplified_cdar_response.rb +274 -0
  291. data/lib/factpulse/models/simplified_invoice_data.rb +2 -2
  292. data/lib/factpulse/models/status_code_info.rb +1 -1
  293. data/lib/factpulse/models/status_codes_response.rb +1 -1
  294. data/lib/factpulse/models/structure_info.rb +1 -1
  295. data/lib/factpulse/models/structure_parameters.rb +1 -1
  296. data/lib/factpulse/models/structure_service.rb +1 -1
  297. data/lib/factpulse/models/submission_mode.rb +1 -1
  298. data/lib/factpulse/models/submit_aggregated_report_request.rb +1 -1
  299. data/lib/factpulse/models/submit_cdar_request.rb +45 -5
  300. data/lib/factpulse/models/submit_cdar_response.rb +1 -1
  301. data/lib/factpulse/models/submit_cdarxml_request.rb +46 -6
  302. data/lib/factpulse/models/submit_complete_invoice_request.rb +1 -1
  303. data/lib/factpulse/models/submit_complete_invoice_response.rb +1 -1
  304. data/lib/factpulse/models/submit_e_reporting_request.rb +1 -1
  305. data/lib/factpulse/models/submit_e_reporting_response.rb +1 -1
  306. data/lib/factpulse/models/submit_flow_request.rb +1 -1
  307. data/lib/factpulse/models/submit_flow_response.rb +1 -1
  308. data/lib/factpulse/models/submit_gross_amount.rb +1 -1
  309. data/lib/factpulse/models/submit_invoice_request.rb +1 -1
  310. data/lib/factpulse/models/submit_invoice_response.rb +1 -1
  311. data/lib/factpulse/models/submit_net_amount.rb +1 -1
  312. data/lib/factpulse/models/submit_vat_amount.rb +1 -1
  313. data/lib/factpulse/models/supplementary_attachment.rb +1 -1
  314. data/lib/factpulse/models/supplier.rb +1 -1
  315. data/lib/factpulse/models/task_response.rb +1 -1
  316. data/lib/factpulse/models/tax_breakdown_input.rb +1 -1
  317. data/lib/factpulse/models/tax_due_date_type.rb +1 -1
  318. data/lib/factpulse/models/tax_representative.rb +1 -1
  319. data/lib/factpulse/models/taxable_amount.rb +1 -1
  320. data/lib/factpulse/models/taxableamount.rb +1 -1
  321. data/lib/factpulse/models/taxamount.rb +1 -1
  322. data/lib/factpulse/models/taxamount1.rb +1 -1
  323. data/lib/factpulse/models/taxamount2.rb +1 -1
  324. data/lib/factpulse/models/taxexclusiveamount.rb +1 -1
  325. data/lib/factpulse/models/taxexclusiveamount1.rb +1 -1
  326. data/lib/factpulse/models/total_gross_amount.rb +1 -1
  327. data/lib/factpulse/models/total_net_amount.rb +1 -1
  328. data/lib/factpulse/models/total_vat_amount.rb +1 -1
  329. data/lib/factpulse/models/transaction_category.rb +1 -1
  330. data/lib/factpulse/models/transmission_type_code.rb +1 -1
  331. data/lib/factpulse/models/unit_net_price.rb +1 -1
  332. data/lib/factpulse/models/unit_of_measure.rb +1 -1
  333. data/lib/factpulse/models/validate_cdar_request.rb +1 -1
  334. data/lib/factpulse/models/validate_cdar_response.rb +1 -1
  335. data/lib/factpulse/models/validate_e_reporting_request.rb +1 -1
  336. data/lib/factpulse/models/validate_e_reporting_response.rb +1 -1
  337. data/lib/factpulse/models/validation_error.rb +1 -1
  338. data/lib/factpulse/models/validation_error_detail.rb +1 -1
  339. data/lib/factpulse/models/validation_error_response.rb +1 -1
  340. data/lib/factpulse/models/validation_info.rb +1 -1
  341. data/lib/factpulse/models/validation_success_response.rb +1 -1
  342. data/lib/factpulse/models/vat_accounting_code.rb +1 -1
  343. data/lib/factpulse/models/vat_amount.rb +1 -1
  344. data/lib/factpulse/models/vat_category.rb +1 -1
  345. data/lib/factpulse/models/vat_line.rb +1 -1
  346. data/lib/factpulse/models/vat_point_date_code.rb +1 -1
  347. data/lib/factpulse/models/vat_rate.rb +1 -1
  348. data/lib/factpulse/models/verification_success_response.rb +1 -1
  349. data/lib/factpulse/models/verified_field_schema.rb +1 -1
  350. data/lib/factpulse/version.rb +2 -2
  351. data/lib/factpulse.rb +16 -4
  352. metadata +32 -8
  353. data/docs/BodySubmitCdarApiV1CdarSubmitPost.md +0 -20
  354. data/docs/BodySubmitCdarXmlApiV1CdarSubmitXmlPost.md +0 -20
@@ -0,0 +1,292 @@
1
+ =begin
2
+ #FactPulse REST API
3
+
4
+ # REST API for electronic invoicing in France: Factur-X, AFNOR PDP/PA, electronic signatures. ## 🎯 Main Features ### 📄 Factur-X Invoice Generation - **Formats**: XML only or PDF/A-3 with embedded XML - **Profiles**: MINIMUM, BASIC, EN16931, EXTENDED - **Standards**: EN 16931 (EU directive 2014/55), ISO 19005-3 (PDF/A-3), CII (UN/CEFACT) - **🆕 Simplified Format**: Generation from SIRET + auto-enrichment (Chorus Pro API + Business Search) ### ✅ Validation and Compliance - **XML Validation**: Schematron (45 to 210+ rules depending on profile) - **PDF Validation**: PDF/A-3, Factur-X XMP metadata, electronic signatures - **VeraPDF**: Strict PDF/A validation (146+ ISO 19005-3 rules) - **Asynchronous Processing**: Celery support for heavy validations (VeraPDF) ### 📡 AFNOR PDP/PA Integration (XP Z12-013) - **Flow Submission**: Send invoices to Partner Dematerialization Platforms - **Flow Search**: View submitted invoices - **Download**: Retrieve PDF/A-3 with XML - **Directory Service**: Company search (SIREN/SIRET) - **Multi-client**: Support for multiple PDP configs per user (stored credentials or zero-storage) ### ✍️ PDF 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 - **Certificate Generation**: Self-signed X.509 certificates for testing ### 🔄 Asynchronous Processing - **Celery**: Asynchronous generation, validation and signing - **Polling**: Status tracking via `/tasks/{task_id}/status` - **No timeout**: Ideal for large files or heavy validations ## 🔒 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.20.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FactPulse
17
+ # Requête simplifiée pour soumettre un statut REFUSÉE (210). Statut obligatoire PPF - Le destinataire refuse la facture. Un code motif est OBLIGATOIRE (BR-FR-CDV-15). Codes motif autorisés (BR-FR-CDV-CL-09_MDT-113_210): - TX_TVA_ERR: Taux de TVA erroné - MONTANTTOTAL_ERR: Montant total erroné - CALCUL_ERR: Erreur de calcul - NON_CONFORME: Non conforme - DOUBLON: Doublon - DEST_ERR: Destinataire erroné - TRANSAC_INC: Transaction incomplète - EMMET_INC: Émetteur inconnu - CONTRAT_TERM: Contrat terminé - DOUBLE_FACT: Double facturation - CMD_ERR: Commande erronée - ADR_ERR: Adresse erronée - REF_CT_ABSENT: Référence contrat absente
18
+ class RefuseeRequest < ApiModelBase
19
+ # Identifiant de la facture (BT-1)
20
+ attr_accessor :invoice_id
21
+
22
+ # Date d'émission de la facture (YYYY-MM-DD)
23
+ attr_accessor :invoice_issue_date
24
+
25
+ attr_accessor :sender_siren
26
+
27
+ # Type de flux: SupplierInvoiceLC (acheteur) ou CustomerInvoiceLC (vendeur)
28
+ attr_accessor :flow_type
29
+
30
+ attr_accessor :pdp_flow_service_url
31
+
32
+ attr_accessor :pdp_token_url
33
+
34
+ attr_accessor :pdp_client_id
35
+
36
+ attr_accessor :pdp_client_secret
37
+
38
+ # Code motif du refus (obligatoire). Valeurs autorisées: TX_TVA_ERR, MONTANTTOTAL_ERR, CALCUL_ERR, NON_CONFORME, DOUBLON, DEST_ERR, TRANSAC_INC, EMMET_INC, CONTRAT_TERM, DOUBLE_FACT, CMD_ERR, ADR_ERR, REF_CT_ABSENT
39
+ attr_accessor :reason_code
40
+
41
+ attr_accessor :reason_text
42
+
43
+ # Attribute mapping from ruby-style variable name to JSON key.
44
+ def self.attribute_map
45
+ {
46
+ :'invoice_id' => :'invoiceId',
47
+ :'invoice_issue_date' => :'invoiceIssueDate',
48
+ :'sender_siren' => :'senderSiren',
49
+ :'flow_type' => :'flowType',
50
+ :'pdp_flow_service_url' => :'pdpFlowServiceUrl',
51
+ :'pdp_token_url' => :'pdpTokenUrl',
52
+ :'pdp_client_id' => :'pdpClientId',
53
+ :'pdp_client_secret' => :'pdpClientSecret',
54
+ :'reason_code' => :'reasonCode',
55
+ :'reason_text' => :'reasonText'
56
+ }
57
+ end
58
+
59
+ # Returns attribute mapping this model knows about
60
+ def self.acceptable_attribute_map
61
+ attribute_map
62
+ end
63
+
64
+ # Returns all the JSON keys this model knows about
65
+ def self.acceptable_attributes
66
+ acceptable_attribute_map.values
67
+ end
68
+
69
+ # Attribute type mapping.
70
+ def self.openapi_types
71
+ {
72
+ :'invoice_id' => :'String',
73
+ :'invoice_issue_date' => :'Date',
74
+ :'sender_siren' => :'String',
75
+ :'flow_type' => :'String',
76
+ :'pdp_flow_service_url' => :'String',
77
+ :'pdp_token_url' => :'String',
78
+ :'pdp_client_id' => :'String',
79
+ :'pdp_client_secret' => :'String',
80
+ :'reason_code' => :'String',
81
+ :'reason_text' => :'String'
82
+ }
83
+ end
84
+
85
+ # List of attributes with nullable: true
86
+ def self.openapi_nullable
87
+ Set.new([
88
+ :'sender_siren',
89
+ :'pdp_flow_service_url',
90
+ :'pdp_token_url',
91
+ :'pdp_client_id',
92
+ :'pdp_client_secret',
93
+ :'reason_text'
94
+ ])
95
+ end
96
+
97
+ # Initializes the object
98
+ # @param [Hash] attributes Model attributes in the form of hash
99
+ def initialize(attributes = {})
100
+ if (!attributes.is_a?(Hash))
101
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::RefuseeRequest` initialize method"
102
+ end
103
+
104
+ # check to see if the attribute exists and convert string to symbol for hash key
105
+ acceptable_attribute_map = self.class.acceptable_attribute_map
106
+ attributes = attributes.each_with_object({}) { |(k, v), h|
107
+ if (!acceptable_attribute_map.key?(k.to_sym))
108
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::RefuseeRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
109
+ end
110
+ h[k.to_sym] = v
111
+ }
112
+
113
+ if attributes.key?(:'invoice_id')
114
+ self.invoice_id = attributes[:'invoice_id']
115
+ else
116
+ self.invoice_id = nil
117
+ end
118
+
119
+ if attributes.key?(:'invoice_issue_date')
120
+ self.invoice_issue_date = attributes[:'invoice_issue_date']
121
+ else
122
+ self.invoice_issue_date = nil
123
+ end
124
+
125
+ if attributes.key?(:'sender_siren')
126
+ self.sender_siren = attributes[:'sender_siren']
127
+ end
128
+
129
+ if attributes.key?(:'flow_type')
130
+ self.flow_type = attributes[:'flow_type']
131
+ else
132
+ self.flow_type = 'SupplierInvoiceLC'
133
+ end
134
+
135
+ if attributes.key?(:'pdp_flow_service_url')
136
+ self.pdp_flow_service_url = attributes[:'pdp_flow_service_url']
137
+ end
138
+
139
+ if attributes.key?(:'pdp_token_url')
140
+ self.pdp_token_url = attributes[:'pdp_token_url']
141
+ end
142
+
143
+ if attributes.key?(:'pdp_client_id')
144
+ self.pdp_client_id = attributes[:'pdp_client_id']
145
+ end
146
+
147
+ if attributes.key?(:'pdp_client_secret')
148
+ self.pdp_client_secret = attributes[:'pdp_client_secret']
149
+ end
150
+
151
+ if attributes.key?(:'reason_code')
152
+ self.reason_code = attributes[:'reason_code']
153
+ else
154
+ self.reason_code = nil
155
+ end
156
+
157
+ if attributes.key?(:'reason_text')
158
+ self.reason_text = attributes[:'reason_text']
159
+ end
160
+ end
161
+
162
+ # Show invalid properties with the reasons. Usually used together with valid?
163
+ # @return Array for valid properties with the reasons
164
+ def list_invalid_properties
165
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
166
+ invalid_properties = Array.new
167
+ if @invoice_id.nil?
168
+ invalid_properties.push('invalid value for "invoice_id", invoice_id cannot be nil.')
169
+ end
170
+
171
+ if @invoice_issue_date.nil?
172
+ invalid_properties.push('invalid value for "invoice_issue_date", invoice_issue_date cannot be nil.')
173
+ end
174
+
175
+ if @reason_code.nil?
176
+ invalid_properties.push('invalid value for "reason_code", reason_code cannot be nil.')
177
+ end
178
+
179
+ invalid_properties
180
+ end
181
+
182
+ # Check to see if the all the properties in the model are valid
183
+ # @return true if the model is valid
184
+ def valid?
185
+ warn '[DEPRECATED] the `valid?` method is obsolete'
186
+ return false if @invoice_id.nil?
187
+ return false if @invoice_issue_date.nil?
188
+ return false if @reason_code.nil?
189
+ true
190
+ end
191
+
192
+ # Custom attribute writer method with validation
193
+ # @param [Object] invoice_id Value to be assigned
194
+ def invoice_id=(invoice_id)
195
+ if invoice_id.nil?
196
+ fail ArgumentError, 'invoice_id cannot be nil'
197
+ end
198
+
199
+ @invoice_id = invoice_id
200
+ end
201
+
202
+ # Custom attribute writer method with validation
203
+ # @param [Object] invoice_issue_date Value to be assigned
204
+ def invoice_issue_date=(invoice_issue_date)
205
+ if invoice_issue_date.nil?
206
+ fail ArgumentError, 'invoice_issue_date cannot be nil'
207
+ end
208
+
209
+ @invoice_issue_date = invoice_issue_date
210
+ end
211
+
212
+ # Custom attribute writer method with validation
213
+ # @param [Object] reason_code Value to be assigned
214
+ def reason_code=(reason_code)
215
+ if reason_code.nil?
216
+ fail ArgumentError, 'reason_code cannot be nil'
217
+ end
218
+
219
+ @reason_code = reason_code
220
+ end
221
+
222
+ # Checks equality by comparing each attribute.
223
+ # @param [Object] Object to be compared
224
+ def ==(o)
225
+ return true if self.equal?(o)
226
+ self.class == o.class &&
227
+ invoice_id == o.invoice_id &&
228
+ invoice_issue_date == o.invoice_issue_date &&
229
+ sender_siren == o.sender_siren &&
230
+ flow_type == o.flow_type &&
231
+ pdp_flow_service_url == o.pdp_flow_service_url &&
232
+ pdp_token_url == o.pdp_token_url &&
233
+ pdp_client_id == o.pdp_client_id &&
234
+ pdp_client_secret == o.pdp_client_secret &&
235
+ reason_code == o.reason_code &&
236
+ reason_text == o.reason_text
237
+ end
238
+
239
+ # @see the `==` method
240
+ # @param [Object] Object to be compared
241
+ def eql?(o)
242
+ self == o
243
+ end
244
+
245
+ # Calculates hash code according to all attributes.
246
+ # @return [Integer] Hash code
247
+ def hash
248
+ [invoice_id, invoice_issue_date, sender_siren, flow_type, pdp_flow_service_url, pdp_token_url, pdp_client_id, pdp_client_secret, reason_code, reason_text].hash
249
+ end
250
+
251
+ # Builds the object from hash
252
+ # @param [Hash] attributes Model attributes in the form of hash
253
+ # @return [Object] Returns the model itself
254
+ def self.build_from_hash(attributes)
255
+ return nil unless attributes.is_a?(Hash)
256
+ attributes = attributes.transform_keys(&:to_sym)
257
+ transformed_hash = {}
258
+ openapi_types.each_pair do |key, type|
259
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
260
+ transformed_hash["#{key}"] = nil
261
+ elsif type =~ /\AArray<(.*)>/i
262
+ # check to ensure the input is an array given that the attribute
263
+ # is documented as an array but the input is not
264
+ if attributes[attribute_map[key]].is_a?(Array)
265
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
266
+ end
267
+ elsif !attributes[attribute_map[key]].nil?
268
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
269
+ end
270
+ end
271
+ new(transformed_hash)
272
+ end
273
+
274
+ # Returns the object in the form of hash
275
+ # @return [Hash] Returns the object in the form of hash
276
+ def to_hash
277
+ hash = {}
278
+ self.class.attribute_map.each_pair do |attr, param|
279
+ value = self.send(attr)
280
+ if value.nil?
281
+ is_nullable = self.class.openapi_nullable.include?(attr)
282
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
283
+ end
284
+
285
+ hash[param] = _to_hash(value)
286
+ end
287
+ hash
288
+ end
289
+
290
+ end
291
+
292
+ 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.19.0-SNAPSHOT
9
+ Generator version: 7.20.0-SNAPSHOT
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.19.0-SNAPSHOT
9
+ Generator version: 7.20.0-SNAPSHOT
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.19.0-SNAPSHOT
9
+ Generator version: 7.20.0-SNAPSHOT
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.19.0-SNAPSHOT
9
+ Generator version: 7.20.0-SNAPSHOT
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.19.0-SNAPSHOT
9
+ Generator version: 7.20.0-SNAPSHOT
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.19.0-SNAPSHOT
9
+ Generator version: 7.20.0-SNAPSHOT
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.19.0-SNAPSHOT
9
+ Generator version: 7.20.0-SNAPSHOT
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.19.0-SNAPSHOT
9
+ Generator version: 7.20.0-SNAPSHOT
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.19.0-SNAPSHOT
9
+ Generator version: 7.20.0-SNAPSHOT
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.19.0-SNAPSHOT
9
+ Generator version: 7.20.0-SNAPSHOT
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.19.0-SNAPSHOT
9
+ Generator version: 7.20.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -14,16 +14,19 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FactPulse
17
- class BodySubmitCdarXmlApiV1CdarSubmitXmlPost < ApiModelBase
18
- attr_accessor :request
17
+ # Secret status (never exposes the secret itself).
18
+ class SecretStatus < ApiModelBase
19
+ # Secret status: 'active', 'missing', etc.
20
+ attr_accessor :status
19
21
 
20
- attr_accessor :pdp_credentials
22
+ # Descriptive status message
23
+ attr_accessor :message
21
24
 
22
25
  # Attribute mapping from ruby-style variable name to JSON key.
23
26
  def self.attribute_map
24
27
  {
25
- :'request' => :'request',
26
- :'pdp_credentials' => :'pdp_credentials'
28
+ :'status' => :'status',
29
+ :'message' => :'message'
27
30
  }
28
31
  end
29
32
 
@@ -40,15 +43,14 @@ module FactPulse
40
43
  # Attribute type mapping.
41
44
  def self.openapi_types
42
45
  {
43
- :'request' => :'SubmitCDARXMLRequest',
44
- :'pdp_credentials' => :'PDPCredentials'
46
+ :'status' => :'String',
47
+ :'message' => :'String'
45
48
  }
46
49
  end
47
50
 
48
51
  # List of attributes with nullable: true
49
52
  def self.openapi_nullable
50
53
  Set.new([
51
- :'pdp_credentials'
52
54
  ])
53
55
  end
54
56
 
@@ -56,26 +58,28 @@ module FactPulse
56
58
  # @param [Hash] attributes Model attributes in the form of hash
57
59
  def initialize(attributes = {})
58
60
  if (!attributes.is_a?(Hash))
59
- fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::BodySubmitCdarXmlApiV1CdarSubmitXmlPost` initialize method"
61
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::SecretStatus` initialize method"
60
62
  end
61
63
 
62
64
  # check to see if the attribute exists and convert string to symbol for hash key
63
65
  acceptable_attribute_map = self.class.acceptable_attribute_map
64
66
  attributes = attributes.each_with_object({}) { |(k, v), h|
65
67
  if (!acceptable_attribute_map.key?(k.to_sym))
66
- fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::BodySubmitCdarXmlApiV1CdarSubmitXmlPost`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
68
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::SecretStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
67
69
  end
68
70
  h[k.to_sym] = v
69
71
  }
70
72
 
71
- if attributes.key?(:'request')
72
- self.request = attributes[:'request']
73
+ if attributes.key?(:'status')
74
+ self.status = attributes[:'status']
73
75
  else
74
- self.request = nil
76
+ self.status = nil
75
77
  end
76
78
 
77
- if attributes.key?(:'pdp_credentials')
78
- self.pdp_credentials = attributes[:'pdp_credentials']
79
+ if attributes.key?(:'message')
80
+ self.message = attributes[:'message']
81
+ else
82
+ self.message = nil
79
83
  end
80
84
  end
81
85
 
@@ -84,8 +88,12 @@ module FactPulse
84
88
  def list_invalid_properties
85
89
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
86
90
  invalid_properties = Array.new
87
- if @request.nil?
88
- invalid_properties.push('invalid value for "request", request cannot be nil.')
91
+ if @status.nil?
92
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
93
+ end
94
+
95
+ if @message.nil?
96
+ invalid_properties.push('invalid value for "message", message cannot be nil.')
89
97
  end
90
98
 
91
99
  invalid_properties
@@ -95,18 +103,29 @@ module FactPulse
95
103
  # @return true if the model is valid
96
104
  def valid?
97
105
  warn '[DEPRECATED] the `valid?` method is obsolete'
98
- return false if @request.nil?
106
+ return false if @status.nil?
107
+ return false if @message.nil?
99
108
  true
100
109
  end
101
110
 
102
111
  # Custom attribute writer method with validation
103
- # @param [Object] request Value to be assigned
104
- def request=(request)
105
- if request.nil?
106
- fail ArgumentError, 'request cannot be nil'
112
+ # @param [Object] status Value to be assigned
113
+ def status=(status)
114
+ if status.nil?
115
+ fail ArgumentError, 'status cannot be nil'
116
+ end
117
+
118
+ @status = status
119
+ end
120
+
121
+ # Custom attribute writer method with validation
122
+ # @param [Object] message Value to be assigned
123
+ def message=(message)
124
+ if message.nil?
125
+ fail ArgumentError, 'message cannot be nil'
107
126
  end
108
127
 
109
- @request = request
128
+ @message = message
110
129
  end
111
130
 
112
131
  # Checks equality by comparing each attribute.
@@ -114,8 +133,8 @@ module FactPulse
114
133
  def ==(o)
115
134
  return true if self.equal?(o)
116
135
  self.class == o.class &&
117
- request == o.request &&
118
- pdp_credentials == o.pdp_credentials
136
+ status == o.status &&
137
+ message == o.message
119
138
  end
120
139
 
121
140
  # @see the `==` method
@@ -127,7 +146,7 @@ module FactPulse
127
146
  # Calculates hash code according to all attributes.
128
147
  # @return [Integer] Hash code
129
148
  def hash
130
- [request, pdp_credentials].hash
149
+ [status, message].hash
131
150
  end
132
151
 
133
152
  # 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.19.0-SNAPSHOT
9
+ Generator version: 7.20.0-SNAPSHOT
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.19.0-SNAPSHOT
9
+ Generator version: 7.20.0-SNAPSHOT
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.19.0-SNAPSHOT
9
+ Generator version: 7.20.0-SNAPSHOT
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.19.0-SNAPSHOT
9
+ Generator version: 7.20.0-SNAPSHOT
10
10
 
11
11
  =end
12
12