From df688769cb129172e175881139bcfdf1d1ebbcdf Mon Sep 17 00:00:00 2001 From: Brandon Gier Date: Fri, 24 May 2024 15:24:20 -0700 Subject: [PATCH] Add updated_at and created_at to organization and member models --- .../b2b/models/organizations/Organizations.kt | 24 +++++++++++++++++++ .../kotlin/com/stytch/java/common/Version.kt | 2 +- version.gradle.kts | 2 +- 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/stytch/src/main/kotlin/com/stytch/java/b2b/models/organizations/Organizations.kt b/stytch/src/main/kotlin/com/stytch/java/b2b/models/organizations/Organizations.kt index 90c20db..3b3f37f 100644 --- a/stytch/src/main/kotlin/com/stytch/java/b2b/models/organizations/Organizations.kt +++ b/stytch/src/main/kotlin/com/stytch/java/b2b/models/organizations/Organizations.kt @@ -216,6 +216,18 @@ public data class Member */ @Json(name = "untrusted_metadata") val untrustedMetadata: Map? = emptyMap(), + /** + * The timestamp of the Member's creation. Values conform to the RFC 3339 standard and are expressed in UTC, e.g. + * `2021-12-29T12:33:09Z`. + */ + @Json(name = "created_at") + val createdAt: Instant? = null, + /** + * The timestamp of when the Member was last updated. Values conform to the RFC 3339 standard and are expressed in UTC, + * e.g. `2021-12-29T12:33:09Z`. + */ + @Json(name = "updated_at") + val updatedAt: Instant? = null, ) @JsonClass(generateAdapter = true) @@ -489,6 +501,18 @@ public data class Organization */ @Json(name = "trusted_metadata") val trustedMetadata: Map? = emptyMap(), + /** + * The timestamp of the Organization's creation. Values conform to the RFC 3339 standard and are expressed in UTC, e.g. + * `2021-12-29T12:33:09Z`. + */ + @Json(name = "created_at") + val createdAt: Instant? = null, + /** + * The timestamp of when the Organization was last updated. Values conform to the RFC 3339 standard and are expressed in + * UTC, e.g. `2021-12-29T12:33:09Z`. + */ + @Json(name = "updated_at") + val updatedAt: Instant? = null, /** * The default connection used for SSO when there are multiple active connections. */ diff --git a/stytch/src/main/kotlin/com/stytch/java/common/Version.kt b/stytch/src/main/kotlin/com/stytch/java/common/Version.kt index 932ec4a..244086d 100644 --- a/stytch/src/main/kotlin/com/stytch/java/common/Version.kt +++ b/stytch/src/main/kotlin/com/stytch/java/common/Version.kt @@ -1,3 +1,3 @@ package com.stytch.java.common -internal const val VERSION = "4.5.0" +internal const val VERSION = "4.6.0" diff --git a/version.gradle.kts b/version.gradle.kts index 03a3882..bee425c 100644 --- a/version.gradle.kts +++ b/version.gradle.kts @@ -1 +1 @@ -version = "4.5.0" +version = "4.6.0"