Skip to content

Commit

Permalink
Merge branch '3.5.x' of github.com:link-it/govpay into 3.5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
nardil committed Oct 18, 2021
2 parents 7dcb17b + 413fa91 commit d9826a3
Show file tree
Hide file tree
Showing 34 changed files with 432 additions and 211 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ secimInviaTracciatoEmail=Spedito flusso Secim via Email
secimInviaTracciatoFileSystem=Salvato flusso Secim su file system
submitMessageforUserWithFiscalCodeInBody=Inviata avvisatura a backend AppIO
submitMessageforUserWithFiscalCodeInBodyScadenza=Inviato promemoria scadenza a backend AppIO
submitMessageforUserWithFiscalCodeInBodyRicevuta=Inviata ricevuta di pagamento a backend AppIO
updateApplicazione=Configura applicazione
updateOperatore=Configura operatore
updatePagamento=Configura pagamento
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Gentile ${versamento.getAnagraficaDebitore().getRagioneSociale()},

<#assign dataRichiesta = rpt.getDataMsgRichiesta()?string("yyyy-MM-dd HH:mm:ss")>
Il pagamento di "${versamento.getCausaleVersamento().getSimple()}" effettuato il ${dataRichiesta} risulta concluso con esito ${rpt.getEsitoPagamento().name()}:

Ente creditore: ${dominio.getRagioneSociale()} (${dominio.getCodDominio()})
Istituto attestante: ${rpt.getDenominazioneAttestante()} (${rpt.getIdentificativoAttestante()})
Identificativo univoco versamento (IUV): ${rpt.getIuv()}
Codice contesto pagamento (CCP): ${rpt.getCcp()}
Importo pagato: ${rpt.getImportoTotalePagato()}

Distinti saluti.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<#if rpt.getEsitoPagamento().getCodifica() = 0>
Notifica pagamento eseguito: ${rpt.getCodDominio()}/${rpt.getIuv()}/${rpt.getCcp()}
<#elseif rpt.getEsitoPagamento().getCodifica() = 1>
Notifica pagamento non eseguito: ${rpt.getCodDominio()}/${rpt.getIuv()}/${rpt.getCcp()}
<#elseif rpt.getEsitoPagamento().getCodifica() = 2>
Notifica pagamento eseguito parzialmente: ${rpt.getCodDominio()}/${rpt.getIuv()}/${rpt.getCcp()}
<#elseif rpt.getEsitoPagamento().getCodifica() = 3>
Notifica decorrenza termini pagamento: ${rpt.getCodDominio()}/${rpt.getIuv()}/${rpt.getCcp()}
<#elseif rpt.getEsitoPagamento().getCodifica() = 4>
Notifica decorrenza termini pagamento: ${rpt.getCodDominio()}/${rpt.getIuv()}/${rpt.getCcp()}
</#if>
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ Background:
"""

* def tipoPendenzaDominio_appIO_apiKey = 'ABC...........'
* def tipoPendenzaDominio_appIO_apiKeyErrata = 'API_KEY_ERRATA'
* def tipoPendenzaDominio_appIO =
"""
{
Expand All @@ -73,7 +72,10 @@ Background:
abilitato: true,
"tipo": "freemarker"
},
"promemoriaRicevuta": null,
"promemoriaRicevuta": {
abilitato: true,
"tipo": "freemarker"
},
"promemoriaScadenza": null
}
}
Expand All @@ -82,6 +84,9 @@ Background:
* set configurazione_avvisaturaAppIO.promemoriaAvviso.oggetto = encodeBase64InputStream(read('classpath:configurazione/v1/msg/appio-subject-freemarker.ftl'))
* set configurazione_avvisaturaAppIO.promemoriaAvviso.messaggio = encodeBase64InputStream(read('classpath:configurazione/v1/msg/appio-body-freemarker.ftl'))

* set configurazione_avvisaturaAppIO.promemoriaRicevuta.oggetto = encodeBase64InputStream(read('classpath:configurazione/v1/msg/appio-subject-ricevuta-freemarker.ftl'))
* set configurazione_avvisaturaAppIO.promemoriaRicevuta.messaggio = encodeBase64InputStream(read('classpath:configurazione/v1/msg/appio-body-ricevuta-freemarker.ftl'))

* def debitoreNoAuthAppIO =
"""
{
Expand Down Expand Up @@ -352,7 +357,7 @@ Given url backofficeBaseurl
And path '/eventi'
And param idA2A = idA2A
And param idPendenza = idPendenza
And param tipoEvento = 'submitMessageforUserWithFiscalCodeInBody'
And param tipoEvento = 'submitMessageforUserWithFiscalCodeInBodyRicevuta'
And param messaggi = true
And headers gpAdminBasicAutenticationHeader
When method get
Expand Down Expand Up @@ -380,7 +385,7 @@ And match response.risultati[0] ==
"componente": "API_BACKEND_IO",
"categoriaEvento": "INTERFACCIA",
"ruolo": "CLIENT",
"tipoEvento": "submitMessageforUserWithFiscalCodeInBody",
"tipoEvento": "submitMessageforUserWithFiscalCodeInBodyRicevuta",
"sottotipoEvento": "##null",
"esito": "OK",
"sottotipoEsito": "201",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ Background:

* configure followRedirects = false

* def stazioneNdpSymPut = read('classpath:test/workflow/modello3/v2/msg/stazione.json')
* def dominioNdpSymPut = read('classpath:test/workflow/modello3/v2/msg/dominio.json')
* def versionePagamento = 2

* def esitoVerifyPayment = read('classpath:test/workflow/modello3/v2/msg/verifyPayment-response-ok.json')
* def esitoGetPayment = read('classpath:test/api/backoffice/v1/pendenze/get/msg/getPayment-response-ok-multibeneficiario.json')
Expand Down Expand Up @@ -104,25 +103,17 @@ And match response == read('classpath:test/api/backoffice/v1/pendenze/put/msg/pe
* def iuv = getIuvFromNumeroAvviso(numeroAvviso)
* def importo = pendenzaPut.importo

# Configurazione del simulatore

* set dominioNdpSymPut.versione = 2

* call read('classpath:utils/nodo-config-dominio-put.feature')

* call read('classpath:utils/nodo-config-stazione-put.feature')

# Verifico il pagamento

* call read('classpath:utils/psp-verifica-rpt.feature')
* call read('classpath:utils/psp-paVerifyPaymentNotice.feature')
* match response == esitoVerifyPayment
* def ccp = response.ccp
* def ccp_numero_avviso = response.ccp

# Attivo il pagamento

* def tipoRicevuta = "R01"
* call read('classpath:utils/psp-attiva-rpt.feature')
* call read('classpath:utils/psp-paGetPayment.feature')
* match response.dati == esitoGetPayment

# Verifico la notifica di attivazione
Expand All @@ -149,18 +140,6 @@ And match response == read('classpath:test/api/backoffice/v1/pendenze/put/msg/pe
* match response.rpp[0].stato == 'RT_ACCETTATA_PA'
* match response.rpp[0].rt == '#notnull'


# ripristino dominio e stazione

* def dominioNdpSymPut = read('classpath:test/workflow/modello3/v2/msg/dominio.json')

* call read('classpath:utils/nodo-config-dominio-put.feature')

* def stazioneNdpSymPut = read('classpath:test/workflow/modello3/v2/msg/stazione.json')

* call read('classpath:utils/nodo-config-stazione-put.feature')


Scenario: Caricamento pendenza multibeneficiario di due enti che condividono l'IBAN

# configuro secondo dominio per utilizzare lo stesso iban del dominio principale
Expand Down Expand Up @@ -217,25 +196,17 @@ And match response == read('classpath:test/api/backoffice/v1/pendenze/put/msg/pe
* def iuv = getIuvFromNumeroAvviso(numeroAvviso)
* def importo = pendenzaPut.importo

# Configurazione del simulatore

* set dominioNdpSymPut.versione = 2

* call read('classpath:utils/nodo-config-dominio-put.feature')

* call read('classpath:utils/nodo-config-stazione-put.feature')

# Verifico il pagamento

* call read('classpath:utils/psp-verifica-rpt.feature')
* call read('classpath:utils/psp-paVerifyPaymentNotice.feature')
* match response == esitoVerifyPayment
* def ccp = response.ccp
* def ccp_numero_avviso = response.ccp

# Attivo il pagamento

* def tipoRicevuta = "R01"
* call read('classpath:utils/psp-attiva-rpt.feature')
* call read('classpath:utils/psp-paGetPayment.feature')
* match response.dati == esitoGetPayment

# Verifico la notifica di attivazione
Expand All @@ -262,16 +233,3 @@ And match response == read('classpath:test/api/backoffice/v1/pendenze/put/msg/pe
* match response.rpp[0].stato == 'RT_ACCETTATA_PA'
* match response.rpp[0].rt == '#notnull'


# ripristino dominio e stazione

* def dominioNdpSymPut = read('classpath:test/workflow/modello3/v2/msg/dominio.json')

* call read('classpath:utils/nodo-config-dominio-put.feature')

* def stazioneNdpSymPut = read('classpath:test/workflow/modello3/v2/msg/stazione.json')

* call read('classpath:utils/nodo-config-stazione-put.feature')



Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ Background:

* set intermediario.principalPagoPa = 'xxx'

* def stazioneNdpSymPut = read('classpath:test/workflow/modello3/v2/msg/stazione.json')
* def dominioNdpSymPut = read('classpath:test/workflow/modello3/v2/msg/dominio.json')

* def esitoVerifyPayment = read('classpath:test/workflow/modello3/v2/msg/verifyPayment-response-ok.json')
* def esitoGetPayment = read('classpath:test/workflow/modello3/v2/msg/getPayment-response-ok.json')

* def versionePagamento = 2

Given url backofficeBaseurl
And path 'intermediari', idIntermediario
And headers basicAutenticationHeader
Expand All @@ -36,52 +35,17 @@ Then assert responseStatus == 200 || responseStatus == 201

Scenario: Verifica pagamento

# Configurazione del simulatore

* set dominioNdpSymPut.versione = 2

* call read('classpath:utils/nodo-config-dominio-put.feature')

* call read('classpath:utils/nodo-config-stazione-put.feature')

* def numeroAvviso = '000000000000000000'
* call read('classpath:utils/psp-verifica-rpt.feature')
* call read('classpath:utils/psp-paVerifyPaymentNotice.feature')
* match response.faultBean == faultBean

# ripristino dominio e stazione

* def dominioNdpSymPut = read('classpath:test/workflow/modello3/v2/msg/dominio.json')

* call read('classpath:utils/nodo-config-dominio-put.feature')

* def stazioneNdpSymPut = read('classpath:test/workflow/modello3/v2/msg/stazione.json')

* call read('classpath:utils/nodo-config-stazione-put.feature')

Scenario: Attiva pagamento

# Configurazione del simulatore

* set dominioNdpSymPut.versione = 2

* call read('classpath:utils/nodo-config-dominio-put.feature')

* call read('classpath:utils/nodo-config-stazione-put.feature')

* def numeroAvviso = '000000000000000000'
* def iuv = '000000000000000'
* def ccp = '1'
* def importo = 10.01
* def tipoRicevuta = "R01"
* call read('classpath:utils/psp-attiva-rpt.feature')
* call read('classpath:utils/psp-paGetPayment.feature')
* match response.faultBean == faultBean

# ripristino dominio e stazione

* def dominioNdpSymPut = read('classpath:test/workflow/modello3/v2/msg/dominio.json')

* call read('classpath:utils/nodo-config-dominio-put.feature')

* def stazioneNdpSymPut = read('classpath:test/workflow/modello3/v2/msg/stazione.json')

* call read('classpath:utils/nodo-config-stazione-put.feature')
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,12 @@ Background:

* def idPendenza = getCurrentTimeMillis()
* def pendenzaPut = read('classpath:test/api/pendenza/v1/pendenze/put/msg/pendenza-put_monovoce_riferimento.json')
# * def esitoAttivaRPT = read('classpath:test/workflow/modello3/v1/msg/attiva-response-ok.json')
# * def esitoVerificaRPT = read('classpath:test/workflow/modello3/v1/msg/verifica-response-ok.json')
* configure followRedirects = false


* def stazioneNdpSymPut = read('classpath:test/workflow/modello3/v2/msg/stazione.json')
* def dominioNdpSymPut = read('classpath:test/workflow/modello3/v2/msg/dominio.json')

* def esitoVerifyPayment = read('classpath:test/workflow/modello3/v2/msg/verifyPayment-response-ok.json')
* def esitoGetPayment = read('classpath:test/workflow/modello3/v2/msg/getPayment-response-ok.json')

* def versionePagamento = 2

Scenario: Pagamento eseguito dovuto precaricato con verifica

Expand All @@ -43,25 +38,17 @@ Then assert responseStatus == 200 || responseStatus == 201

* call read('classpath:configurazione/v1/operazioni-resetCache.feature')

# Configurazione del simulatore

* set dominioNdpSymPut.versione = 2

* call read('classpath:utils/nodo-config-dominio-put.feature')

* call read('classpath:utils/nodo-config-stazione-put.feature')

# Verifico il pagamento

* call read('classpath:utils/psp-verifica-rpt.feature')
* call read('classpath:utils/psp-paVerifyPaymentNotice.feature')
* match response == esitoVerifyPayment
* def ccp = response.ccp
* def ccp_numero_avviso = response.ccp

# Attivo il pagamento

* def tipoRicevuta = "R01"
* call read('classpath:utils/psp-attiva-rpt.feature')
* call read('classpath:utils/psp-paGetPayment.feature')
* match response.dati == esitoGetPayment

# Verifico la notifica di attivazione
Expand Down Expand Up @@ -90,7 +77,7 @@ Then assert responseStatus == 200 || responseStatus == 201

# Verifico il pagamento

* call read('classpath:utils/psp-verifica-rpt.feature')
* call read('classpath:utils/psp-paVerifyPaymentNotice.feature')
* match response.faultBean ==
"""
{
Expand All @@ -107,12 +94,3 @@ Then assert responseStatus == 200 || responseStatus == 201
* def ccp = response.ccp
* def ccp_numero_avviso = response.ccp

# ripristino dominio e stazione

* def dominioNdpSymPut = read('classpath:test/workflow/modello3/v2/msg/dominio.json')

* call read('classpath:utils/nodo-config-dominio-put.feature')

* def stazioneNdpSymPut = read('classpath:test/workflow/modello3/v2/msg/stazione.json')

* call read('classpath:utils/nodo-config-stazione-put.feature')

0 comments on commit d9826a3

Please sign in to comment.