-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
97 additions
and
2 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
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,51 @@ | ||
// ----------------------------------------------------------------------------- | ||
// Filename: RoleUpdate.cs | ||
// | ||
// Description: Role update model: | ||
// | ||
// Author(s): | ||
// Donal O'Connor ([email protected]) | ||
// | ||
// History: | ||
// 26 08 2024 Donal O'Connor Created, Harcourt St, Dublin, Ireland. | ||
// | ||
// License: | ||
// Proprietary NoFrixion. | ||
// ----------------------------------------------------------------------------- | ||
|
||
using NoFrixion.Common.Permissions; | ||
|
||
namespace NoFrixion.MoneyMoov.Models.Roles; | ||
|
||
public class RoleUpdate | ||
{ | ||
/// <summary> | ||
/// The role id | ||
/// </summary> | ||
public Guid ID { get; set; } | ||
|
||
/// <summary> | ||
/// The role name | ||
/// </summary> | ||
public string? Name { get; set; } | ||
|
||
/// <summary> | ||
/// The role description | ||
/// </summary> | ||
public string? Description { get; set; } | ||
|
||
/// <summary> | ||
/// The roles user permissions | ||
/// </summary> | ||
public UserPermissions? UserPermissions { get; set; } | ||
|
||
/// <summary> | ||
/// The roles merchant permissions | ||
/// </summary> | ||
public MerchantPermissions? MerchantPermissions { get; set; } | ||
|
||
/// <summary> | ||
/// The roles account permissions | ||
/// </summary> | ||
public AccountPermissions? AccountPermissions { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// ----------------------------------------------------------------------------- | ||
// Filename: RoleUserUpdate.cs | ||
// | ||
// Description: Role user update model: | ||
// | ||
// Author(s): | ||
// Donal O'Connor ([email protected]) | ||
// | ||
// History: | ||
// 26 08 2024 Donal O'Connor Created, Harcourt St, Dublin, Ireland. | ||
// | ||
// License: | ||
// Proprietary NoFrixion. | ||
// ----------------------------------------------------------------------------- | ||
|
||
namespace NoFrixion.MoneyMoov.Models.Roles; | ||
|
||
public class RoleUserUpdate | ||
{ | ||
/// <summary> | ||
/// The accounts the user will have permssions for from the associated role | ||
/// </summary> | ||
public List<Guid>? RoleAccounts { get; set; } | ||
|
||
/// <summary> | ||
/// The merchants the user will have permssions for from the associated role | ||
/// </summary> | ||
public List<Guid>? RoleMerchants { 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
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