Skip to content

Commit

Permalink
Merge branch 'release/moov-1.8.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
sipsorcery committed Jul 4, 2024
2 parents 083adf7 + 5d8fb44 commit 5edcd7b
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 10 deletions.
5 changes: 5 additions & 0 deletions src/NoFrixion.MoneyMoov/Enums/BeneficiaryEventTypeEnum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,9 @@ public enum BeneficiaryEventTypeEnum
/// A beneficiary was enabled.
/// </summary>
Enable = 5,

/// <summary>
/// An archive is a soft delete. It removes the beneficiary from the active list.
/// </summary>
Archive = 6
}
5 changes: 5 additions & 0 deletions src/NoFrixion.MoneyMoov/Enums/MerchantTokenPermissionsEnum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,9 @@ public enum MerchantTokenPermissionsEnum
/// Permission to create and submit a payout from a trusted source.
/// </summary>
TrustedSubmitPayout = 32768,

/// <summary>
/// Permission to perfrom open banking account information actions.
/// </summary>
OpenBankingAccountInformation = 65536
}
14 changes: 6 additions & 8 deletions src/NoFrixion.MoneyMoov/Enums/PayrunEventTypeEnum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,15 @@ public enum PayrunEventTypeEnum

Created = 1,

Authorised = 2,
Submitted = 2,

Submitted = 3,
Rejected = 3,

Rejected = 4,
Edited = 4,

Edited = 5,
AuthorisationRequested = 5,

AuthorisationRequested = 6,
Completed = 6,

Completed = 7,

Approved = 8,
Approved = 7,
}
24 changes: 24 additions & 0 deletions src/NoFrixion.MoneyMoov/Models/Account/LastTransaction.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// -----------------------------------------------------------------------------
// Filename: LastTransaction.cs
//
// Description: Represents the last transaction that occurred on an account.:
//
// Author(s):
// Donal O'Connor ([email protected])
//
// History:
// 01 07 2024 Donal O'Connor Created, Harcourt St, Dublin, Ireland.
//
// License:
// Proprietary NoFrixion.
// -----------------------------------------------------------------------------

#nullable disable
namespace NoFrixion.MoneyMoov.Models;

public class LastTransaction
{
public decimal Amount { get; set; }

public DateTimeOffset Date { get; set; }
}
13 changes: 13 additions & 0 deletions src/NoFrixion.MoneyMoov/Models/Account/PaymentAccount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
// MIT.
// -----------------------------------------------------------------------------

using JetBrains.Annotations;

namespace NoFrixion.MoneyMoov.Models;

#nullable disable
Expand Down Expand Up @@ -162,4 +164,15 @@ public string Summary
/// Indicates if the payment account is connected to a Xero bank feed.
/// </summary>
public bool IsXeroBankFeed { get; set; }

/// <summary>
/// The last transaction on the account
/// </summary>
[CanBeNull] public LastTransaction LastTransaction { get; set; }

/// <summary>
/// The user that created the account
/// </summary>
[CanBeNull]
public User CreatedBy { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,9 @@ public class BeneficiaryEvent
/// </summary>
public string SourceAccountsHash { get; set; }

public bool IsEnabled { get; set; }

public bool IsArchived { get; set; }

public User User { 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>0.0.3.0</AssemblyVersion>
<FileVersion>0.0.3.0</FileVersion>
<AssemblyVersion>1.8.1.0</AssemblyVersion>
<FileVersion>1.8.1.0</FileVersion>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);1591</NoWarn>
Expand Down

0 comments on commit 5edcd7b

Please sign in to comment.