1 min readMar 19, 2020
Hi!
Check my second article https://medium.com/citadele-bank-developers/sirikit-and-payment-domain-part-ii-639113f47cf1
There is a class QuickBalanceRequestHandler with handle… method. So inside it just add some filtering as
if let accountNickname = intent.accountNickname {
filteredAccounts = filteredAccounts.filter({ $0.nickname == accountNickname })
}
and
if intent.accountType != .unknown {
filteredAccounts = filteredAccounts.filter({ $0.accountType == intent.accountType })
}
This is working for me.
Let me know if you were able to figure it out. If not, I will try to add sample code on github and extend story (if medium allow it).