Skip to content

Commit

Permalink
Add Debt Transaction Type field (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
briandadams85 authored Apr 5, 2024
1 parent 09b348c commit f596ca0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions YNAB.Rest/Transaction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ public enum FlagColor
Red, Orange, Yellow, Green, Blue, Purple
}

public enum DebtTransactionType
{
Payment, Refund, Fee, Interest, Escrow, BalanceAdjustment, Credit, Charge
}

public class Transaction
{
public string Id { get; set; }
Expand All @@ -39,6 +44,8 @@ public class Transaction
public string CategoryName { get; set; }
[JsonProperty(PropertyName = "subtransactions")]
public IList<SubTransaction> SubTransactions { get; set; }
[JsonConverter(typeof(StringEnumConverter))]
public DebtTransactionType? DebtTransactionType { get; set; }

/*
{
Expand Down

0 comments on commit f596ca0

Please sign in to comment.