Skip to content

Commit

Permalink
Add updated_at and created_at to organization and member models
Browse files Browse the repository at this point in the history
  • Loading branch information
bgier-stytch committed May 24, 2024
1 parent 986108a commit df68876
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,18 @@ public data class Member
*/
@Json(name = "untrusted_metadata")
val untrustedMetadata: Map<String, Any?>? = 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)
Expand Down Expand Up @@ -489,6 +501,18 @@ public data class Organization
*/
@Json(name = "trusted_metadata")
val trustedMetadata: Map<String, Any?>? = 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.
*/
Expand Down
2 changes: 1 addition & 1 deletion stytch/src/main/kotlin/com/stytch/java/common/Version.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package com.stytch.java.common

internal const val VERSION = "4.5.0"
internal const val VERSION = "4.6.0"
2 changes: 1 addition & 1 deletion version.gradle.kts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "4.5.0"
version = "4.6.0"

0 comments on commit df68876

Please sign in to comment.