From 685118cf63abd0ff4269af0ef924d9bebff0b91d Mon Sep 17 00:00:00 2001 From: nicolas lopes <57234795+NicolasLopes7@users.noreply.github.com> Date: Wed, 24 Jul 2024 14:41:41 -0300 Subject: [PATCH] feat: add CreateOrganizationsLimit field to user GET and UPDATE (#305) --- user.go | 1 + user/client.go | 1 + 2 files changed, 2 insertions(+) diff --git a/user.go b/user.go index b2b6b1a9..18227c37 100644 --- a/user.go +++ b/user.go @@ -35,6 +35,7 @@ type User struct { VerificationAttemptsRemaining *int64 `json:"verification_attempts_remaining"` DeleteSelfEnabled bool `json:"delete_self_enabled"` CreateOrganizationEnabled bool `json:"create_organization_enabled"` + CreateOrganizationsLimit *int `json:"create_organizations_limit,omitempty"` LastActiveAt *int64 `json:"last_active_at"` CreatedAt int64 `json:"created_at"` UpdatedAt int64 `json:"updated_at"` diff --git a/user/client.go b/user/client.go index b9222475..3e003a28 100644 --- a/user/client.go +++ b/user/client.go @@ -98,6 +98,7 @@ type UpdateParams struct { BackupCodes *[]string `json:"backup_codes,omitempty"` DeleteSelfEnabled *bool `json:"delete_self_enabled,omitempty"` CreateOrganizationEnabled *bool `json:"create_organization_enabled,omitempty"` + CreateOrganizationsLimit *int `json:"create_organizations_limit,omitempty"` // Specified in RFC3339 format CreatedAt *string `json:"created_at,omitempty"` }