Skip to content

Commit

Permalink
Merge branch 'release/moov-1.8.15'
Browse files Browse the repository at this point in the history
  • Loading branch information
sipsorcery committed Aug 27, 2024
2 parents 0981a12 + 16bc442 commit d4a582f
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/NoFrixion.MoneyMoov/Enums/PayrunStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,10 @@ public enum PayrunStatus
/// Indicates that the pay run has been authorised and is queued for processing.
/// </summary>
Queued = 8,

/// <summary>
/// Indicates that the pay run approval is in progress and
/// payouts are being created for the pay run.
/// </summary>
Approving = 9,
}
51 changes: 51 additions & 0 deletions src/NoFrixion.MoneyMoov/Models/Roles/RoleUpdate.cs
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; }
}
29 changes: 29 additions & 0 deletions src/NoFrixion.MoneyMoov/Models/Roles/RoleUserUpdate.cs
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; }
}
4 changes: 2 additions & 2 deletions src/NoFrixion.MoneyMoov/NoFrixion.MoneyMoov.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AssemblyVersion>1.8.14.0</AssemblyVersion>
<FileVersion>1.8.14.0</FileVersion>
<AssemblyVersion>1.8.15.0</AssemblyVersion>
<FileVersion>1.8.15.0</FileVersion>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);1591</NoWarn>
Expand Down
9 changes: 9 additions & 0 deletions src/NoFrixion.MoneyMoov/NoFrixionProblem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,15 @@ public NoFrixionNotFoundProblem(string errorMessage) : base(errorMessage, STATUS
}
}

public class NoFrixionConflictProblem : NoFrixionProblem
{
private const int STATUS_CODE = 409;

public NoFrixionConflictProblem(string errorMessage) : base(errorMessage, STATUS_CODE)
{
}
}

public class NoFrixionProblem
{
private static NoFrixionProblem _empty = new NoFrixionProblem { _isEmpty = true };
Expand Down

0 comments on commit d4a582f

Please sign in to comment.