com.fintecsystems.xs2a.java.models.api.users.AccessToken.kt Maven / Gradle / Ivy
The newest version!
package com.fintecsystems.xs2a.java.models.api.users
import com.squareup.moshi.Json
import java.time.OffsetDateTime
/**
*
* @param id access Token ID
* @param token The Access Token
* @param validUntil The date-time this token expires. Note that the access token is valid for one hour. After one hour you have to refresh the token, to be valid another hour.
* @param createdAt Date of creation
*/
data class AccessToken(
/* access Token ID */
@Json(name = "id")
var id: String,
/* The Access Token */
@Json(name = "token")
var token: String,
/* The date-time this token expires. Note that the access token is valid for one hour. After one hour you have to refresh the token, to be valid another hour. */
@Json(name = "valid_until")
var validUntil: OffsetDateTime? = null,
/* Date of creation */
@Json(name = "created_at")
var createdAt: OffsetDateTime,
)