Implemented that all accounts from message get added to CustomerData
This commit is contained in:
parent
f55b84032e
commit
69f058b753
|
@ -790,8 +790,10 @@ open class FinTsClient @JvmOverloads constructor(
|
|||
}
|
||||
}
|
||||
|
||||
response.getFirstSegmentById<AccountInfo>(InstituteSegmentId.AccountInfo)?.let { accountInfo ->
|
||||
response.getSegmentsById<AccountInfo>(InstituteSegmentId.AccountInfo).forEach { accountInfo ->
|
||||
if (customer.iban == null && accountInfo.iban != null) {
|
||||
customer.iban = accountInfo.iban // TODO: remove and use that one from AccountData
|
||||
}
|
||||
|
||||
var accountHolderName = accountInfo.accountHolderName1
|
||||
accountInfo.accountHolderName2?.let {
|
||||
|
|
Loading…
Reference in New Issue