-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Authenticate methods updates * Add UpdateUser and UpdateUserPassword * Add DeleteUser * Ignore Id for serialization and fix descriptions * merge main * Fix description
- Loading branch information
Patrick
committed
Aug 31, 2023
1 parent
858efe0
commit 8b42557
Showing
4 changed files
with
191 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/WorkOS.net/Services/UserManagement/_interfaces/UpdateUserOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
namespace WorkOS | ||
{ | ||
using Newtonsoft.Json; | ||
|
||
/// <summary> | ||
/// The parameters to update the user. | ||
/// </summary> | ||
public class UpdateUserOptions : BaseOptions | ||
{ | ||
/// <summary> | ||
/// The ID of the user. | ||
/// </summary> | ||
[JsonIgnore] | ||
public string Id { get; set; } | ||
|
||
/// <summary> | ||
/// The email address of the user. | ||
/// </summary> | ||
[JsonProperty("email")] | ||
public string Email { get; set; } | ||
|
||
/// <summary> | ||
/// The user's first name. | ||
/// </summary> | ||
[JsonProperty("first_name")] | ||
public string FirstName { get; set; } | ||
|
||
/// <summary> | ||
/// The user's last name. | ||
/// </summary> | ||
[JsonProperty("last_name")] | ||
public string LastName { get; set; } | ||
|
||
/// <summary> | ||
/// Whether the user's email address was previously verified. | ||
/// </summary> | ||
[JsonProperty("email_verified")] | ||
public bool IsEmailVerified { get; set; } | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/WorkOS.net/Services/UserManagement/_interfaces/UpdateUserPasswordOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace WorkOS | ||
{ | ||
using Newtonsoft.Json; | ||
|
||
/// <summary> | ||
/// The parameters to update the password of the user. | ||
/// </summary> | ||
public class UpdateUserPasswordOptions : BaseOptions | ||
{ | ||
/// <summary> | ||
/// The ID of the user. | ||
/// </summary> | ||
[JsonIgnore] | ||
public string Id { get; set; } | ||
|
||
/// <summary> | ||
/// The new password for the user. | ||
/// </summary> | ||
[JsonProperty("password")] | ||
public string Password { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters