Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

SEPA 2.7: Bei nicht vorhandener BIC "NOTPROVIDED" im "Othr"-Element s…

…enden. Siehe Lastschrift (dort war es bereits implementiert)
  • Loading branch information...
willuhn committed Feb 8, 2014
1 parent 6c38e0e commit cd130fb06e910f915ea3c5feab1376006ca88131
Showing with 12 additions and 1 deletion.
  1. +12 −1 src/org/kapott/hbci/GV/generators/GenUebSEPA00100303.java
@@ -27,6 +27,8 @@
import org.kapott.hbci.sepa.jaxb.pain_001_003_03.FinancialInstitutionIdentificationSEPA3;
import org.kapott.hbci.sepa.jaxb.pain_001_003_03.GroupHeaderSCT;
import org.kapott.hbci.sepa.jaxb.pain_001_003_03.ObjectFactory;
import org.kapott.hbci.sepa.jaxb.pain_001_003_03.OthrIdentification;
import org.kapott.hbci.sepa.jaxb.pain_001_003_03.OthrIdentificationCode;
import org.kapott.hbci.sepa.jaxb.pain_001_003_03.PartyIdentificationSEPA1;
import org.kapott.hbci.sepa.jaxb.pain_001_003_03.PartyIdentificationSEPA2;
import org.kapott.hbci.sepa.jaxb.pain_001_003_03.PaymentIdentificationSEPA;
@@ -115,7 +117,16 @@ public void generate(Properties sepaParams, OutputStream os, boolean validate) t

//Payment Information - DebtorAgent
pmtInf.getDbtrAgt().setFinInstnId(new FinancialInstitutionIdentificationSEPA3());
pmtInf.getDbtrAgt().getFinInstnId().setBIC(sepaParams.getProperty("src.bic"));
String srcBic = sepaParams.getProperty("src.bic");
if (srcBic != null && srcBic.length() > 0) // BIC ist inzwischen optional
{
pmtInf.getDbtrAgt().getFinInstnId().setBIC(srcBic);
}
else
{
pmtInf.getDbtrAgt().getFinInstnId().setOthr(new OthrIdentification());
pmtInf.getDbtrAgt().getFinInstnId().getOthr().setId(OthrIdentificationCode.NOTPROVIDED);
}


//Payment Information - ChargeBearer

0 comments on commit cd130fb

Please sign in to comment.
You can’t perform that action at this time.