Some work on payment targets

This commit is contained in:
Rick Falkvinge
2019-02-21 10:53:01 +01:00
parent 9b5f01ad02
commit 6a262fb9a7
11 changed files with 162 additions and 33 deletions
+1
View File
@@ -63,6 +63,7 @@
<Compile Include="Types\Financial\BasicFinancialAccountDocument.cs" />
<Compile Include="Types\Financial\BasicHotBitcoinAddress.cs" />
<Compile Include="Types\Financial\BasicHotBitcoinAddressUnspent.cs" />
<Compile Include="Types\Financial\BasicPaymentTarget.cs" />
<Compile Include="Types\Financial\BasicVatReport.cs" />
<Compile Include="Types\Financial\BasicVatReportItem.cs" />
<Compile Include="Types\Governance\BasicBallot.cs" />
@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Swarmops.Common.Enums;
using Swarmops.Common.Interfaces;
namespace Swarmops.Basic.Types.Financial
{
public class BasicPaymentTarget: IHasIdentity
{
public int PaymentTargetId { get; private set; }
public DateTime CreatedDateTime { get; private set; }
public int CreatedByPersonId { get; private set; }
public int ForeignId { get; private set; }
public ForeignObjectType ForeignType { get; private set; }
public bool Active { get; protected set; }
public bool Open { get; protected set; }
public int CurrencyId { get; private set; }
public string TargetType { get; private set; }
public string Description { get; private set; }
public Dictionary<PaymentTargetField, string> Fields { get; private set; }
public int Identity { get { return PaymentTargetId; } }
}
}