This package provides common use cases for (Dutch) developers like (governmental API repsonse) models, formatters and Regex for common numbers within the Netherlands.
-
This packages has models for the API responses which you can create from the JSON response. The main classes are:
KVKapiSearchResponse
,KVKapiBasicProfile
,KVKapiNameProfile
andKVKapiLocationProfile
.To use the API you have to create a developers account on the KVK website. With the API key you can now request data from this API.
Please note: You have to validate the reponse by yourself with a .pem ceritificate. We use a NODEJS package on our server and then send it to the Flutter Client
-
This package has a model for the API response from the RDW. This API is open for everyone and does not use a type of authentication like an API key. With this model you can convert the JSON response.
This class has common Regex which checks if the provided string is valid. A few of the functions are:
- Is a valid KVK-number (bool)
- Is a valid BTW-number (bool)
- Is a valid IBAN-number (bool)
- Is a valid Postalcode (bool)
- And more
In the Netherlands we use the period.
and comma,
in the opposite way as the rest of the world. We use the comma as the divider between euro's and cents. So a thousand euro's is written like: €1.000,00 and a milion euro is written like: 1.000.000,00
This class provides simpleformatters to turn int
values in to formatted strings.
Feel free to help us improve this package by creating issues, pull request etc. For any questions you can email [email protected]