From f596ca0ded3ab1cb61246b3f923eb923ab15c373 Mon Sep 17 00:00:00 2001 From: "Brian D. Adams" Date: Fri, 5 Apr 2024 08:12:15 -0500 Subject: [PATCH] Add Debt Transaction Type field (#28) --- YNAB.Rest/Transaction.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/YNAB.Rest/Transaction.cs b/YNAB.Rest/Transaction.cs index aeee3c4..4ae2a29 100644 --- a/YNAB.Rest/Transaction.cs +++ b/YNAB.Rest/Transaction.cs @@ -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; } @@ -39,6 +44,8 @@ public class Transaction public string CategoryName { get; set; } [JsonProperty(PropertyName = "subtransactions")] public IList SubTransactions { get; set; } + [JsonConverter(typeof(StringEnumConverter))] + public DebtTransactionType? DebtTransactionType { get; set; } /* {