2022-12-18 10:13:35 +01:00
|
|
|
|
using EDPlayerJournal.Entries;
|
|
|
|
|
|
|
|
|
|
namespace EDPlayerJournal.BGS;
|
2022-11-25 15:57:59 +01:00
|
|
|
|
|
|
|
|
|
public class IncompleteTransaction : Transaction {
|
2022-11-01 18:01:28 +01:00
|
|
|
|
public Transaction? UnderlyingTransaction { get; set; } = null;
|
|
|
|
|
public string Reason { get; set; } = "";
|
|
|
|
|
|
|
|
|
|
public IncompleteTransaction() { }
|
|
|
|
|
|
2022-12-18 10:13:35 +01:00
|
|
|
|
public IncompleteTransaction(Transaction? underlying, string reason, Entry entry) {
|
2022-11-01 18:01:28 +01:00
|
|
|
|
UnderlyingTransaction = underlying;
|
|
|
|
|
Reason = reason;
|
2022-12-18 10:13:35 +01:00
|
|
|
|
Entries.Add(entry);
|
2022-11-01 18:01:28 +01:00
|
|
|
|
}
|
|
|
|
|
}
|