Added tanExpirationTime and challengeCreationTimestamp
This commit is contained in:
parent
4298fc9e40
commit
8f5024b169
|
@ -1,5 +1,8 @@
|
|||
package net.codinux.banking.client.model.tan
|
||||
|
||||
import kotlinx.datetime.Clock
|
||||
import kotlinx.datetime.Instant
|
||||
import kotlinx.datetime.LocalDateTime
|
||||
import net.codinux.banking.client.model.BankAccountViewInfo
|
||||
import net.codinux.banking.client.model.User
|
||||
import net.codinux.banking.client.model.BankViewInfo
|
||||
|
@ -42,7 +45,14 @@ open class TanChallenge(
|
|||
open val tanImage: TanImage? = null,
|
||||
open val flickerCode: FlickerCode? = null,
|
||||
open val user: BankViewInfo,
|
||||
open val account: BankAccountViewInfo? = null
|
||||
open val account: BankAccountViewInfo? = null,
|
||||
/**
|
||||
* Datum und Uhrzeit, bis zu welchem Zeitpunkt eine TAN auf Basis der gesendeten Challenge gültig ist. Nach Ablauf der Gültigkeitsdauer wird die entsprechende TAN entwertet.
|
||||
*
|
||||
* In server's time zone, that is Europe/Berlin.
|
||||
*/
|
||||
val tanExpirationTime: LocalDateTime? = null,
|
||||
val challengeCreationTimestamp: Instant = Clock.System.now()
|
||||
) {
|
||||
|
||||
@get:JsonIgnore
|
||||
|
|
Loading…
Reference in New Issue