Skip to content

Commit

Permalink
fix naming payeeInstitution
Browse files Browse the repository at this point in the history
  • Loading branch information
fparisitas committed Apr 16, 2024
1 parent 344d875 commit 8ef4ddf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void paaInviaRTKo(String payload) {

generatePaaInviaRTAndTrace(intestazionePPT, rt, objectFactory, stationDto, now);

PaymentServiceProviderDto psp = psps.get(rpt.getRpt().getPayerInstitution().getSubjectUniqueIdentifier().getCode());
PaymentServiceProviderDto psp = psps.get(rpt.getRpt().getPayeeInstitution().getSubjectUniqueIdentifier().getCode());

//generate and save re event internal for change status
ReEventDto reEventDto = generateReInternal(rptRequestEntity, rpt, receipt.getIdentificativoUnivocoVersamento(), receipt.getPaymentToken(), stationDto, psp);
Expand Down Expand Up @@ -139,7 +139,7 @@ public void paaInviaRTOk(String payload) {

generatePaaInviaRTAndTrace(intestazionePPT, rt, objectFactory, stationDto, now);

PaymentServiceProviderDto psp = psps.get(rpt.getRpt().getPayerInstitution().getSubjectUniqueIdentifier().getCode());
PaymentServiceProviderDto psp = psps.get(rpt.getRpt().getPayeeInstitution().getSubjectUniqueIdentifier().getCode());

//generate and save re event internal for change status
ReEventDto reEventDto = generateReInternal(rptRequestEntity,
Expand Down Expand Up @@ -170,7 +170,7 @@ private CtRicevutaTelematica generateCtRicevutaTelematica(RPTContentDTO rpt, Map
rtMapper.toCtDominio(ctDominio, rpt.getRpt().getDomain());

CtEnteBeneficiario ctEnteBeneficiario = objectFactory.createCtEnteBeneficiario();
rtMapper.toCtEnteBeneficiario(ctEnteBeneficiario, rpt.getRpt().getPayerInstitution());
rtMapper.toCtEnteBeneficiario(ctEnteBeneficiario, rpt.getRpt().getPayeeInstitution());

CtSoggettoPagatore ctSoggettoPagatore = objectFactory.createCtSoggettoPagatore();
rtMapper.toCtSoggettoPagatore(ctSoggettoPagatore, rpt.getRpt().getPayer());
Expand Down Expand Up @@ -200,7 +200,7 @@ private CtRicevutaTelematica generateCtRicevutaTelematica(RPTContentDTO rpt, PaS
rtMapper.toCtDominio(ctDominio, rpt.getRpt().getDomain());

CtEnteBeneficiario ctEnteBeneficiario = objectFactory.createCtEnteBeneficiario();
rtMapper.toCtEnteBeneficiario(ctEnteBeneficiario, rpt.getRpt().getPayerInstitution());
rtMapper.toCtEnteBeneficiario(ctEnteBeneficiario, rpt.getRpt().getPayeeInstitution());

CtSoggettoPagatore ctSoggettoPagatore = objectFactory.createCtSoggettoPagatore();
rtMapper.toCtSoggettoPagatore(ctSoggettoPagatore, paSendRTV2Request.getReceipt().getDebtor());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public interface RPTMapper {
@Mapping(source = "autenticazioneSoggetto", target = "subjectAuthentication")
@Mapping(source = "soggettoVersante", target = "debtor")
@Mapping(source = "soggettoPagatore", target = "payer")
@Mapping(source = "enteBeneficiario", target = "payerInstitution")
@Mapping(source = "enteBeneficiario", target = "payeeInstitution")
@Mapping(source = "datiVersamento", target = "transferData")
PaymentRequestDTO toPaymentRequestDTO(CtRichiestaPagamentoTelematico rpt);

Expand Down Expand Up @@ -57,7 +57,7 @@ public interface RPTMapper {
@Mapping(source = "localitaBeneficiario", target = "city")
@Mapping(source = "provinciaBeneficiario", target = "province")
@Mapping(source = "nazioneBeneficiario", target = "nation")
PaymentSubjectDTO toPaymentPayerInstitutionDTO(CtEnteBeneficiario enteBeneficiario);
PaymentSubjectDTO toPaymentPayeeInstitutionDTO(CtEnteBeneficiario enteBeneficiario);

@Mapping(source = "tipoIdentificativoUnivoco", target = "type")
@Mapping(source = "codiceIdentificativoUnivoco", target = "code")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void toCtIstitutoAttestante(@MappingTarget CtIstitutoAttestante ctIstitut
@Mapping(source = "city", target = "localitaBeneficiario")
@Mapping(source = "province", target = "provinciaBeneficiario")
@Mapping(source = "nation", target = "nazioneBeneficiario")
public abstract void toCtEnteBeneficiario(@MappingTarget CtEnteBeneficiario ctEnteBeneficiario, PaymentSubjectDTO payerInstitution);
public abstract void toCtEnteBeneficiario(@MappingTarget CtEnteBeneficiario ctEnteBeneficiario, PaymentSubjectDTO payeeInstitution);

@Mapping(source = "subjectUniqueIdentifier", target = "identificativoUnivocoPagatore")
@Mapping(source = "name", target = "anagraficaPagatore")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ public class PaymentRequestDTO {
private SubjectAuthentication subjectAuthentication;
private PaymentSubjectDTO debtor; // versante
private PaymentSubjectDTO payer; // pagatore
private PaymentSubjectDTO payerInstitution;
private PaymentSubjectDTO payeeInstitution;
private TransferDataDTO transferData;
}

0 comments on commit 8ef4ddf

Please sign in to comment.