Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyName = errors.New("name cannot be empty") ErrInvalidCharacterInName = errors.New("name contains an invalid character") ErrEmptyBankAccountNumber = errors.New("bank account number cannot be empty") ErrInvalidDashedBankAccountNumber = errors.New("bank account number in dashed format is malformed") ErrBankAccountNumberNotNumeric = errors.New("bank account number contains non numeric characters") ErrBankAccountNumberBankCodeInvalid = errors.New("bank account number contains an invalid bank code") ErrBankAccountNumberTooShort = errors.New("bank account number is too short") ErrBankAccountNumberTooLong = errors.New("bank account number is too long") ErrBankAccountNumberChecksumInvalid = errors.New("bank account number contains an invalid checksum") ErrEmptyCity = errors.New("city cannot be empty") ErrInvalidCharacterInCity = errors.New("city contains an invalid character") )
Functions ¶
This section is empty.
Types ¶
type Init ¶
func (Init) Format ¶
Format
Must be called only after a successful validation! Returns the same structure with expanded Bank account number.
func (Init) ToIPSString ¶
ToIPSString
Formats the data into an IPS string. The format is described here: https://ips.nbs.rs/PDF/pdfPreporukeValidacija.pdf
Click to show internal directories.
Click to hide internal directories.