iban

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IBAN

type IBAN string

IBAN represents an International Bank Account Number. It is defined by ISO 13616:2007

func NewGerman

func NewGerman(bankID, accountID string) (IBAN, error)

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) AccountID

func (i IBAN) AccountID() string

AccountID returns the parts of the IBAN which refer to the AccountID

func (IBAN) BankID

func (i IBAN) BankID() string

BankID returns the parts of the IBAN which refer to the bank institute ID

func (IBAN) CountryCode

func (i IBAN) CountryCode() string

CountryCode returns the country code used by the IBAN. The country code is defined by ISO 3166-1 alpha-2

func (IBAN) ProofNumber

func (i IBAN) ProofNumber() string

ProofNumber returns the used number to make a sanity check whether the IBAN is valid or not.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL