In this plugin, we do the following for DD:
- We receive a national identification number
- We fetch all available customer relationships for all registered banks from KAR
- We iterate through each and every bank
- We fetch a list of accounts per bank
- For each account, we use the field accountReference to ask for account details
- Then we do some mapping and return all the accounts with balance for that bank
- We return all accounts with balance for all the banks the person had a customer relationship with
We need to change step 5, because accountReference can now be "dataNotDelivered", which means that there is no point of asking for the details for that account.
We just need to fail that account if it has "dataNotDelivered". However, keep the accountReference (if easy and possible) "dataNotDelivered" in the returned account to DD, so DD can possibly display something different for the end user.
In this plugin, we do the following for DD:
We need to change step 5, because accountReference can now be "dataNotDelivered", which means that there is no point of asking for the details for that account.
We just need to fail that account if it has "dataNotDelivered". However, keep the accountReference (if easy and possible) "dataNotDelivered" in the returned account to DD, so DD can possibly display something different for the end user.