iban

package
v0.0.0-...-1328ba8 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CountryCodeDE is the German country code.
	CountryCodeDE = "DE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CountryCode

type CountryCode string

CountryCode is the country code of a Bank.

type IBAN

type IBAN struct {
	// contains filtered or unexported fields
}

IBAN represents an IBAN.

func GenerateForCountry

func GenerateForCountry(cc CountryCode) (*IBAN, error)

GenerateForCountry generates an IBAN for a random BankCode for the given Country.

func GenerateFromBankCode

func GenerateFromBankCode(cc CountryCode, bc string) (*IBAN, error)

GenerateFromBankCode generates an IBAN for the given bank and country code.

func (*IBAN) AccountNo

func (i *IBAN) AccountNo() string

AccountNo returns the account number.

func (*IBAN) BIC

func (i *IBAN) BIC() string

BIC returns the BIC of the IBAN.

func (*IBAN) BankCode

func (i *IBAN) BankCode() string

BankCode returns the BankCode of the IBAN.

func (*IBAN) CountryCode

func (i *IBAN) CountryCode() string

CountryCode returns the CountryCode.

func (*IBAN) String

func (i *IBAN) String() string

String returns the string representation of the IBAN.

Jump to

Keyboard shortcuts

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