Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IBAN ¶
type IBAN string
IBAN represents an International Bank Account Number. It is defined by ISO 13616:2007
func From ¶ added in v0.1.4
From creates an IBAN from the provided input. If the input is not a valid IBAN, it returns an error.
func NewGerman ¶
NewGerman calculates the Iban for the provided bankID and accountID. It will return an error if the accountID can not be parsed as int. It returns only valid german IBANs, as it is hard coded to use german settings.
func (IBAN) CountryCode ¶
CountryCode returns the country code used by the IBAN. The country code is defined by ISO 3166-1 alpha-2
func (IBAN) ProofNumber ¶
ProofNumber returns the used number to make a sanity check whether the IBAN is valid or not.
Click to show internal directories.
Click to hide internal directories.