Package org.kapott.hbci.structures

Examples of org.kapott.hbci.structures.Konto


                String number=upd.getProperty(header+".KTV.number");

                if (number==null)
                    break;

                Konto entry=new Konto();
                entry.blz=upd.getProperty(header+".KTV.KIK.blz");
                entry.country=upd.getProperty(header+".KTV.KIK.country");
                entry.number=number;
                entry.subnumber=upd.getProperty(header+".KTV.subnumber");
                entry.curr=upd.getProperty(header+".cur");
View Full Code Here


        }
    }
   
    public final Konto getAccount(String number)
    {
        Konto ret=new Konto();
        ret.number=number;
        fillAccountInfo(ret);
       
        if (ret.blz==null) {
          // es wurde kein Konto-Objekt in getAccounts() gefunden
View Full Code Here

                String st_depot=Swift.getTagValue(onerecord,"97A",0);
                int pos1=st_depot.indexOf("//");
                int pos2=st_depot.indexOf("/",pos1+2);
                if (pos2<0)
                    pos2=st_depot.length();
                entry.depot=new Konto();
                entry.depot.blz=st_depot.substring(pos1+2,pos2);
                if (pos2 < st_depot.length())
                    entry.depot.number=st_depot.substring(pos2+1);
                getMainPassport().fillAccountInfo(entry.depot);
View Full Code Here

        this.curr=(byte)dtaus.charAt(127);
        if (this.curr!=CURR_DM && this.curr!=CURR_EUR) {
            throw new HBCI_Exception("*** Invalid currency: "+this.curr);
        }

        this.myAccount=new Konto("DE",myBLZ,myNumber);
        this.myAccount.curr=(this.curr==CURR_EUR)?"EUR":"DEM";
        this.myAccount.name=myName;
       
        // satz C beginn
        int posi=128;
       
        // schleife f�r einzelne auftr�ge (c-sets)
        while (true) {
            Transaction entry=new Transaction();
           
            if (dtaus.charAt(posi+4)!='C') {
                // gefundener abschnitt ist kein c-set
                break;
            }
           
            int setCLen=Integer.parseInt(dtaus.substring(posi,posi+4));
            posi+=4;
            HBCIUtils.log("SetCLen = "+setCLen+" data bytes (--> "+((setCLen-187)/29.0)+" extensions)", HBCIUtils.LOG_DEBUG);
           
            // "C" �berspringen
            posi++;
           
            // skip myBLZ
            posi+=8;
           
            String otherBLZ=dtaus.substring(posi,posi+8).trim();
            posi+=8;
           
            String otherNumber=dtaus.substring(posi,posi+10).trim();
            posi+=10;
          
            entry.internalCustomerId=dtaus.substring(posi+1,posi+1+11).trim();
            posi+=13;
           
            entry.key=dtaus.substring(posi,posi+2).trim();
            posi+=2;
           
            entry.addkey=dtaus.substring(posi,posi+3).trim();
            posi+=3;
           
            // skip bankintern
            posi++;
           
            String value_st=null;
            if (this.curr==CURR_EUR) {
                value_st=dtaus.substring(posi+29,posi+29+11).trim();
            } else {
                value_st=dtaus.substring(posi,posi+11).trim();
            }
            posi+=40;
           
            // skip reserve
            posi+=3;
           
            String otherName=dtaus.substring(posi,posi+27).trim();
            posi+=27;
           
            // skip fillbytes
            posi+=8;
           
            // skip myName
            posi+=27;
           
            entry.addUsage(dtaus.substring(posi,posi+27).trim());
            posi+=27;
           
            // skip w�hrung
            // TODO: hier konsistenz �berpr�fen
            posi++;
           
            // skip reserve
            posi+=2;
           
            int nofExtensions=Integer.parseInt(dtaus.substring(posi,posi+2));
            posi+=2;
            HBCIUtils.log("field 'nofExtensions' = "+nofExtensions,HBCIUtils.LOG_DEBUG);
           
            String otherName2=null;
            for (int i=0;i<nofExtensions;i++) {
                if ((posi%128)+29 > 128) {
                    posi=((posi/128)+1)*128;
                }
               
                String code=dtaus.substring(posi,posi+2).trim();
                posi+=2;
               
                String data=dtaus.substring(posi,posi+27).trim();
                posi+=27;
               
                if (code.equals("01")) {
                    otherName2=data;
                } else if (code.equals("02")) {
                    entry.addUsage(data);
                } else if (code.equals("03")) {
                    this.myAccount.name2=data;
                }
            }
            posi=((posi/128)+1)*128;
           
            entry.otherAccount=new Konto("DE",otherBLZ,otherNumber);
            entry.otherAccount.curr=(this.curr==CURR_EUR)?"EUR":"DEM";
            entry.otherAccount.name=otherName;
            entry.otherAccount.name2=otherName2;
            entry.value=new Value(Long.parseLong(value_st), (this.curr==CURR_EUR)?"EUR":"DEM");
           
View Full Code Here

        iban   = this.getLowlevelParam(prefix + "iban");

        if ((number == null || number.length() == 0) && (iban == null || iban.length() == 0))
          return null; // definitiv kein Konto vorhanden
      }
      Konto k = new Konto();
      k.number    = number;
      k.iban      = iban;
      k.bic       = this.getLowlevelParam(prefix + "bic");
      k.subnumber = this.getLowlevelParam(prefix + "subnumber");
      k.blz       = this.getLowlevelParam(prefix + "KIK.blz");
View Full Code Here

    protected void extractResults(HBCIMsgStatus msgstatus,String header,int idx)
    {
        Properties result=msgstatus.getData();
        GVRSaldoReq.Info info=new GVRSaldoReq.Info();

        info.konto=new Konto();
        info.konto.country=result.getProperty(header+".KTV.KIK.country");
        info.konto.blz=result.getProperty(header+".KTV.KIK.blz");
        info.konto.number=result.getProperty(header+".KTV.number");
        info.konto.subnumber=result.getProperty(header+".KTV.subnumber");
        info.konto.bic=result.getProperty(header+".KTV.bic");
View Full Code Here

   * @return das HBCI4Java Konto.
   * @throws RemoteException
   */
  public static Konto Address2HBCIKonto(Address adresse) throws RemoteException
  {
    Konto k = new Konto("DE",adresse.getBlz(),adresse.getKontonummer());
    k.name = adresse.getName();
    k.iban = adresse.getIban();
    k.bic  = adresse.getBic();
    return k;
  }
View Full Code Here

    while (buchungen.hasNext())
    {
      b = (SammelTransferBuchung) buchungen.next();
      final DTAUS.Transaction tr = dtaus.new Transaction();
     
      Konto other = new Konto("DE",b.getGegenkontoBLZ(),b.getGegenkontoNummer());
      other.name = b.getGegenkontoName();

      tr.otherAccount = other;
      tr.value = new Value(String.valueOf(b.getBetrag()));
     
View Full Code Here

                              //  2: Auftraggeberkonto muss angegeben werden, wenn im Gesch�ftsvorfall enthalten
                              String noa = secmechInfo.getProperty("needorderaccount","");
                              HBCIUtils.log("needorderaccount=" + noa,HBCIUtils.LOG_INFO);
                              if (noa.equals("2"))
                              {
                                Konto k = task.getOrderAccount();
                                if (k != null)
                                {
                                    HBCIUtils.log("applying orderaccount to HKTAN for " + task.getHBCICode(),HBCIUtils.LOG_INFO);
                                    hktan.setParam("orderaccount",k);
                                }
View Full Code Here

    protected void extractResults(HBCIMsgStatus msgstatus,String header,int idx)
    {
        Properties result=msgstatus.getData();
        GVRDauerList.Dauer entry=new GVRDauerList.Dauer();

        entry.my=new Konto();
        entry.my.country=result.getProperty(header+".My.KIK.country");
        entry.my.blz=result.getProperty(header+".My.KIK.blz");
        entry.my.number=result.getProperty(header+".My.number");
        entry.my.subnumber=result.getProperty(header+".My.subnumber");
        getMainPassport().fillAccountInfo(entry.my);

        entry.other=new Konto();
        entry.other.country=result.getProperty(header+".Other.KIK.country");
        entry.other.blz=result.getProperty(header+".Other.KIK.blz");
        entry.other.number=result.getProperty(header+".Other.number");
        entry.other.subnumber=result.getProperty(header+".Other.subnumber");
        entry.other.name=result.getProperty(header+".name");
View Full Code Here

TOP

Related Classes of org.kapott.hbci.structures.Konto

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.