Updated that finTsServerAddress has been renamed to serverAddress
This commit is contained in:
parent
234084e627
commit
ac6a257216
|
@ -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,
|
||||||
)
|
)
|
||||||
|
|
|
@ -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,
|
||||||
)
|
)
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue