Releases: insurello/elm-swedish-bank-account-number
Releases · insurello/elm-swedish-bank-account-number
Add Lunar Bank to Bankgirosystemet
Add Aion Bank and rename two banks
2.0.2 Add Aion Bank and rename two banks
Fix leading zero
Fixed: Previously, typing 01234
was considered valid and treated as 1234
but the parsed clearing number contained the leading zero, which is not valid. Now, that leading zero is correctly removed. We do that instead of giving an error, because the instructions for the clearing number typically say “4-5 digits” and a number like 01234
is 5 digits and feels valid to a human.
2.0.0
This release adds two new banks:
- Ferratum Bank
- Lunar Bank
It also changes the return type of SwedishBankAccountNumber.ClearingNumber.fromString
:
- fromString : String -> Result Error ClearingNumber
+ fromString : String -> Result Error ( Category, ClearingNumber )
In other words, you get back not only a ClearingNumber
but also a Category
that looks like this:
type Category
= Standard
| DataclearingOnly
| Historical
The banks are categorized as follows:
DataclearingOnly
: Avanza, BlueStep, Landshypotek, Lunar, Lån & Spar, Nordax, Santander.Historical
: Forex, MedMera.Standard
: Everything else (most of them).
Here’s how to handle the different categories:
Standard
: The bank is active, and part of both the Bankgiro and Data clearing systems. All is good to go!DataclearingOnly
: The bank is active, part of the Data clearing system, but not part of the Bankgiro system. They are marked with “(deltar endast i Dataclearingen, ej i Bankgirosystemet)” in Bankgirot’s PDF. (Bankgirot is a Swedish Clearing organization, while “Dataclearingen” is a transfer system owned by the Swedish Bankers’ Association.) If your system only can make Bankgiro transfers, you might want to show an error message for this category.Historical
: You probably want to show a nice error message saying that the bank does not exist anymore.
Fix logo in readme
No code changes.
Add Northmill Bank
Details: #1 (comment)