Search in sources :

Example 1 with GroupHeader74

use of com.forgerock.openbanking.common.model.openbanking.obie.pain00200109.GroupHeader74 in project openbanking-aspsp by OpenBankingToolkit.

the class OBIEPainXmlReport1Builder method toReportGrpHeader.

private static GroupHeader74 toReportGrpHeader(com.forgerock.openbanking.common.model.openbanking.obie.pain001.Document paymentInitiationDocument) {
    GroupHeader48 consentGrpHdr = paymentInitiationDocument.getCstmrCdtTrfInitn().getGrpHdr();
    GroupHeader74 reportGrpHdr = new GroupHeader74();
    reportGrpHdr.setMsgId(UUID.randomUUID().toString());
    reportGrpHdr.setCreDtTm(consentGrpHdr.getCreDtTm());
    log.debug("Mapped payment file group header {} into report file group header: {}", consentGrpHdr, reportGrpHdr);
    return reportGrpHdr;
}
Also used : GroupHeader74(com.forgerock.openbanking.common.model.openbanking.obie.pain00200109.GroupHeader74) GroupHeader48(com.forgerock.openbanking.common.model.openbanking.obie.pain001.GroupHeader48)

Aggregations

GroupHeader48 (com.forgerock.openbanking.common.model.openbanking.obie.pain001.GroupHeader48)1 GroupHeader74 (com.forgerock.openbanking.common.model.openbanking.obie.pain00200109.GroupHeader74)1