add rda manutenzione eftl request

This commit is contained in:
pierpaolo.mammi committed 2026-10-13 10:10:17 +02:00
1 parent 97d512d314
commit 93ec577c31
7 files changed
+80 -5

No files matched your search

@@ -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
@@ -0,0 +1,7 @@
info:
name: Edilizia RDA Manutenzione
type: folder
seq: 4
request:
auth: inherit
@@ -1,7 +1,7 @@
info: info:
name: Gestione Istanze - Elenco carriere inserite name: Gestione Istanze - Elenco carriere inserite
type: http type: http
seq: 14 seq: 2
http: http:
method: POST method: POST
@@ -1,7 +1,7 @@
info: info:
name: Notifiche email - Elenco carriere e certificati name: Notifiche email - Elenco carriere e certificati
type: http type: http
seq: 2 seq: 1
http: http:
method: POST method: POST
@@ -1,7 +1,7 @@
info: info:
name: MOD A13 Richiesta Certificato name: MOD A13 Richiesta Certificato
type: folder type: folder
seq: 4 seq: 5
request: request:
auth: inherit auth: inherit
@@ -1,7 +1,7 @@
info: info:
name: Process EFTL name: Process EFTL
type: http type: http
seq: 6 seq: 7
http: http:
method: POST method: POST
@@ -1,7 +1,7 @@
info: info:
name: Test vari name: Test vari
type: folder type: folder
seq: 5 seq: 6
request: request:
auth: inherit auth: inherit