Skip to content

Commit

Permalink
support fints HKSAL#7
Browse files Browse the repository at this point in the history
  • Loading branch information
age-77 committed Oct 25, 2021
1 parent 2257b89 commit d135141
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import de.adorsys.multibanking.hbci.util.HbciErrorUtils;
import lombok.extern.slf4j.Slf4j;
import org.kapott.hbci.GV.GVSaldoReq;
import org.kapott.hbci.GV.GVSaldoReqSEPA;
import org.kapott.hbci.GV_Result.GVRSaldoReq;

@Slf4j
Expand All @@ -35,7 +36,12 @@ public LoadBalancesJob(TransactionRequest<LoadBalances> transactionRequest, Hbci

@Override
GVSaldoReq createHbciJob() {
GVSaldoReq hbciJob = new GVSaldoReq(dialog.getPassport());
GVSaldoReq hbciJob;
if (dialog.getPassport().jobSupported("Saldo")) {
hbciJob = new GVSaldoReq(dialog.getPassport());
} else {
hbciJob = new GVSaldoReqSEPA(dialog.getPassport());
}
hbciJob.setParam("my", getHbciKonto());
return hbciJob;
}
Expand Down

0 comments on commit d135141

Please sign in to comment.