layflags / elm-bic

Library for parsing Business Identifier Codes (BIC)

Home Page:https://package.elm-lang.org/packages/layflags/elm-bic/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Buy Me A Coffee

elm-bic

Build Status

This library is for parsing Business Identifier Codes (BIC) used e.g. in banking. The implementation is based on ISO 9362 Fourth edition 2014-12-01

Format of the BIC:
==================
PPPP CC SS BBB
  |   |  |  \___ Branch Identifier (3 alpha-numeric, optional)
  |   |  \______ Party Suffix (2 alpha-numeric)
  |   \_________ Country Code (ISO 3166-1 alpha 2)
  \_____________ Party Prefix (4 alpha-numeric)

Installation

elm install layflags/elm-bic

Usage

BIC.fromString "FDDO DE MM XXX" -- Ok (BIC "FDDO" Iso3166.DE "MM" Nothing)
BIC.toString bic -- "FDDODEMM"
BIC.toString11 bic -- "FDDODEMMXXX"

Credits

This package uses rl-king/elm-iso3166-country-codes for country code parsing.

License

BSD 3-Clause

About

Library for parsing Business Identifier Codes (BIC)

https://package.elm-lang.org/packages/layflags/elm-bic/latest/

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Elm 100.0%