Removed unused updateCustomer()

This commit is contained in:
dankito 2020-09-16 15:03:24 +02:00
parent f62f30dd8e
commit 3d33af68a1
1 changed files with 0 additions and 17 deletions

View File

@ -88,23 +88,6 @@ open class fints4kModelMapper(protected val modelCreator: IModelCreator) {
bank.selectedTanProcedure = findTanProcedure(bank, customer.selectedTanProcedure) ?: bank.selectedTanProcedure bank.selectedTanProcedure = findTanProcedure(bank, customer.selectedTanProcedure) ?: bank.selectedTanProcedure
} }
// TODO: move to a fints4k internal mapper
open fun updateCustomer(bank: BankData, updatedBank: BankData) {
bank.pin = updatedBank.pin
bank.customerName = updatedBank.customerName
bank.tanProceduresAvailableForUser = updatedBank.tanProceduresAvailableForUser
bank.selectedTanProcedure = updatedBank.selectedTanProcedure
bank.tanMedia = updatedBank.tanMedia
bank.updVersion = updatedBank.updVersion
bank.selectedLanguage = updatedBank.selectedLanguage
bank.customerSystemId = updatedBank.customerSystemId
bank.customerSystemStatus = updatedBank.customerSystemStatus
updateBankAccounts(bank, updatedBank.accounts)
}
open fun mapBankAccounts(customer: TypedCustomer, accountData: List<AccountData>): List<TypedBankAccount> { open fun mapBankAccounts(customer: TypedCustomer, accountData: List<AccountData>): List<TypedBankAccount> {
return accountData.mapIndexed { index, account -> return accountData.mapIndexed { index, account ->