Updated that finTsServerAddress has been renamed to serverAddress

This commit is contained in:
dankito 2024-09-09 00:43:55 +02:00
parent 234084e627
commit ac6a257216
3 changed files with 5 additions and 5 deletions

View File

@ -49,7 +49,7 @@ class InMemoryBankingRepository(
account.bankCode, account.loginName, account.password, account.bankName, account.bic, account.customerName, account.userId,
// TODO: may fix someday and also add BankAccounts
emptyList(), account.selectedTanMethodIdentifier, emptyList(), account.selectedTanMediumIdentifier, emptyList(),
account.bankingGroup, account.finTsServerAddress,
account.bankingGroup, account.serverAddress,
account.userSetDisplayName, account.displayIndex,
account.iconUrl, account.wrongCredentialsEntered,
)

View File

@ -27,14 +27,14 @@ class UserEntity(
tanMedia: List<TanMedium> = listOf(),
bankingGroup: BankingGroup? = null,
finTsServerAddress: String,
serverAddress: String? = null,
userSetDisplayName: String? = null,
displayIndex: Int = 0,
iconUrl: String? = null,
wrongCredentialsEntered: Boolean = false
) : User(bankCode, loginName, password, bankName, bic, customerName, userId, accounts, selectedTanMethodIdentifier, tanMethods, selectedTanMediumIdentifier, tanMedia, bankingGroup, finTsServerAddress) {
) : User(bankCode, loginName, password, bankName, bic, customerName, userId, accounts, selectedTanMethodIdentifier, tanMethods, selectedTanMediumIdentifier, tanMedia, bankingGroup, serverAddress) {
init {
this.userSetDisplayName = userSetDisplayName
@ -50,7 +50,7 @@ class UserEntity(
user.bankCode, user.loginName, user.password, user.bankName, user.bic, user.customerName, user.userId,
bankAccounts,
user.selectedTanMethodIdentifier, user.tanMethods, user.selectedTanMediumIdentifier, user.tanMedia,
user.bankingGroup, user.finTsServerAddress,
user.bankingGroup, user.serverAddress,
user.userSetDisplayName, user.displayIndex,
user.iconUrl, user.wrongCredentialsEntered,
)

View File

@ -27,7 +27,7 @@ class SqliteBankingRepositoryTest {
val bankAccounts = listOf(
BankAccount("12345", null, null, null, "Monika Tester", BankAccountType.CheckingAccount, balance = Amount("12.34"), retrievedTransactionsFrom = LocalDate(2024, 5, 7), features = setOf(BankAccountFeatures.RetrieveBalance, BankAccountFeatures.InstantTransfer), serverTransactionsRetentionDays = 320)
)
val userAccount = User("12345678", "SupiDupiUser", "geheim", "Abzock-Bank", "ABCDDEBBXXX", "Monika Tester", accounts = bankAccounts, bankingGroup = BankingGroup.DKB, finTsServerAddress = "").apply {
val userAccount = User("12345678", "SupiDupiUser", "geheim", "Abzock-Bank", "ABCDDEBBXXX", "Monika Tester", accounts = bankAccounts, bankingGroup = BankingGroup.DKB, serverAddress = "").apply {
wrongCredentialsEntered = true
displayIndex = 99
}