Added toString()

This commit is contained in:
dankito 2020-09-24 03:18:02 +02:00
parent c66f27d88b
commit b94c5d5cf5
1 changed files with 8 additions and 1 deletions

View File

@ -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
)
) {
override fun toString(): String {
return "${valueDate.format("dd.MM.yy")} $amount $otherPartyName"
}
}