From 72bce867d5b41a08f3d377a531de06d72b10131e Mon Sep 17 00:00:00 2001 From: Pier-Paolo Mammi Date: Mon, 8 Jun 2026 16:29:44 +0200 Subject: [PATCH] add Liquidazione request for manually inserted amounts --- .../elixPro - Recupero importi inseriti.yml | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 collections/elixForms API v2/EFTL processing/CCT - Liquidazione Compensi/Proposta/elixPro - Recupero importi inseriti.yml diff --git a/collections/elixForms API v2/EFTL processing/CCT - Liquidazione Compensi/Proposta/elixPro - Recupero importi inseriti.yml b/collections/elixForms API v2/EFTL processing/CCT - Liquidazione Compensi/Proposta/elixPro - Recupero importi inseriti.yml new file mode 100644 index 0000000..75f1e8a --- /dev/null +++ b/collections/elixForms API v2/EFTL processing/CCT - Liquidazione Compensi/Proposta/elixPro - Recupero importi inseriti.yml @@ -0,0 +1,72 @@ +info: + name: elixPro - Recupero importi inseriti + type: http + seq: 22 + +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: "31630" + disabled: true + - name: x-ef-request-id + value: "31499" + 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: |- + const { prepareEftlDocument } = require("./elixFormsJs.js") + // Copy-pasta your EFTL document below inside the template literals (`) + prepareEftlDocument(String.raw` + [EFTL][HEADER name="trimDocument" value="true" type="boolean" /] + + [VAR name="codiciFiscali" type="iterable"][SPLIT regex="##"][TAG]GETVALUEBYTAG,INSERIMENTO_MANUALE_CODFIS;INSERIMENTO_MANUALE,REQUEST,ID_OBJECT,CONCAT,##[/TAG][/SPLIT][/VAR] + [VAR name="importi" type="iterable"][SPLIT regex="##"][TAG]GETVALUEBYTAG,INSERIMENTO_MANUALE_IMPORTO;INSERIMENTO_MANUALE,REQUEST,ID_OBJECT,CONCAT,##[/TAG][/SPLIT][/VAR] + [VAR name="modalita" type="iterable"][SPLIT regex="##"][TAG]GETVALUEBYTAG,INSERIMENTO_MANUALE_MODALITA;INSERIMENTO_MANUALE,REQUEST,ID_OBJECT,CONCAT,##[/TAG][/SPLIT][/VAR] + + [VAR name="countInserimenti" type="number"][SIZE_OF varname="codiciFiscali" /][/VAR] + [% current = 0; %] + + CF: [%= codiciFiscali %] + IM: [%= importi %] + MO: [%= modalita %] + CN: [%= countInserimenti %] + + + + + + + + [FOR varName="inserimento" iterable="codiciFiscali"] + + + + [% current = current + 1; %][/FOR] +
C.F.ImportoModalità
[VALUE_OF varname="codiciFiscali" index="current" /][VALUE_OF varname="importi" index="current" /][VALUE_OF varname="modalita" index="current" /]
+ + [/EFTL] + `); + +settings: + encodeUrl: true + timeout: 0 + followRedirects: true + maxRedirects: 5