Skip to content

Commit

Permalink
Merge pull request #369 from nofrixion/feature/MOOV-3383-account-last…
Browse files Browse the repository at this point in the history
…-txn

Added LastTransaction and CreatedBy
  • Loading branch information
donalnofrixion authored Jul 3, 2024
2 parents 90487f3 + 5cab487 commit 25c18de
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
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; }
}

0 comments on commit 25c18de

Please sign in to comment.