Examples of Konto


Examples of distrsys.rmi.bank.common.Konto

  public void testLoesche() throws BankException, RemoteException {
    float interest = 3.3f;
    String accountNumber = "123";
    bank.erzeuge_spar_konto(accountNumber, interest);
    bank.loesche(accountNumber);
    Konto konto = bank.finde(accountNumber);
    assertNull(konto);
  }
View Full Code Here

Examples of distrsys.rmi.bank.common.Konto

  {
    long balance = 1000;
    float interest = 3.3f;
    String accountNumber = "123";
    bank.erzeuge_spar_konto(accountNumber, interest);
    Konto konto = bank.finde(accountNumber);
    konto.einzahlen(balance);
    assertEquals(balance, konto.kontostand());
    bank.verzinsen();
    balance += (long)(balance*interest)/100;
    assertEquals(balance, konto.kontostand());
    bank.verzinsen();
    balance += (long)(balance*interest)/100;
    assertEquals(balance, konto.kontostand());
    bank.verzinsen();
    balance += (long)(balance*interest)/100;
    assertEquals(balance, konto.kontostand());
  }
View Full Code Here

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

Examples of org.kapott.hbci.structures.Konto

        }
    }
   
    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

Examples of org.kapott.hbci.structures.Konto

                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

Examples of org.kapott.hbci.structures.Konto

        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

Examples of org.kapott.hbci.structures.Konto

        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

Examples of org.kapott.hbci.structures.Konto

    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

Examples of org.kapott.hbci.structures.Konto

   * @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

Examples of org.kapott.hbci.structures.Konto

    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
TOP
Copyright © 2018 www.massapi.com. 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.