Skip to content

Commit

Permalink
feat: Add legal consent related properties to user (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
octoper authored Oct 17, 2024
1 parent 1c70b6d commit 2a1f3f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions user.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ type User struct {
CreateOrganizationEnabled bool `json:"create_organization_enabled"`
CreateOrganizationsLimit *int `json:"create_organizations_limit,omitempty"`
LastActiveAt *int64 `json:"last_active_at"`
LegalAcceptedAt *int64 `json:"legal_accepted_at"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
Expand Down
6 changes: 6 additions & 0 deletions user/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ type CreateParams struct {
TOTPSecret *string `json:"totp_secret,omitempty"`
BackupCodes *[]string `json:"backup_codes,omitempty"`
// Specified in RFC3339 format
LegalAcceptedAt *string `json:"legal_accepted_at,omitempty"`
SkipLegalChecks *bool `json:"skip_legal_checks,omitempty"`
// Specified in RFC3339 format
CreatedAt *string `json:"created_at,omitempty"`
}

Expand Down Expand Up @@ -100,6 +103,9 @@ type UpdateParams struct {
CreateOrganizationEnabled *bool `json:"create_organization_enabled,omitempty"`
CreateOrganizationsLimit *int `json:"create_organizations_limit,omitempty"`
// Specified in RFC3339 format
LegalAcceptedAt *string `json:"legal_accepted_at,omitempty"`
SkipLegalChecks *bool `json:"skip_legal_checks,omitempty"`
// Specified in RFC3339 format
CreatedAt *string `json:"created_at,omitempty"`
}

Expand Down

0 comments on commit 2a1f3f6

Please sign in to comment.