generated from pagopa/pagopa-functions-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from pagopa/feat-add-partial-registration
Feat add partial registration
- Loading branch information
Showing
34 changed files
with
8,224 additions
and
8,451 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
function add(value, addition) { | ||
return value + addition; | ||
} | ||
|
||
module.exports = add; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
function slice(arr, start, end) { | ||
return !Array.isArray(arr) | ||
? [] | ||
: arr.slice(start, typeof end === "number" ? end : undefined); | ||
} | ||
|
||
module.exports = slice; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
function getPaymentMethodCopy(website, app) { | ||
if (website && app) { | ||
return "sul sito o app dell'ente, "; | ||
} else if (website && !app) { | ||
return "sul sito dell'ente, "; | ||
} else if (!website && app) { | ||
return "sull'app dell'ente, "; | ||
} else { | ||
return null; | ||
} | ||
} | ||
|
||
module.exports = getPaymentMethodCopy; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<header class="notice-header"> | ||
<section class="main"> | ||
<div class="pagopa-header"> | ||
<img class="logo" src="assets/pagoPa-logo.svg" /> | ||
<p class="h4 notice-title">Avviso di pagamento</p> | ||
</div> | ||
<div class="notice-subject"> | ||
<h1 class="h1">{{notice.subject}}</h1> | ||
</div> | ||
</section> | ||
{{#if payee.logo}} | ||
<img class="notice-header-logo" alt="{{payee.name}}" src="{{payee.logo}}" /> | ||
{{/if}} | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<section class="notice-main-info"> | ||
<div class="payee-title-block start-separator"> | ||
<h3 class="small-caps-title">Ente creditore</h3> | ||
<p class="data-small">{{payee.taxCode}}</p> | ||
</div> | ||
|
||
<div class="payee-name-block start-grid-cell"> | ||
<p class="h2">{{payee.name}}</p> | ||
</div> | ||
|
||
<div class="payee-sector-block start-grid-cell"> | ||
<p class="h3">{{payee.sector}}</p> | ||
</div> | ||
|
||
<div class="payee-info-block start-grid-cell"> | ||
<p class="body">{{payee.additionalInfo}}</p> | ||
</div> | ||
|
||
<div class="debtor-title-block end-separator"> | ||
<h3 class="small-caps-title">Destinatario</h3> | ||
<p class="data-small uppercase">{{debtor.taxCode}}</p> | ||
</div> | ||
|
||
<div class="debtor-name-block end-grid-cell"> | ||
<p class="h2 forcedCapitalCase">{{lowercase debtor.fullName}}</p> | ||
</div> | ||
|
||
<div class="debtor-address-block end-grid-cell"> | ||
<p class="h3"> | ||
{{debtor.address}} {{debtor.buildingNumber}}<br /> | ||
{{debtor.postalCode}} {{debtor.city}} ({{debtor.province}}) | ||
</p> | ||
</div> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<div class="payment-details unique-grid-cell"> | ||
<div class="poste-italiane-area"> | ||
<img class="logo-poste-italiane" src="assets/poste/poste-italiane.svg" alt="Poste Italiane" /> | ||
<img class="logo-bollettino-postale" src="assets/poste/bollettino-postale.svg" | ||
alt="circuito bollettino postale BancoPosta" /> | ||
<p class="body">Bollettino Postale pagabile in tutti gli Uffici Postali e sui canali fisici o | ||
digitali abilitati di Poste Italiane e dell’Ente Creditore</p> | ||
<p class="caption"> | ||
{{notice.posteAuth}} | ||
</p> | ||
</div> | ||
|
||
<div class="payment-details-data"> | ||
|
||
<div class="account-number-and-amount"> | ||
<div class="account-number"> | ||
<img class="euro-block" src="assets/poste/euro-block.svg" alt="Euro" /> | ||
<dl class="data-key-value-inline-monospaced"> | ||
<dt>sul C/C n.</dt> | ||
<dd>{{notice.posteAccountNumber}}</dd> | ||
</dl> | ||
</div> | ||
|
||
<dl class="data-key-value-inline-monospaced align-right"> | ||
<dt>Euro</dt> | ||
<dd>{{this.amount}}</dd> | ||
</dl> | ||
</div> | ||
|
||
<div class="payment-details-and-datamatrix"> | ||
|
||
<div class="payment-details-data-1st-block"> | ||
|
||
<dl class="data-key-value-inline"> | ||
<dt>Intestato a</dt> | ||
<dd>{{payee.name}}</dd> | ||
</dl> | ||
|
||
|
||
<dl class="data-key-value-inline"> | ||
<dt>Destinatario</dt> | ||
<dd class="forcedCapitalCase">{{lowercase debtor.fullName}}</dd> | ||
</dl> | ||
|
||
|
||
<dl class="data-key-value-inline"> | ||
<dt>Oggetto pagamento</dt> | ||
<dd>{{notice.subject}}</dd> | ||
</dl> | ||
|
||
|
||
</div> | ||
|
||
<div class="payment-details-data-2nd-block"> | ||
|
||
<div class="grid-cell-span-4"> | ||
<dl class="data-key-value-monospaced"> | ||
<dt>Cod. Avviso</dt> | ||
<dd>{{splitAndSpace this.refNumber}}</dd> | ||
</dl> | ||
</div> | ||
|
||
<div class="grid-cell-span-1"> | ||
<dl class="data-key-value-monospaced"> | ||
<dt>Tipo</dt> | ||
<dd>P1</dd> | ||
</dl> | ||
</div> | ||
|
||
<div class="grid-cell-span-3 align-right"> | ||
<dl class="data-key-value-monospaced"> | ||
<dt>Cod. Fiscale Ente Creditore</dt> | ||
<dd>{{payee.taxCode}}</dd> | ||
</dl> | ||
</div> | ||
|
||
|
||
</div> | ||
|
||
<div class="payment-data-matrix"> | ||
<img src={{genDataMatrix this.posteDataMatrix this.tempPath}} alt="Poste DataMatrix" /> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<section class="notice-payment-data"> | ||
<div class="unique-separator"> | ||
<h3 class="small-caps-title"> | ||
{{#if title}} | ||
{{title}} | ||
{{else}} | ||
Dati per il pagamento | ||
{{/if}} | ||
</h3> | ||
{{#if subtitle}} | ||
{{{subtitle}}} | ||
{{else}} | ||
{{#if notice.expiryDate}} | ||
<p class='h4'>Rata unica entro il {{notice.expiryDate}}</p> | ||
{{else}} | ||
<p class='h4'>Rata unica</p> | ||
{{/if}} | ||
{{/if}} | ||
</div> | ||
|
||
{{> paymentQR}} | ||
|
||
</section> |
28 changes: 28 additions & 0 deletions
28
node/pdf-generate/partials/notices/paymentDataMultipleInstalmentsP1.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<section class="notice-payment-data"> | ||
<div class="unique-separator"> | ||
<h3 class="small-caps-title">Dati per il pagamento</h3> | ||
</div> | ||
|
||
<section class="instalment-payment-data" style="--columns: 3"> | ||
|
||
{{#each (slice notice.instalments.items 0 3)}} | ||
|
||
<div> | ||
<div class="inner-separator"> | ||
<h3 class="small-caps-title">Rata {{add @index 1}}</h3> | ||
</div> | ||
{{#with this}} | ||
{{> paymentQRColCompact | ||
debtor=../debtor | ||
notice=../notice | ||
payee=../payee | ||
tempPath=../tempPath | ||
}} | ||
{{/with}} | ||
</div> | ||
|
||
{{/each}} | ||
|
||
</section> | ||
|
||
</section> |
43 changes: 43 additions & 0 deletions
43
node/pdf-generate/partials/notices/paymentDataMultipleInstalmentsP2.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<section class="notice-payment-data"> | ||
<div class="unique-separator"> | ||
<h3 class="small-caps-title">Dati per il pagamento</h3> | ||
</div> | ||
|
||
<div class="payment-data-compact unique-grid-cell"> | ||
<div class="payment-data-compact-row"> | ||
<dl class="data-key-value"> | ||
<dt>Destinatario</dt> | ||
<dd class="forcedCapitalCase">{{lowercase debtor.fullName}}</dd> | ||
</dl> | ||
<dl class="data-key-value"> | ||
<dt>Ente creditore</dt> | ||
<dd>{{payee.name}}</dd> | ||
</dl> | ||
<dl class="data-key-value"> | ||
<dt>Oggetto del pagamento</dt> | ||
<dd>{{notice.subject}}</dd> | ||
</dl> | ||
</div> | ||
</div> | ||
|
||
<section class="instalment-payment-data" style="--columns: 3"> | ||
|
||
{{#each (slice notice.instalments.items 3)}} | ||
|
||
<div> | ||
<div class="inner-separator"> | ||
<h3 class="small-caps-title">Rata {{add @index 4}}</h3> | ||
</div> | ||
{{#with this}} | ||
{{> paymentQRColDense | ||
payee=../payee | ||
tempPath=../tempPath | ||
}} | ||
{{/with}} | ||
</div> | ||
|
||
{{/each}} | ||
|
||
</section> | ||
|
||
</section> |
Oops, something went wrong.