From 93ec577c31f8c6eb5c0b21913873cc746c31e74e Mon Sep 17 00:00:00 2001 From: Pier Paolo MAMMI Date: Tue, 13 Oct 2026 10:10:17 +0200 Subject: [PATCH] add rda manutenzione eftl request --- .../Importo richiesta - Calcolo totale.yml | 68 +++++++++++++++++++ .../Edilizia RDA Manutenzione/folder.yml | 7 ++ ...one Istanze - Elenco carriere inserite.yml | 2 +- ... email - Elenco carriere e certificati.yml | 2 +- .../MOD A13 Richiesta Certificato/folder.yml | 2 +- .../EFTL processing/Process EFTL.yml | 2 +- .../EFTL processing/Test vari/folder.yml | 2 +- 7 files changed, 80 insertions(+), 5 deletions(-) create mode 100644 bruno/collections/elixForms API v2/EFTL processing/Edilizia RDA Manutenzione/Importo richiesta - Calcolo totale.yml create mode 100644 bruno/collections/elixForms API v2/EFTL processing/Edilizia RDA Manutenzione/folder.yml diff --git a/bruno/collections/elixForms API v2/EFTL processing/Edilizia RDA Manutenzione/Importo richiesta - Calcolo totale.yml b/bruno/collections/elixForms API v2/EFTL processing/Edilizia RDA Manutenzione/Importo richiesta - Calcolo totale.yml new file mode 100644 index 0000000..49f12f3 --- /dev/null +++ b/bruno/collections/elixForms API v2/EFTL processing/Edilizia RDA Manutenzione/Importo richiesta - Calcolo totale.yml @@ -0,0 +1,68 @@ +info: + name: Importo richiesta - Calcolo totale + type: http + seq: 3 + +http: + method: POST + url: "{{elixFormsApiUrl}}/eftl/process/v1" + headers: + - name: x-requested-with + value: XMLHttpRequest + - name: x-api-key + value: "{{elixFormsWsAuthenticationToken}}" + - name: x-ef-request-id + value: "40749" + body: + type: json + data: |- + { + "userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script + "userContext": { + "lang": "IT", + "crlf": "\r\n" + } + } + auth: inherit + +runtime: + scripts: + - type: before-request + code: |- + // Copy-pasta your EFTL document below inside the template literals (`) + var eftlDocumentToBeProcessed = bru.setVar("elixBase64EftlDocument", btoa(String.raw` + [EFTL][HEADER name="trimDocument" value="true" type="boolean" /] + [% importoTotale = 0; %] + + [VAR name="imponibile" type="number"][TAG]GETVALUEBYTAG,IMPONIBILE,REQUEST,ID_OBJECT[/TAG][/VAR] + [% importoTotale = importoTotale + imponibile; %] + + [VAR name="cassaPrevidenzialePercentuale" type="number"][TAG]GETVALUEBYTAG,CASSA_PREVIDENZIALE_PERCENTUALE,REQUEST,ID_OBJECT[/TAG][/VAR] + [% cassaPrevidenziale = imponibile * cassaPrevidenzialePercentuale / 100; %] + [% importoTotale = importoTotale + cassaPrevidenziale; %] + + [VAR name="ivaPercentuale" type="number"][TAG]GETVALUEBYTAG,IVA_PERCENTUALE,REQUEST,ID_OBJECT[/TAG][/VAR] + [% iva = imponibile * ivaPercentuale / 100; %] + [% importoTotale = importoTotale + iva; %] + + [!-- + -- + IM: [%= imponibile %] + CP: [%= cassaPrevidenzialePercentuale %] + CC: [%= cassaPrevidenziale %] + IP: [%= ivaPercentuale %] + IV: [%= iva %] + TT: [%= importoTotale %] + -- + --] + + [FORMAT type="number" pattern="#,##0.00"][% importoTotale %][/FORMAT] + [/EFTL] + `)); + +settings: + encodeUrl: true + timeout: 0 + followRedirects: true + maxRedirects: 5 + forwardAuthorizationHeader: true diff --git a/bruno/collections/elixForms API v2/EFTL processing/Edilizia RDA Manutenzione/folder.yml b/bruno/collections/elixForms API v2/EFTL processing/Edilizia RDA Manutenzione/folder.yml new file mode 100644 index 0000000..dd00216 --- /dev/null +++ b/bruno/collections/elixForms API v2/EFTL processing/Edilizia RDA Manutenzione/folder.yml @@ -0,0 +1,7 @@ +info: + name: Edilizia RDA Manutenzione + type: folder + seq: 4 + +request: + auth: inherit diff --git a/bruno/collections/elixForms API v2/EFTL processing/MOD A13 Richiesta Certificato/Gestione Istanze - Elenco carriere inserite.yml b/bruno/collections/elixForms API v2/EFTL processing/MOD A13 Richiesta Certificato/Gestione Istanze - Elenco carriere inserite.yml index f0c663b..46ed965 100644 --- a/bruno/collections/elixForms API v2/EFTL processing/MOD A13 Richiesta Certificato/Gestione Istanze - Elenco carriere inserite.yml +++ b/bruno/collections/elixForms API v2/EFTL processing/MOD A13 Richiesta Certificato/Gestione Istanze - Elenco carriere inserite.yml @@ -1,7 +1,7 @@ info: name: Gestione Istanze - Elenco carriere inserite type: http - seq: 14 + seq: 2 http: method: POST diff --git a/bruno/collections/elixForms API v2/EFTL processing/MOD A13 Richiesta Certificato/Notifiche email - Elenco carriere e certificati.yml b/bruno/collections/elixForms API v2/EFTL processing/MOD A13 Richiesta Certificato/Notifiche email - Elenco carriere e certificati.yml index 0a29306..07a13ab 100644 --- a/bruno/collections/elixForms API v2/EFTL processing/MOD A13 Richiesta Certificato/Notifiche email - Elenco carriere e certificati.yml +++ b/bruno/collections/elixForms API v2/EFTL processing/MOD A13 Richiesta Certificato/Notifiche email - Elenco carriere e certificati.yml @@ -1,7 +1,7 @@ info: name: Notifiche email - Elenco carriere e certificati type: http - seq: 2 + seq: 1 http: method: POST diff --git a/bruno/collections/elixForms API v2/EFTL processing/MOD A13 Richiesta Certificato/folder.yml b/bruno/collections/elixForms API v2/EFTL processing/MOD A13 Richiesta Certificato/folder.yml index bcfed85..1c45909 100644 --- a/bruno/collections/elixForms API v2/EFTL processing/MOD A13 Richiesta Certificato/folder.yml +++ b/bruno/collections/elixForms API v2/EFTL processing/MOD A13 Richiesta Certificato/folder.yml @@ -1,7 +1,7 @@ info: name: MOD A13 Richiesta Certificato type: folder - seq: 4 + seq: 5 request: auth: inherit diff --git a/bruno/collections/elixForms API v2/EFTL processing/Process EFTL.yml b/bruno/collections/elixForms API v2/EFTL processing/Process EFTL.yml index 4bf1c22..739e168 100644 --- a/bruno/collections/elixForms API v2/EFTL processing/Process EFTL.yml +++ b/bruno/collections/elixForms API v2/EFTL processing/Process EFTL.yml @@ -1,7 +1,7 @@ info: name: Process EFTL type: http - seq: 6 + seq: 7 http: method: POST diff --git a/bruno/collections/elixForms API v2/EFTL processing/Test vari/folder.yml b/bruno/collections/elixForms API v2/EFTL processing/Test vari/folder.yml index 8dd0272..cbb658a 100644 --- a/bruno/collections/elixForms API v2/EFTL processing/Test vari/folder.yml +++ b/bruno/collections/elixForms API v2/EFTL processing/Test vari/folder.yml @@ -1,7 +1,7 @@ info: name: Test vari type: folder - seq: 5 + seq: 6 request: auth: inherit