Lots of work on unique HBAs, OInvs

This commit is contained in:
Rick Falkvinge
2017-11-29 17:52:23 +01:00
parent e130ae0cbb
commit a6e333aa3f
17 changed files with 210 additions and 38 deletions
@@ -11,12 +11,13 @@ namespace Swarmops.Basic.Types.Financial
public class BasicHotBitcoinAddress: IHasIdentity
{
public BasicHotBitcoinAddress (int hotBitcoinAddressId, int organizationId, BitcoinChain chain, string derivationPath,
string address, string addressFallback, Int64 balanceSatoshis, Int64 throughputSatoshis)
int uniqueDerive, string address, string addressFallback, Int64 balanceSatoshis, Int64 throughputSatoshis)
{
this.HotBitcoinAddressId = hotBitcoinAddressId;
this.OrganizationId = organizationId;
this.Chain = chain;
this.DerivationPath = derivationPath;
this.UniqueDerive = uniqueDerive;
this.Address = address;
this.AddressFallback = addressFallback;
this.BalanceSatoshis = balanceSatoshis;
@@ -26,7 +27,7 @@ namespace Swarmops.Basic.Types.Financial
public BasicHotBitcoinAddress (BasicHotBitcoinAddress original)
: this (
original.HotBitcoinAddressId, original.OrganizationId, original.Chain, original.DerivationPath,
original.Address, original.AddressFallback, original.BalanceSatoshis, original.ThroughputSatoshis)
original.UniqueDerive, original.Address, original.AddressFallback, original.BalanceSatoshis, original.ThroughputSatoshis)
{
// copy ctor
}
@@ -35,6 +36,7 @@ namespace Swarmops.Basic.Types.Financial
public int OrganizationId { get; private set; }
public BitcoinChain Chain { get; private set; }
public string DerivationPath { get; private set; }
public int UniqueDerive { get; private set; }
public string Address { get; private set; }
public string AddressFallback { get; private set; }
public Int64 BalanceSatoshis { get; protected set; }
@@ -6,7 +6,7 @@ namespace Swarmops.Basic.Types.Financial
public class BasicOutboundInvoice : IHasIdentity
{
public BasicOutboundInvoice (int outboundInvoiceId, string customerName, string invoiceAddressPaper,
string invoiceAddressMail, int currencyId, int organizationId, int budgetId,
string invoiceAddressMail, int currencyId, int organizationId, int organizationSequenceId, int budgetId,
DateTime createdDateTime, int createdByPersonId, DateTime dueDate, int reminderCount, string reference,
bool domestic, bool open, bool sent, string securityCode, string theirReference)
{
@@ -16,6 +16,7 @@ namespace Swarmops.Basic.Types.Financial
this.InvoiceAddressMail = invoiceAddressMail;
this.CurrencyId = currencyId;
this.OrganizationId = organizationId;
this.OrganizationSequenceId = organizationSequenceId;
this.BudgetId = budgetId;
this.CreatedDateTime = createdDateTime;
this.CreatedByPersonId = createdByPersonId;
@@ -33,7 +34,7 @@ namespace Swarmops.Basic.Types.Financial
public BasicOutboundInvoice (BasicOutboundInvoice original) :
this (
original.OutboundInvoiceId, original.CustomerName, original.InvoiceAddressPaper, original.InvoiceAddressMail,
original.CurrencyId, original.OrganizationId, original.BudgetId, original.CreatedDateTime,
original.CurrencyId, original.OrganizationId, original.OrganizationSequenceId, original.BudgetId, original.CreatedDateTime,
original.CreatedByPersonId, original.DueDate, original.ReminderCount, original.Reference, original.Domestic,
original.Open, original.Sent, original.SecurityCode, original.TheirReference)
{
@@ -46,6 +47,7 @@ namespace Swarmops.Basic.Types.Financial
public string InvoiceAddressMail { get; private set; }
public int CurrencyId { get; private set; }
public int OrganizationId { get; private set; }
public int OrganizationSequenceId { get; protected set; }
public int BudgetId { get; protected set; }
public DateTime CreatedDateTime { get; private set; }
public int CreatedByPersonId { get; private set; }