de.adorsys.multibanking.hbci.model.HbciDialogRequestMapperImpl Maven / Gradle / Ivy
The newest version!
package de.adorsys.multibanking.hbci.model;
import de.adorsys.multibanking.domain.request.AbstractRequest;
import de.adorsys.multibanking.hbci.HbciBpdCacheHolder;
import javax.annotation.processing.Generated;
import org.kapott.hbci.callback.HBCICallback;
@Generated(
value = "org.mapstruct.ap.MappingProcessor",
date = "2023-07-11T07:41:10+0000",
comments = "version: 1.4.1.Final, compiler: javac, environment: Java 11.0.19 (Azul Systems, Inc.)"
)
public class HbciDialogRequestMapperImpl implements HbciDialogRequestMapper {
@Override
public HbciDialogRequest toHbciDialogRequest(AbstractRequest transactionRequest, HBCICallback callback) {
if ( transactionRequest == null && callback == null ) {
return null;
}
HbciDialogRequest hbciDialogRequest = new HbciDialogRequest();
if ( transactionRequest != null ) {
hbciDialogRequest.setBankApiUser( transactionRequest.getBankApiUser() );
hbciDialogRequest.setBankAccess( transactionRequest.getBankAccess() );
hbciDialogRequest.setBank( transactionRequest.getBank() );
hbciDialogRequest.setSepaVersion( transactionRequest.getSepaVersion() );
hbciDialogRequest.setBankApiConsentData( transactionRequest.getBankApiConsentData() );
hbciDialogRequest.setAuthorisationCode( transactionRequest.getAuthorisationCode() );
}
if ( callback != null ) {
hbciDialogRequest.setCallback( callback );
}
return hbciDialogRequest;
}
}