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, account.bankCode, account.loginName, account.password, account.bankName, account.bic, account.customerName, account.userId,
// TODO: may fix someday and also add BankAccounts // TODO: may fix someday and also add BankAccounts
emptyList(), account.selectedTanMethodIdentifier, emptyList(), account.selectedTanMediumIdentifier, emptyList(), emptyList(), account.selectedTanMethodIdentifier, emptyList(), account.selectedTanMediumIdentifier, emptyList(),
account.bankingGroup, account.finTsServerAddress, account.bankingGroup, account.serverAddress,
account.userSetDisplayName, account.displayIndex, account.userSetDisplayName, account.displayIndex,
account.iconUrl, account.wrongCredentialsEntered, account.iconUrl, account.wrongCredentialsEntered,
) )

View File

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

View File

@ -27,7 +27,7 @@ class SqliteBankingRepositoryTest {
val bankAccounts = listOf( 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) 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 wrongCredentialsEntered = true
displayIndex = 99 displayIndex = 99
} }