001/*
002 * Copyright (C) 2014 konik.io
003 *
004 * This file is part of Konik library.
005 *
006 * Konik library is free software: you can redistribute it and/or modify
007 * it under the terms of the GNU Affero General Public License as published by
008 * the Free Software Foundation, either version 3 of the License, or
009 * (at your option) any later version.
010 *
011 * Konik library is distributed in the hope that it will be useful,
012 * but WITHOUT ANY WARRANTY; without even the implied warranty of
013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
014 * GNU Affero General Public License for more details.
015 *
016 * You should have received a copy of the GNU Affero General Public License
017 * along with Konik library.  If not, see <http://www.gnu.org/licenses/>.
018 */
019package io.konik.zugferd.entity;
020
021import javax.xml.bind.annotation.XmlAccessType;
022import javax.xml.bind.annotation.XmlAccessorType;
023import javax.xml.bind.annotation.XmlElement;
024import javax.xml.bind.annotation.XmlType;
025import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
026import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
027import java.io.Serializable;
028
029/**
030 * = The Financial Institution.
031 */
032@XmlAccessorType(XmlAccessType.FIELD)
033@XmlType(name = "", propOrder = { "bic", "germanBankleitzahl", "name" })
034public class FinancialInstitution implements Serializable {
035
036   @XmlElement(name = "BICID")
037   @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
038   private String bic;
039
040   @XmlElement(name = "GermanBankleitzahlID")
041   @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
042   private String germanBankleitzahl;
043
044   @XmlElement(name = "Name")
045   private String name;
046
047   FinancialInstitution() {
048      super();
049   }
050
051   /**
052    * Instantiates a new financial institution.
053    *
054    * @param bic the bic
055    */
056   public FinancialInstitution(String bic) {
057      super();
058      setBic(bic);
059   }
060
061   /**
062    * Gets the BIC.
063    * 
064    * @return the bic
065    */
066   public String getBic() {
067      return bic;
068   }
069
070   /**
071    * Sets the BIC.
072    *
073    * @param bic the new bic
074    * @return the financial institution
075    */
076   public FinancialInstitution setBic(String bic) {
077      this.bic = bic;
078      return this;
079   }
080
081   /**
082    * Gets the German bankleitzahl.
083    * 
084    * @return the german bankleitzahl
085    */
086   public String getGermanBankleitzahl() {
087      return germanBankleitzahl;
088   }
089
090   /**
091    * Sets the German bankleitzahl.
092    *
093    * @param germanBankleitzahl the new german bankleitzahl
094    * @return the financial institution
095    */
096   public FinancialInstitution setGermanBankleitzahl(String germanBankleitzahl) {
097      this.germanBankleitzahl = germanBankleitzahl;
098      return this;
099   }
100
101   /**
102    * Gets the financial institution name.
103    * 
104    * @return the name
105    */
106   public String getName() {
107      return name;
108   }
109
110   /**
111    * Sets the financial institution name.
112    *
113    * @param name the new bank name
114    * @return the financial institution name
115    */
116   public FinancialInstitution setName(String name) {
117      this.name = name;
118      return this;
119   }
120
121}