Files
using.cash/Basic/Types/BasicPayout.cs
T
2014-10-08 23:53:12 +02:00

53 lines
2.0 KiB
C#

using System;
using Swarmops.Basic.Interfaces;
namespace Swarmops.Basic.Types
{
public class BasicPayout: IHasIdentity
{
public BasicPayout (int payoutId, int organizationId, string bank, string account,
string reference, Int64 amountCents, DateTime expectedTransactionDate, bool open,
DateTime createdDateTime, int createdByPersonId)
{
this.PayoutId = payoutId;
this.OrganizationId = organizationId;
this.Bank = bank;
this.Account = account;
this.Reference = reference;
this.AmountCents = amountCents;
this.ExpectedTransactionDate = expectedTransactionDate;
this.Open = open;
this.CreatedDateTime = createdDateTime;
this.CreatedByPersonId = createdByPersonId;
}
public BasicPayout(BasicPayout original) :
this(original.PayoutId, original.OrganizationId, original.Bank, original.Account,
original.Reference, original.AmountCents, original.ExpectedTransactionDate, original.Open,
original.CreatedDateTime, original.CreatedByPersonId)
{
// empty copy ctor
}
public int PayoutId { get; private set; }
public int OrganizationId { get; protected set; }
public string Bank { get; protected set; }
public string Account { get; protected set; }
public string Reference { get; protected set; }
public Int64 AmountCents { get; protected set; }
public DateTime ExpectedTransactionDate { get; protected set; }
public bool Open { get; protected set; }
public DateTime CreatedDateTime { get; private set; }
public int CreatedByPersonId { get; private set; }
#region IHasIdentity Members
public int Identity
{
get { return this.PayoutId; }
}
#endregion
}
}