From 83c2882567ac021d0850cad2ba11914a330009e0 Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 8 Sep 2024 22:20:59 +0200 Subject: [PATCH] Added isReversal --- .../net/codinux/banking/fints/mapper/FinTsModelMapper.kt | 4 +++- .../net/dankito/banking/client/model/AccountTransaction.kt | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/fints4k/src/commonMain/kotlin/net/codinux/banking/fints/mapper/FinTsModelMapper.kt b/fints4k/src/commonMain/kotlin/net/codinux/banking/fints/mapper/FinTsModelMapper.kt index 02b481fd..17d334ba 100644 --- a/fints4k/src/commonMain/kotlin/net/codinux/banking/fints/mapper/FinTsModelMapper.kt +++ b/fints4k/src/commonMain/kotlin/net/codinux/banking/fints/mapper/FinTsModelMapper.kt @@ -129,7 +129,9 @@ open class FinTsModelMapper { transaction.referenceWithNoSpecialType, transaction.journalNumber, transaction.textKeyAddition, - transaction.orderReferenceNumber, transaction.referenceNumber + transaction.orderReferenceNumber, transaction.referenceNumber, + + transaction.isReversal ) } diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/client/model/AccountTransaction.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/client/model/AccountTransaction.kt index d8b2469f..712a06b0 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/client/model/AccountTransaction.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/client/model/AccountTransaction.kt @@ -46,7 +46,9 @@ open class AccountTransaction( val textKeyAddition: String?, val orderReferenceNumber: String?, - val referenceNumber: String? + val referenceNumber: String?, + + val isReversal: Boolean ) { // for object deserializers @@ -56,7 +58,7 @@ open class AccountTransaction( : this(amount, unparsedReference, bookingDate, valueDate, otherPartyName, otherPartyBankId, otherPartyAccountId, postingText, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, - null, null, null, null) + null, null, null, null, false) open val showOtherPartyName: Boolean