Implemented BankDataMapper

This commit is contained in:
dankl 2019-10-13 19:30:27 +02:00 committed by dankito
parent be0b4f597a
commit 7c02b56388
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
package net.dankito.fints.model.mapper
import net.dankito.fints.messages.datenelemente.abgeleiteteformate.Laenderkennzeichen
import net.dankito.fints.model.BankData
import net.dankito.fints.model.BankInfo
open class BankDataMapper {
open fun mapFromBankInfo(bankInfo: BankInfo): BankData {
return BankData(
bankInfo.bankCode,
Laenderkennzeichen.Germany, // TODO: currently there are only German banks. But change this if ever other countries get supported
bankInfo.pinTanAddress ?: "",
name = bankInfo.name,
bic = bankInfo.bic
)
}
}