From ab35c7f49fd63b0b0032208e41b00ff7da103b3f Mon Sep 17 00:00:00 2001 From: dankito Date: Sat, 17 Apr 2021 17:16:08 +0200 Subject: [PATCH] Added currency and bookingDate to AccountTransactionResponseDto --- .../kotlin/net/dankito/banking/fints/rest/mapper/DtoMapper.kt | 2 ++ .../rest/model/dto/response/AccountTransactionResponseDto.kt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/rest/fints4kRest/src/main/kotlin/net/dankito/banking/fints/rest/mapper/DtoMapper.kt b/rest/fints4kRest/src/main/kotlin/net/dankito/banking/fints/rest/mapper/DtoMapper.kt index 1b91366d..a9a7184f 100644 --- a/rest/fints4kRest/src/main/kotlin/net/dankito/banking/fints/rest/mapper/DtoMapper.kt +++ b/rest/fints4kRest/src/main/kotlin/net/dankito/banking/fints/rest/mapper/DtoMapper.kt @@ -94,7 +94,9 @@ open class DtoMapper { protected open fun map(transaction: AccountTransaction): AccountTransactionResponseDto { return AccountTransactionResponseDto( map(transaction.amount), + transaction.amount.currency.code, transaction.reference, + transaction.bookingDate, transaction.otherPartyName, transaction.otherPartyBankCode, transaction.otherPartyAccountId, diff --git a/rest/fints4kRest/src/main/kotlin/net/dankito/banking/fints/rest/model/dto/response/AccountTransactionResponseDto.kt b/rest/fints4kRest/src/main/kotlin/net/dankito/banking/fints/rest/model/dto/response/AccountTransactionResponseDto.kt index 6440df66..867b923b 100644 --- a/rest/fints4kRest/src/main/kotlin/net/dankito/banking/fints/rest/model/dto/response/AccountTransactionResponseDto.kt +++ b/rest/fints4kRest/src/main/kotlin/net/dankito/banking/fints/rest/model/dto/response/AccountTransactionResponseDto.kt @@ -6,7 +6,9 @@ import java.math.BigDecimal open class AccountTransactionResponseDto( open val amount: BigDecimal, + open val currency: String, open val reference: String, + open val bookingDate: Date, open val otherPartyName: String?, open val otherPartyBankCode: String?, open val otherPartyAccountId: String?,