class FactPulse::TraitementFactureApi
def generer_certificat_test_api_v1_traitement_generer_certificat_test_post(generate_certificate_request, opts = {})
-
(GenerateCertificateResponse)-
Parameters:
-
opts(Hash) -- the optional parameters -
generate_certificate_request(GenerateCertificateRequest) --
def generer_certificat_test_api_v1_traitement_generer_certificat_test_post(generate_certificate_request, opts = {}) data, _status_code, _headers = generer_certificat_test_api_v1_traitement_generer_certificat_test_post_with_http_info(generate_certificate_request, opts) data end
def generer_certificat_test_api_v1_traitement_generer_certificat_test_post_with_http_info(generate_certificate_request, opts = {})
-
(Array<(GenerateCertificateResponse, Integer, Hash)>)- GenerateCertificateResponse data, response status code and response headers
Parameters:
-
opts(Hash) -- the optional parameters -
generate_certificate_request(GenerateCertificateRequest) --
def generer_certificat_test_api_v1_traitement_generer_certificat_test_post_with_http_info(generate_certificate_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TraitementFactureApi.generer_certificat_test_api_v1_traitement_generer_certificat_test_post ...' end # verify the required parameter 'generate_certificate_request' is set if @api_client.config.client_side_validation && generate_certificate_request.nil? fail ArgumentError, "Missing the required parameter 'generate_certificate_request' when calling TraitementFactureApi.generer_certificat_test_api_v1_traitement_generer_certificat_test_post" end # resource path local_var_path = '/api/v1/traitement/generer-certificat-test' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(generate_certificate_request) # return_type return_type = opts[:debug_return_type] || 'GenerateCertificateResponse' # auth_names auth_names = opts[:debug_auth_names] || ['HTTPBearer'] new_options = opts.merge( :operation => :"TraitementFactureApi.generer_certificat_test_api_v1_traitement_generer_certificat_test_post", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: TraitementFactureApi#generer_certificat_test_api_v1_traitement_generer_certificat_test_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
def generer_facture_api_v1_traitement_generer_facture_post(donnees_facture, opts = {})
-
(ReponseTache)-
Options Hash:
(**opts)-
:source_pdf(File) -- -
:auto_enrichir(Boolean) -- 🆕 Activer l'auto-enrichissement depuis SIRET/SIREN (format simplifié uniquement) (default to true) -
:format_sortie(FormatSortie) -- Format de sortie : 'xml' (XML seul) ou 'pdf' (PDF Factur-X avec XML embarqué). -
:profil(ProfilAPI) -- Profil Factur-X : MINIMUM, BASIC, EN16931 ou EXTENDED.
Parameters:
-
opts(Hash) -- the optional parameters -
donnees_facture(String) -- Données de la facture au format JSON. Deux formats acceptés : 1. **Format classique** : Structure complète FactureFacturX (tous les champs) 2. **Format simplifié** (🆕 P0.1) : Structure minimale avec auto-enrichissement Le format est détecté automatiquement !
def generer_facture_api_v1_traitement_generer_facture_post(donnees_facture, opts = {}) data, _status_code, _headers = generer_facture_api_v1_traitement_generer_facture_post_with_http_info(donnees_facture, opts) data end
def generer_facture_api_v1_traitement_generer_facture_post_with_http_info(donnees_facture, opts = {})
-
(Array<(ReponseTache, Integer, Hash)>)- ReponseTache data, response status code and response headers
Options Hash:
(**opts)-
:source_pdf(File) -- -
:auto_enrichir(Boolean) -- 🆕 Activer l'auto-enrichissement depuis SIRET/SIREN (format simplifié uniquement) (default to true) -
:format_sortie(FormatSortie) -- Format de sortie : 'xml' (XML seul) ou 'pdf' (PDF Factur-X avec XML embarqué). -
:profil(ProfilAPI) -- Profil Factur-X : MINIMUM, BASIC, EN16931 ou EXTENDED.
Parameters:
-
opts(Hash) -- the optional parameters -
donnees_facture(String) -- Données de la facture au format JSON. Deux formats acceptés : 1. **Format classique** : Structure complète FactureFacturX (tous les champs) 2. **Format simplifié** (🆕 P0.1) : Structure minimale avec auto-enrichissement Le format est détecté automatiquement !
def generer_facture_api_v1_traitement_generer_facture_post_with_http_info(donnees_facture, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TraitementFactureApi.generer_facture_api_v1_traitement_generer_facture_post ...' end # verify the required parameter 'donnees_facture' is set if @api_client.config.client_side_validation && donnees_facture.nil? fail ArgumentError, "Missing the required parameter 'donnees_facture' when calling TraitementFactureApi.generer_facture_api_v1_traitement_generer_facture_post" end # resource path local_var_path = '/api/v1/traitement/generer-facture' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['multipart/form-data']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} form_params['donnees_facture'] = donnees_facture form_params['profil'] = opts[:'profil'] if !opts[:'profil'].nil? form_params['format_sortie'] = opts[:'format_sortie'] if !opts[:'format_sortie'].nil? form_params['auto_enrichir'] = opts[:'auto_enrichir'] if !opts[:'auto_enrichir'].nil? form_params['source_pdf'] = opts[:'source_pdf'] if !opts[:'source_pdf'].nil? # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ReponseTache' # auth_names auth_names = opts[:debug_auth_names] || ['HTTPBearer'] new_options = opts.merge( :operation => :"TraitementFactureApi.generer_facture_api_v1_traitement_generer_facture_post", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: TraitementFactureApi#generer_facture_api_v1_traitement_generer_facture_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
def initialize(api_client = ApiClient.default)
def initialize(api_client = ApiClient.default) @api_client = api_client end
def obtenir_statut_tache_api_v1_traitement_taches_id_tache_statut_get(id_tache, opts = {})
-
(StatutTache)-
Parameters:
-
opts(Hash) -- the optional parameters -
id_tache(String) --
def obtenir_statut_tache_api_v1_traitement_taches_id_tache_statut_get(id_tache, opts = {}) data, _status_code, _headers = obtenir_statut_tache_api_v1_traitement_taches_id_tache_statut_get_with_http_info(id_tache, opts) data end
def obtenir_statut_tache_api_v1_traitement_taches_id_tache_statut_get_with_http_info(id_tache, opts = {})
-
(Array<(StatutTache, Integer, Hash)>)- StatutTache data, response status code and response headers
Parameters:
-
opts(Hash) -- the optional parameters -
id_tache(String) --
def obtenir_statut_tache_api_v1_traitement_taches_id_tache_statut_get_with_http_info(id_tache, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TraitementFactureApi.obtenir_statut_tache_api_v1_traitement_taches_id_tache_statut_get ...' end # verify the required parameter 'id_tache' is set if @api_client.config.client_side_validation && id_tache.nil? fail ArgumentError, "Missing the required parameter 'id_tache' when calling TraitementFactureApi.obtenir_statut_tache_api_v1_traitement_taches_id_tache_statut_get" end # resource path local_var_path = '/api/v1/traitement/taches/{id_tache}/statut'.sub('{' + 'id_tache' + '}', CGI.escape(id_tache.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'StatutTache' # auth_names auth_names = opts[:debug_auth_names] || ['HTTPBearer'] new_options = opts.merge( :operation => :"TraitementFactureApi.obtenir_statut_tache_api_v1_traitement_taches_id_tache_statut_get", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: TraitementFactureApi#obtenir_statut_tache_api_v1_traitement_taches_id_tache_statut_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
def signer_pdf_api_v1_traitement_signer_pdf_post(fichier_pdf, opts = {})
-
(Object)-
Options Hash:
(**opts)-
:use_timestamp(Boolean) -- Activer l'horodatage RFC 3161 avec FreeTSA (PAdES-B-T) (default to true) -
:use_pades_lt(Boolean) -- Activer PAdES-B-LT (archivage long terme avec données de validation embarquées). NÉCESSITE un certificat avec accès OCSP/CRL. (default to false) -
:field_name(String) -- Nom du champ de signature PDF (default to 'FactPulseSignature') -
:contact(String) -- -
:localisation(String) -- -
:raison(String) --
Parameters:
-
opts(Hash) -- the optional parameters -
fichier_pdf(File) -- Fichier PDF à signer (sera traité puis retourné signé en base64)
def signer_pdf_api_v1_traitement_signer_pdf_post(fichier_pdf, opts = {}) data, _status_code, _headers = signer_pdf_api_v1_traitement_signer_pdf_post_with_http_info(fichier_pdf, opts) data end
def signer_pdf_api_v1_traitement_signer_pdf_post_with_http_info(fichier_pdf, opts = {})
-
(Array<(Object, Integer, Hash)>)- Object data, response status code and response headers
Options Hash:
(**opts)-
:use_timestamp(Boolean) -- Activer l'horodatage RFC 3161 avec FreeTSA (PAdES-B-T) (default to true) -
:use_pades_lt(Boolean) -- Activer PAdES-B-LT (archivage long terme avec données de validation embarquées). NÉCESSITE un certificat avec accès OCSP/CRL. (default to false) -
:field_name(String) -- Nom du champ de signature PDF (default to 'FactPulseSignature') -
:contact(String) -- -
:localisation(String) -- -
:raison(String) --
Parameters:
-
opts(Hash) -- the optional parameters -
fichier_pdf(File) -- Fichier PDF à signer (sera traité puis retourné signé en base64)
def signer_pdf_api_v1_traitement_signer_pdf_post_with_http_info(fichier_pdf, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TraitementFactureApi.signer_pdf_api_v1_traitement_signer_pdf_post ...' end # verify the required parameter 'fichier_pdf' is set if @api_client.config.client_side_validation && fichier_pdf.nil? fail ArgumentError, "Missing the required parameter 'fichier_pdf' when calling TraitementFactureApi.signer_pdf_api_v1_traitement_signer_pdf_post" end # resource path local_var_path = '/api/v1/traitement/signer-pdf' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['multipart/form-data']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} form_params['fichier_pdf'] = fichier_pdf form_params['raison'] = opts[:'raison'] if !opts[:'raison'].nil? form_params['localisation'] = opts[:'localisation'] if !opts[:'localisation'].nil? form_params['contact'] = opts[:'contact'] if !opts[:'contact'].nil? form_params['field_name'] = opts[:'field_name'] if !opts[:'field_name'].nil? form_params['use_pades_lt'] = opts[:'use_pades_lt'] if !opts[:'use_pades_lt'].nil? form_params['use_timestamp'] = opts[:'use_timestamp'] if !opts[:'use_timestamp'].nil? # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Object' # auth_names auth_names = opts[:debug_auth_names] || ['HTTPBearer'] new_options = opts.merge( :operation => :"TraitementFactureApi.signer_pdf_api_v1_traitement_signer_pdf_post", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: TraitementFactureApi#signer_pdf_api_v1_traitement_signer_pdf_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
def signer_pdf_async_api_v1_traitement_signer_pdf_async_post(fichier_pdf, opts = {})
-
(Object)-
Options Hash:
(**opts)-
:use_timestamp(Boolean) -- Activer l'horodatage RFC 3161 avec FreeTSA (PAdES-B-T) (default to true) -
:use_pades_lt(Boolean) -- Activer PAdES-B-LT (archivage long terme avec données de validation embarquées). NÉCESSITE un certificat avec accès OCSP/CRL. (default to false) -
:field_name(String) -- Nom du champ de signature PDF (default to 'FactPulseSignature') -
:contact(String) -- -
:localisation(String) -- -
:raison(String) --
Parameters:
-
opts(Hash) -- the optional parameters -
fichier_pdf(File) -- Fichier PDF à signer (traité de manière asynchrone)
def signer_pdf_async_api_v1_traitement_signer_pdf_async_post(fichier_pdf, opts = {}) data, _status_code, _headers = signer_pdf_async_api_v1_traitement_signer_pdf_async_post_with_http_info(fichier_pdf, opts) data end
def signer_pdf_async_api_v1_traitement_signer_pdf_async_post_with_http_info(fichier_pdf, opts = {})
-
(Array<(Object, Integer, Hash)>)- Object data, response status code and response headers
Options Hash:
(**opts)-
:use_timestamp(Boolean) -- Activer l'horodatage RFC 3161 avec FreeTSA (PAdES-B-T) (default to true) -
:use_pades_lt(Boolean) -- Activer PAdES-B-LT (archivage long terme avec données de validation embarquées). NÉCESSITE un certificat avec accès OCSP/CRL. (default to false) -
:field_name(String) -- Nom du champ de signature PDF (default to 'FactPulseSignature') -
:contact(String) -- -
:localisation(String) -- -
:raison(String) --
Parameters:
-
opts(Hash) -- the optional parameters -
fichier_pdf(File) -- Fichier PDF à signer (traité de manière asynchrone)
def signer_pdf_async_api_v1_traitement_signer_pdf_async_post_with_http_info(fichier_pdf, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TraitementFactureApi.signer_pdf_async_api_v1_traitement_signer_pdf_async_post ...' end # verify the required parameter 'fichier_pdf' is set if @api_client.config.client_side_validation && fichier_pdf.nil? fail ArgumentError, "Missing the required parameter 'fichier_pdf' when calling TraitementFactureApi.signer_pdf_async_api_v1_traitement_signer_pdf_async_post" end # resource path local_var_path = '/api/v1/traitement/signer-pdf-async' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['multipart/form-data']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} form_params['fichier_pdf'] = fichier_pdf form_params['raison'] = opts[:'raison'] if !opts[:'raison'].nil? form_params['localisation'] = opts[:'localisation'] if !opts[:'localisation'].nil? form_params['contact'] = opts[:'contact'] if !opts[:'contact'].nil? form_params['field_name'] = opts[:'field_name'] if !opts[:'field_name'].nil? form_params['use_pades_lt'] = opts[:'use_pades_lt'] if !opts[:'use_pades_lt'].nil? form_params['use_timestamp'] = opts[:'use_timestamp'] if !opts[:'use_timestamp'].nil? # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Object' # auth_names auth_names = opts[:debug_auth_names] || ['HTTPBearer'] new_options = opts.merge( :operation => :"TraitementFactureApi.signer_pdf_async_api_v1_traitement_signer_pdf_async_post", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: TraitementFactureApi#signer_pdf_async_api_v1_traitement_signer_pdf_async_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
def soumettre_facture_complete_api_v1_traitement_factures_soumettre_complete_post(soumettre_facture_complete_request, opts = {})
-
(SoumettreFactureCompleteResponse)-
Parameters:
-
opts(Hash) -- the optional parameters -
soumettre_facture_complete_request(SoumettreFactureCompleteRequest) --
def soumettre_facture_complete_api_v1_traitement_factures_soumettre_complete_post(soumettre_facture_complete_request, opts = {}) data, _status_code, _headers = soumettre_facture_complete_api_v1_traitement_factures_soumettre_complete_post_with_http_info(soumettre_facture_complete_request, opts) data end
def soumettre_facture_complete_api_v1_traitement_factures_soumettre_complete_post_with_http_info(soumettre_facture_complete_request, opts = {})
-
(Array<(SoumettreFactureCompleteResponse, Integer, Hash)>)- SoumettreFactureCompleteResponse data, response status code and response headers
Parameters:
-
opts(Hash) -- the optional parameters -
soumettre_facture_complete_request(SoumettreFactureCompleteRequest) --
def soumettre_facture_complete_api_v1_traitement_factures_soumettre_complete_post_with_http_info(soumettre_facture_complete_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TraitementFactureApi.soumettre_facture_complete_api_v1_traitement_factures_soumettre_complete_post ...' end # verify the required parameter 'soumettre_facture_complete_request' is set if @api_client.config.client_side_validation && soumettre_facture_complete_request.nil? fail ArgumentError, "Missing the required parameter 'soumettre_facture_complete_request' when calling TraitementFactureApi.soumettre_facture_complete_api_v1_traitement_factures_soumettre_complete_post" end # resource path local_var_path = '/api/v1/traitement/factures/soumettre-complete' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(soumettre_facture_complete_request) # return_type return_type = opts[:debug_return_type] || 'SoumettreFactureCompleteResponse' # auth_names auth_names = opts[:debug_auth_names] || ['HTTPBearer'] new_options = opts.merge( :operation => :"TraitementFactureApi.soumettre_facture_complete_api_v1_traitement_factures_soumettre_complete_post", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: TraitementFactureApi#soumettre_facture_complete_api_v1_traitement_factures_soumettre_complete_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
def soumettre_facture_complete_async_api_v1_traitement_factures_soumettre_complete_async_post(soumettre_facture_complete_request, opts = {})
-
(ReponseTache)-
Parameters:
-
opts(Hash) -- the optional parameters -
soumettre_facture_complete_request(SoumettreFactureCompleteRequest) --
def soumettre_facture_complete_async_api_v1_traitement_factures_soumettre_complete_async_post(soumettre_facture_complete_request, opts = {}) data, _status_code, _headers = soumettre_facture_complete_async_api_v1_traitement_factures_soumettre_complete_async_post_with_http_info(soumettre_facture_complete_request, opts) data end
def soumettre_facture_complete_async_api_v1_traitement_factures_soumettre_complete_async_post_with_http_info(soumettre_facture_complete_request, opts = {})
-
(Array<(ReponseTache, Integer, Hash)>)- ReponseTache data, response status code and response headers
Parameters:
-
opts(Hash) -- the optional parameters -
soumettre_facture_complete_request(SoumettreFactureCompleteRequest) --
def soumettre_facture_complete_async_api_v1_traitement_factures_soumettre_complete_async_post_with_http_info(soumettre_facture_complete_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TraitementFactureApi.soumettre_facture_complete_async_api_v1_traitement_factures_soumettre_complete_async_post ...' end # verify the required parameter 'soumettre_facture_complete_request' is set if @api_client.config.client_side_validation && soumettre_facture_complete_request.nil? fail ArgumentError, "Missing the required parameter 'soumettre_facture_complete_request' when calling TraitementFactureApi.soumettre_facture_complete_async_api_v1_traitement_factures_soumettre_complete_async_post" end # resource path local_var_path = '/api/v1/traitement/factures/soumettre-complete-async' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(soumettre_facture_complete_request) # return_type return_type = opts[:debug_return_type] || 'ReponseTache' # auth_names auth_names = opts[:debug_auth_names] || ['HTTPBearer'] new_options = opts.merge( :operation => :"TraitementFactureApi.soumettre_facture_complete_async_api_v1_traitement_factures_soumettre_complete_async_post", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: TraitementFactureApi#soumettre_facture_complete_async_api_v1_traitement_factures_soumettre_complete_async_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
def valider_pdf_facturx_api_v1_traitement_valider_pdf_facturx_post(fichier_pdf, opts = {})
-
(ResultatValidationPDFAPI)-
Options Hash:
(**opts)-
:use_verapdf(Boolean) -- Active la validation stricte PDF/A avec VeraPDF (recommandé pour la production). Si False, utilise une validation basique par métadonnées. (default to false) -
:profil(ProfilAPI) --
Parameters:
-
opts(Hash) -- the optional parameters -
fichier_pdf(File) -- Fichier PDF Factur-X à valider (format .pdf).
def valider_pdf_facturx_api_v1_traitement_valider_pdf_facturx_post(fichier_pdf, opts = {}) data, _status_code, _headers = valider_pdf_facturx_api_v1_traitement_valider_pdf_facturx_post_with_http_info(fichier_pdf, opts) data end
def valider_pdf_facturx_api_v1_traitement_valider_pdf_facturx_post_with_http_info(fichier_pdf, opts = {})
-
(Array<(ResultatValidationPDFAPI, Integer, Hash)>)- ResultatValidationPDFAPI data, response status code and response headers
Options Hash:
(**opts)-
:use_verapdf(Boolean) -- Active la validation stricte PDF/A avec VeraPDF (recommandé pour la production). Si False, utilise une validation basique par métadonnées. (default to false) -
:profil(ProfilAPI) --
Parameters:
-
opts(Hash) -- the optional parameters -
fichier_pdf(File) -- Fichier PDF Factur-X à valider (format .pdf).
def valider_pdf_facturx_api_v1_traitement_valider_pdf_facturx_post_with_http_info(fichier_pdf, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TraitementFactureApi.valider_pdf_facturx_api_v1_traitement_valider_pdf_facturx_post ...' end # verify the required parameter 'fichier_pdf' is set if @api_client.config.client_side_validation && fichier_pdf.nil? fail ArgumentError, "Missing the required parameter 'fichier_pdf' when calling TraitementFactureApi.valider_pdf_facturx_api_v1_traitement_valider_pdf_facturx_post" end # resource path local_var_path = '/api/v1/traitement/valider-pdf-facturx' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['multipart/form-data']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} form_params['fichier_pdf'] = fichier_pdf form_params['profil'] = opts[:'profil'] if !opts[:'profil'].nil? form_params['use_verapdf'] = opts[:'use_verapdf'] if !opts[:'use_verapdf'].nil? # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ResultatValidationPDFAPI' # auth_names auth_names = opts[:debug_auth_names] || ['HTTPBearer'] new_options = opts.merge( :operation => :"TraitementFactureApi.valider_pdf_facturx_api_v1_traitement_valider_pdf_facturx_post", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: TraitementFactureApi#valider_pdf_facturx_api_v1_traitement_valider_pdf_facturx_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
def valider_pdf_facturx_async_api_v1_traitement_valider_facturx_async_post(fichier_pdf, opts = {})
-
(ReponseTache)-
Options Hash:
(**opts)-
:use_verapdf(Boolean) -- Active la validation stricte PDF/A avec VeraPDF (recommandé pour la production). Peut prendre plusieurs secondes. (default to false) -
:profil(ProfilAPI) --
Parameters:
-
opts(Hash) -- the optional parameters -
fichier_pdf(File) -- Fichier PDF Factur-X à valider (format .pdf).
def valider_pdf_facturx_async_api_v1_traitement_valider_facturx_async_post(fichier_pdf, opts = {}) data, _status_code, _headers = valider_pdf_facturx_async_api_v1_traitement_valider_facturx_async_post_with_http_info(fichier_pdf, opts) data end
def valider_pdf_facturx_async_api_v1_traitement_valider_facturx_async_post_with_http_info(fichier_pdf, opts = {})
-
(Array<(ReponseTache, Integer, Hash)>)- ReponseTache data, response status code and response headers
Options Hash:
(**opts)-
:use_verapdf(Boolean) -- Active la validation stricte PDF/A avec VeraPDF (recommandé pour la production). Peut prendre plusieurs secondes. (default to false) -
:profil(ProfilAPI) --
Parameters:
-
opts(Hash) -- the optional parameters -
fichier_pdf(File) -- Fichier PDF Factur-X à valider (format .pdf).
def valider_pdf_facturx_async_api_v1_traitement_valider_facturx_async_post_with_http_info(fichier_pdf, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TraitementFactureApi.valider_pdf_facturx_async_api_v1_traitement_valider_facturx_async_post ...' end # verify the required parameter 'fichier_pdf' is set if @api_client.config.client_side_validation && fichier_pdf.nil? fail ArgumentError, "Missing the required parameter 'fichier_pdf' when calling TraitementFactureApi.valider_pdf_facturx_async_api_v1_traitement_valider_facturx_async_post" end # resource path local_var_path = '/api/v1/traitement/valider-facturx-async' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['multipart/form-data']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} form_params['fichier_pdf'] = fichier_pdf form_params['profil'] = opts[:'profil'] if !opts[:'profil'].nil? form_params['use_verapdf'] = opts[:'use_verapdf'] if !opts[:'use_verapdf'].nil? # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ReponseTache' # auth_names auth_names = opts[:debug_auth_names] || ['HTTPBearer'] new_options = opts.merge( :operation => :"TraitementFactureApi.valider_pdf_facturx_async_api_v1_traitement_valider_facturx_async_post", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: TraitementFactureApi#valider_pdf_facturx_async_api_v1_traitement_valider_facturx_async_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
def valider_signature_pdf_endpoint_api_v1_traitement_valider_signature_pdf_post(fichier_pdf, opts = {})
-
(Object)-
Parameters:
-
opts(Hash) -- the optional parameters -
fichier_pdf(File) -- Fichier PDF à valider (sera analysé pour détecter et valider les signatures)
def valider_signature_pdf_endpoint_api_v1_traitement_valider_signature_pdf_post(fichier_pdf, opts = {}) data, _status_code, _headers = valider_signature_pdf_endpoint_api_v1_traitement_valider_signature_pdf_post_with_http_info(fichier_pdf, opts) data end
def valider_signature_pdf_endpoint_api_v1_traitement_valider_signature_pdf_post_with_http_info(fichier_pdf, opts = {})
-
(Array<(Object, Integer, Hash)>)- Object data, response status code and response headers
Parameters:
-
opts(Hash) -- the optional parameters -
fichier_pdf(File) -- Fichier PDF à valider (sera analysé pour détecter et valider les signatures)
def valider_signature_pdf_endpoint_api_v1_traitement_valider_signature_pdf_post_with_http_info(fichier_pdf, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TraitementFactureApi.valider_signature_pdf_endpoint_api_v1_traitement_valider_signature_pdf_post ...' end # verify the required parameter 'fichier_pdf' is set if @api_client.config.client_side_validation && fichier_pdf.nil? fail ArgumentError, "Missing the required parameter 'fichier_pdf' when calling TraitementFactureApi.valider_signature_pdf_endpoint_api_v1_traitement_valider_signature_pdf_post" end # resource path local_var_path = '/api/v1/traitement/valider-signature-pdf' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['multipart/form-data']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} form_params['fichier_pdf'] = fichier_pdf # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Object' # auth_names auth_names = opts[:debug_auth_names] || ['HTTPBearer'] new_options = opts.merge( :operation => :"TraitementFactureApi.valider_signature_pdf_endpoint_api_v1_traitement_valider_signature_pdf_post", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: TraitementFactureApi#valider_signature_pdf_endpoint_api_v1_traitement_valider_signature_pdf_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
def valider_xml_api_v1_traitement_valider_xml_post(fichier_xml, opts = {})
-
(ReponseValidationSucces)-
Options Hash:
(**opts)-
:profil(ProfilAPI) -- Profil de validation (MINIMUM, BASIC, EN16931, EXTENDED).
Parameters:
-
opts(Hash) -- the optional parameters -
fichier_xml(File) -- Fichier XML Factur-X à valider (format .xml).
def valider_xml_api_v1_traitement_valider_xml_post(fichier_xml, opts = {}) data, _status_code, _headers = valider_xml_api_v1_traitement_valider_xml_post_with_http_info(fichier_xml, opts) data end
def valider_xml_api_v1_traitement_valider_xml_post_with_http_info(fichier_xml, opts = {})
-
(Array<(ReponseValidationSucces, Integer, Hash)>)- ReponseValidationSucces data, response status code and response headers
Options Hash:
(**opts)-
:profil(ProfilAPI) -- Profil de validation (MINIMUM, BASIC, EN16931, EXTENDED).
Parameters:
-
opts(Hash) -- the optional parameters -
fichier_xml(File) -- Fichier XML Factur-X à valider (format .xml).
def valider_xml_api_v1_traitement_valider_xml_post_with_http_info(fichier_xml, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TraitementFactureApi.valider_xml_api_v1_traitement_valider_xml_post ...' end # verify the required parameter 'fichier_xml' is set if @api_client.config.client_side_validation && fichier_xml.nil? fail ArgumentError, "Missing the required parameter 'fichier_xml' when calling TraitementFactureApi.valider_xml_api_v1_traitement_valider_xml_post" end # resource path local_var_path = '/api/v1/traitement/valider-xml' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['multipart/form-data']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} form_params['fichier_xml'] = fichier_xml form_params['profil'] = opts[:'profil'] if !opts[:'profil'].nil? # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ReponseValidationSucces' # auth_names auth_names = opts[:debug_auth_names] || ['HTTPBearer'] new_options = opts.merge( :operation => :"TraitementFactureApi.valider_xml_api_v1_traitement_valider_xml_post", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: TraitementFactureApi#valider_xml_api_v1_traitement_valider_xml_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end