Skip to content

Commit

Permalink
role slug to send invitation
Browse files Browse the repository at this point in the history
  • Loading branch information
ameesha committed Mar 29, 2024
1 parent 57bb3a5 commit 49ea889
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/usermanagement/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ type SendInvitationOpts struct {
OrganizationID string `json:"organization_id,omitempty"`
ExpiresInDays int `json:"expires_in_days,omitempty"`
InviterUserID string `json:"inviter_user_id,omitempty"`
RoleSlug string `json:"role_slug,omitempty"`
}

type RevokeInvitationOpts struct {
Expand Down
1 change: 1 addition & 0 deletions pkg/usermanagement/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2285,6 +2285,7 @@ func TestSendInvitation(t *testing.T) {
OrganizationID: "org_123",
ExpiresInDays: 7,
InviterUserID: "user_123",
RoleSlug: "admin",
},
expected: Invitation{
ID: "invitation_123",
Expand Down
1 change: 1 addition & 0 deletions pkg/usermanagement/usermanagement_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,7 @@ func TestUsersSendInvitation(t *testing.T) {
OrganizationID: "org_123",
ExpiresInDays: 7,
InviterUserID: "user_123",
RoleSlug: "admin",
})

require.NoError(t, err)
Expand Down

0 comments on commit 49ea889

Please sign in to comment.