File tree Expand file tree Collapse file tree
src/main/kotlin/com/workos/usermanagement/models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonProperty
55import com.workos.usermanagement.types.OrganizationMembershipStatusEnumType
66
77/* *
8- * An organization membership is a top-level resource that represents a [User]’ s relationship
8+ * An organization membership is a top-level resource that represents a [User]' s relationship
99 * with an organization. A user may be a member of zero, one, or many organizations.
1010 *
1111 * @param id The unique ID of the organization membership.
@@ -16,6 +16,7 @@ import com.workos.usermanagement.types.OrganizationMembershipStatusEnumType
1616 * @param status Whether the organization membership is active or pending (see enum values in [OrganizationMembershipStatusEnumType]).
1717 * @param createdAt The timestamp when the user was created.
1818 * @param updatedAt The timestamp when the user was last updated.
19+ * @param customAttributes Custom attributes from the identity provider.
1920 */
2021data class OrganizationMembership @JsonCreator constructor(
2122 @JsonProperty(" id" )
@@ -40,5 +41,8 @@ data class OrganizationMembership @JsonCreator constructor(
4041 val createdAt : String ,
4142
4243 @JsonProperty(" updated_at" )
43- val updatedAt : String
44+ val updatedAt : String ,
45+
46+ @JsonProperty(" custom_attributes" )
47+ val customAttributes : Map <String , Any > = emptyMap()
4448)
You can’t perform that action at this time.
0 commit comments