Class BankDetails

    • Field Detail

      • IBAN

        protected java.lang.String IBAN
        the bank account number
      • BIC

        protected java.lang.String BIC
        BIC, I believe it's optional
      • accountName

        protected java.lang.String accountName
        the "name" of the bank account (holder)
      • paymentMeansCode

        protected java.lang.String paymentMeansCode
        payment means code
      • paymentMeansInformation

        protected java.lang.String paymentMeansInformation
        payment means information
    • Constructor Detail

      • BankDetails

        public BankDetails()
        bean constructor
      • BankDetails

        public BankDetails​(java.lang.String IBAN)
        constructor for IBAN only :-)
        Parameters:
        IBAN - the IBAN as string
      • BankDetails

        public BankDetails​(java.lang.String IBAN,
                           java.lang.String BIC)
        constructor for normal use :-)
        Parameters:
        IBAN - the IBAN as string
        BIC - the BIC code as string
    • Method Detail

      • getIBAN

        public java.lang.String getIBAN()
        getter for the IBAN
        Returns:
        IBAN
      • setIBAN

        public BankDetails setIBAN​(java.lang.String IBAN)
        Sets the IBAN "ID", which means that it only needs to be a way to uniquely identify the IBAN. Of course you will specify your own IBAN in full length but if you deduct from a customer's account you may e.g. leave out the first or last digits so that nobody spying on the invoice gets to know the complete number
        Parameters:
        IBAN - the "IBAN ID", i.e. the IBAN or parts of it
        Returns:
        fluent setter
      • getBIC

        public java.lang.String getBIC()
        getter for the BIC
        Returns:
        the BIC
      • setBIC

        public BankDetails setBIC​(java.lang.String BIC)
        The bank identifier. Bank name is no longer neccessary in SEPA.
        Parameters:
        BIC - the bic code
        Returns:
        fluent setter
      • setAccountName

        public BankDetails setAccountName​(java.lang.String name)
        set Holder
        Parameters:
        name - account name (usually account holder if != sender)
        Returns:
        fluent setter
      • setPaymentMeansCode

        public BankDetails setPaymentMeansCode​(java.lang.String paymentMeansCode)
        set payment means code
        Parameters:
        paymentMeansCode - the payment means code
        Returns:
        fluent setter
      • setPaymentMeansInformation

        public BankDetails setPaymentMeansInformation​(java.lang.String paymentMeansInformation)
        set payment means information
        Parameters:
        paymentMeansInformation - the payment mean information
        Returns:
        fluent setter