diff --git a/bruno/collections/elixForms API v2/EFTL processing/Edilizia RDA Manutenzione/Importo richiesta - Calcolo importo Cassa Previdenziale.yml b/bruno/collections/elixForms API v2/EFTL processing/Edilizia RDA Manutenzione/Importo richiesta - Calcolo importo Cassa Previdenziale.yml new file mode 100644 index 0000000..91107b3 --- /dev/null +++ b/bruno/collections/elixForms API v2/EFTL processing/Edilizia RDA Manutenzione/Importo richiesta - Calcolo importo Cassa Previdenziale.yml @@ -0,0 +1,50 @@ +info: + name: Importo richiesta - Calcolo importo Cassa Previdenziale + type: http + seq: 1 + +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" /] + + [VAR name="imponibile" type="number"][TAG]GETVALUEBYTAG,RICHIESTA_IMPONIBILE,REQUEST,ID_OBJECT[/TAG][/VAR] + + [VAR name="cassaPrevidenzialePercentuale" type="number"][TAG]GETVALUEBYTAG,RICHIESTA_CASSA_PREVIDENZIALE_PERCENTUALE,REQUEST,ID_OBJECT[/TAG][/VAR] + [% cassaPrevidenziale = imponibile * cassaPrevidenzialePercentuale / 100; %] + + [FORMAT type="number" pattern="#,##0.00"][% cassaPrevidenziale %][/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/Importo richiesta - Calcolo importo IVA.yml b/bruno/collections/elixForms API v2/EFTL processing/Edilizia RDA Manutenzione/Importo richiesta - Calcolo importo IVA.yml new file mode 100644 index 0000000..5d68088 --- /dev/null +++ b/bruno/collections/elixForms API v2/EFTL processing/Edilizia RDA Manutenzione/Importo richiesta - Calcolo importo IVA.yml @@ -0,0 +1,50 @@ +info: + name: Importo richiesta - Calcolo importo IVA + type: http + seq: 2 + +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" /] + + [VAR name="imponibile" type="number"][TAG]GETVALUEBYTAG,RICHIESTA_IMPONIBILE,REQUEST,ID_OBJECT[/TAG][/VAR] + + [VAR name="ivaPercentuale" type="number"][TAG]GETVALUEBYTAG,RICHIESTA_IVA_PERCENTUALE,REQUEST,ID_OBJECT[/TAG][/VAR] + [% iva = imponibile * ivaPercentuale / 100; %] + + [FORMAT type="number" pattern="#,##0.00"][% iva %][/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/Importo richiesta - Calcolo importo TOTALE.yml b/bruno/collections/elixForms API v2/EFTL processing/Edilizia RDA Manutenzione/Importo richiesta - Calcolo importo TOTALE.yml new file mode 100644 index 0000000..d25ae7c --- /dev/null +++ b/bruno/collections/elixForms API v2/EFTL processing/Edilizia RDA Manutenzione/Importo richiesta - Calcolo importo TOTALE.yml @@ -0,0 +1,68 @@ +info: + name: Importo richiesta - Calcolo importo 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,RICHIESTA_IMPONIBILE_RAW,REQUEST,ID_OBJECT[/TAG][/VAR] + [% importoTotale = importoTotale + imponibile; %] + + [VAR name="cassaPrevidenzialePercentuale" type="number"][TAG]GETVALUEBYTAG,RICHIESTA_CASSA_PREVIDENZIALE_PERCENTUALE,REQUEST,ID_OBJECT[/TAG][/VAR] + [% cassaPrevidenziale = imponibile * cassaPrevidenzialePercentuale / 100; %] + [% importoTotale = importoTotale + cassaPrevidenziale; %] + + [VAR name="ivaPercentuale" type="number"][TAG]GETVALUEBYTAG,RICHIESTA_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