Updated to new signatures
This commit is contained in:
parent
30b6a0dec1
commit
54c82482ed
|
@ -23,7 +23,7 @@ open class DtoMapper {
|
|||
protected open fun map(bank: BankData): BankResponseDto {
|
||||
return BankResponseDto(
|
||||
bank.bankCode,
|
||||
bank.userName,
|
||||
bank.customerId,
|
||||
bank.finTs3ServerAddress,
|
||||
bank.bic,
|
||||
bank.bankName,
|
||||
|
@ -47,8 +47,8 @@ open class DtoMapper {
|
|||
val bookedTransactions = map(retrievedData.bookedTransactions)
|
||||
|
||||
return GetAccountTransactionsResponseDto(
|
||||
retrievedData.accountData.accountIdentifier,
|
||||
retrievedData.accountData.productName,
|
||||
retrievedData.account.accountIdentifier,
|
||||
retrievedData.account.productName,
|
||||
accountTransactions.successful,
|
||||
mapErrorMessage(accountTransactions),
|
||||
balance,
|
||||
|
@ -63,19 +63,20 @@ open class DtoMapper {
|
|||
}
|
||||
|
||||
protected open fun map(accountData: RetrievedAccountData): BankAccountResponseDto {
|
||||
val account = accountData.account
|
||||
|
||||
return BankAccountResponseDto(
|
||||
accountData.accountData.accountIdentifier,
|
||||
accountData.accountData.subAccountAttribute,
|
||||
accountData.accountData.iban,
|
||||
accountData.accountData.userName,
|
||||
accountData.accountData.accountType,
|
||||
accountData.accountData.currency,
|
||||
accountData.accountData.accountHolderName,
|
||||
accountData.accountData.productName,
|
||||
accountData.accountData.supportsRetrievingBalance,
|
||||
accountData.accountData.supportsRetrievingAccountTransactions,
|
||||
accountData.accountData.supportsTransferringMoney,
|
||||
accountData.accountData.supportsRealTimeTransfer,
|
||||
account.accountIdentifier,
|
||||
account.subAccountAttribute,
|
||||
account.iban,
|
||||
account.accountType,
|
||||
account.currency,
|
||||
account.accountHolderName,
|
||||
account.productName,
|
||||
account.supportsRetrievingBalance,
|
||||
account.supportsRetrievingAccountTransactions,
|
||||
account.supportsTransferringMoney,
|
||||
account.supportsRealTimeTransfer,
|
||||
accountData.successfullyRetrievedData,
|
||||
mapNullable(accountData.balance),
|
||||
accountData.retrievedTransactionsFrom,
|
||||
|
|
|
@ -10,6 +10,6 @@ open class TanMethodResponseDto(
|
|||
open val type: TanMethodType,
|
||||
open val hhdVersion: String? = null,
|
||||
open val maxTanInputLength: Int? = null,
|
||||
open val allowedTanFormat: AllowedTanFormat = AllowedTanFormat.Alphanumeric,
|
||||
open val allowedTanFormat: AllowedTanFormat? = null,
|
||||
open val nameOfTanMediumRequired: Boolean = false
|
||||
)
|
|
@ -39,7 +39,7 @@ class fints4kService {
|
|||
// TODO: as in most cases we really just want the account data, so just retrieve these without balances and transactions
|
||||
protected fun getAccountData(bank: BankData): AddAccountResponse {
|
||||
return getAsyncResponse { client, responseRetrieved ->
|
||||
client.addAccountAsync(bank) { response ->
|
||||
client.addAccountAsync(AddAccountParameter(bank)) { response ->
|
||||
responseRetrieved(response)
|
||||
}
|
||||
}
|
||||
|
@ -102,7 +102,8 @@ class fints4kService {
|
|||
|
||||
val tanRequestId = UUID.randomUUID().toString()
|
||||
|
||||
originatingRequestResult.set(EnteringTanRequested(tanRequestId, bank, tanChallenge))
|
||||
// TODO: find a solution for returning TAN challenge to caller
|
||||
//originatingRequestResult.set(EnteringTanRequested(tanRequestId, bank, tanChallenge))
|
||||
originatingRequestLatch.countDown()
|
||||
|
||||
tanRequests.put(tanRequestId, EnterTanContext(enterTanResult, enterTanLatch))
|
||||
|
|
Loading…
Reference in New Issue