-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: more granular details on vies faults (#6)
### Why? For different reasons, government databases sometimes can't respond to whether a `TaxId` is verified or unverified. The `VerificationStatus` is set to `Unavailable` upon such responses. However, more granular details should be provided to the client as some faults/errors are a result of their behaviour or should impact their behaviour. Examples would be when the client has been blocked or rate-limited. ### What changed? - Verification is extended with a `data` HashMap. - Faults are mapped into data - Successful responses are mapped into data as well (details like address etc)
- Loading branch information
Showing
2 changed files
with
42 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters