bic

package
v0.0.0-...-4036001 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeListToJSON

func BeListToJSON(pdfPath string) error

func LoadAllCountries

func LoadAllCountries()

func LoadIbanRules

func LoadIbanRules(path string)

Types

type Bank

type Bank struct {
	Country string
	City    string
	Start   int
	End     int
	Name    string
	Swift   string
}

func GetSwiftBank

func GetSwiftBank(swift string) *Bank

func LoadBelgiumList

func LoadBelgiumList(jsonPath string) ([]Bank, error)

func LoadBelgiumListFromPDF

func LoadBelgiumListFromPDF(pdfPath string) ([]Bank, error)

func ParseBelgiumList

func ParseBelgiumList(pdfPath string) ([]Bank, error)

type Format

type Format struct {
	CountryCode    string
	Country        string
	IbanLength     int
	BankCodeLength int
}

func GetCountryRules

func GetCountryRules(country string) Format

type IbanInfo

type IbanInfo struct {
	Country  string
	Valid    bool
	IBAN     string
	BBAN     string
	BankCode int
	BankName string
	BankCity string
	Swift    string
}

func GetInfo

func GetInfo(ibanStr string) IbanInfo

type SwiftCountryFile

type SwiftCountryFile struct {
	Country     string
	CountryCode string `json:country_code`
	List        []Swifts
}

type Swifts

type Swifts struct {
	Id        int
	Bank      string
	City      string
	SwiftCode string `json:"swift_code"`
}

func LoadCountrySwifts

func LoadCountrySwifts(path string) []Swifts

Jump to

Keyboard shortcuts

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