From b94c5d5cf5433e2e1a091db9f3f42abbc3866d07 Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 24 Sep 2020 03:18:02 +0200 Subject: [PATCH] Added toString() --- .../dankito/banking/fints/model/CreditCardTransaction.kt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/CreditCardTransaction.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/CreditCardTransaction.kt index 1d6d76de..d29a70bd 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/CreditCardTransaction.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/CreditCardTransaction.kt @@ -1,6 +1,7 @@ package net.dankito.banking.fints.model import net.dankito.utils.multiplatform.Date +import net.dankito.utils.multiplatform.format open class CreditCardTransaction( @@ -9,4 +10,10 @@ open class CreditCardTransaction( val bookingDate: Date, val valueDate: Date, val isCleared: Boolean -) \ No newline at end of file +) { + + override fun toString(): String { + return "${valueDate.format("dd.MM.yy")} $amount $otherPartyName" + } + +} \ No newline at end of file