Documentation ¶
Index ¶
- Variables
- func Validate(value string) error
- type Iban
- func (i *Iban) AccountNumber() string
- func (i *Iban) AccountType() string
- func (i *Iban) BankCode() string
- func (i *Iban) Bban() string
- func (i *Iban) BranchCode() string
- func (i *Iban) CheckDigit() string
- func (i *Iban) CountryCode() string
- func (i *Iban) IdentificationNumber() string
- func (i *Iban) NationalCheckDigit() string
- func (i *Iban) OwnerAccountType() string
- func (i *Iban) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrIbanTooShort = errors.New("iban: iban too short") ErrCountryCodeNotUpper = errors.New("iban: country code contains lowercase letters") ErrCountryCodeNotAlpha = errors.New("iban: country code contains non alphabetic letters") ErrCountryCodeNotPresent = errors.New("iban: country code does not exist") ErrInvalidCheckDigit = errors.New("iban: invalid check digit") ErrInvalidIbanModulo = errors.New("iban: invalid modulo") ErrInvalidBbanLength = errors.New("iban: invalid bban length") ErrInvalidBbanPart = errors.New("iban: invalid bban part") )
Error codes returned by failures to validate an iban.
Functions ¶
Types ¶
type Iban ¶
type Iban struct {
// contains filtered or unexported fields
}
Iban represents iban code.
func (*Iban) AccountNumber ¶
AccountNumber returns account number of iban.
func (*Iban) AccountType ¶
AccountType returns account type of iban.
func (*Iban) BranchCode ¶
BranchCode returns branch code of iban.
func (*Iban) CheckDigit ¶
CheckDigit returns check digit of iban.
func (*Iban) CountryCode ¶
CountryCode returns country code of iban.
func (*Iban) IdentificationNumber ¶
IdentificationNumber returns identification number of iban.
func (*Iban) NationalCheckDigit ¶
NationalCheckDigit returns national check digit of iban.
func (*Iban) OwnerAccountType ¶
OwnerAccountType returns owner account type of iban.
Click to show internal directories.
Click to hide internal directories.