Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/layflags/elm-bic
Library for parsing Business Identifier Codes (BIC)
https://github.com/layflags/elm-bic
banking bic elm iso9362 package parser swift
Last synced: 27 days ago
JSON representation
Library for parsing Business Identifier Codes (BIC)
- Host: GitHub
- URL: https://github.com/layflags/elm-bic
- Owner: layflags
- License: bsd-3-clause
- Created: 2020-05-31T10:56:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-10T15:09:03.000Z (4 months ago)
- Last Synced: 2024-07-10T18:11:01.567Z (4 months ago)
- Topics: banking, bic, elm, iso9362, package, parser, swift
- Language: Elm
- Homepage: https://package.elm-lang.org/packages/layflags/elm-bic/latest/
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `elm-bic`
[![Build Status](https://travis-ci.org/layflags/elm-bic.svg?branch=master)](https://travis-ci.org/layflags/elm-bic)
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](https://www.iso.org/standard/60390.html)```
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
```elm
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`](https://package.elm-lang.org/packages/rl-king/elm-iso3166-country-codes/2.0.0/Iso3166) for country code parsing.
## License
[BSD 3-Clause](LICENSE)