From 8cc2f3bdcd4335448881d2a219a9f23fe3f1c12d Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 8 Sep 2024 18:31:02 +0200 Subject: [PATCH] Added timestamp at which TanChallenge was created --- .../kotlin/net/codinux/banking/fints/model/TanChallenge.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fints4k/src/commonMain/kotlin/net/codinux/banking/fints/model/TanChallenge.kt b/fints4k/src/commonMain/kotlin/net/codinux/banking/fints/model/TanChallenge.kt index bda1b202..f617df45 100644 --- a/fints4k/src/commonMain/kotlin/net/codinux/banking/fints/model/TanChallenge.kt +++ b/fints4k/src/commonMain/kotlin/net/codinux/banking/fints/model/TanChallenge.kt @@ -1,5 +1,7 @@ package net.codinux.banking.fints.model +import kotlinx.datetime.Clock +import kotlinx.datetime.Instant import net.codinux.banking.fints.messages.datenelemente.implementierte.tan.TanMedium import net.codinux.banking.fints.response.BankResponse import net.codinux.banking.fints.response.client.FinTsClientResponse @@ -12,7 +14,8 @@ open class TanChallenge( val tanMethod: TanMethod, val tanMediaIdentifier: String?, val bank: BankData, - val account: AccountData? = null + val account: AccountData? = null, + val timestamp: Instant = Clock.System.now() ) { var enterTanResult: EnterTanResult? = null