Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add legal consent related properties to user #339

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading