45 lines
1.7 KiB
C#
45 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Swarmops.Basic.Interfaces;
|
|
|
|
namespace Swarmops.Basic.Types
|
|
{
|
|
public class BasicPaymentGroup: IHasIdentity
|
|
{
|
|
public BasicPaymentGroup (int paymentGroupId, int organizationId, DateTime dateTime, int currencyId, Int64 amountCents, string tag, int createdByPersonId, DateTime createdDateTime, bool open)
|
|
{
|
|
this.PaymentGroupId = paymentGroupId;
|
|
this.OrganizationId = organizationId;
|
|
this.Tag = tag;
|
|
this.DateTime = dateTime;
|
|
this.AmountCents = amountCents;
|
|
this.CurrencyId = currencyId;
|
|
this.CreatedByPersonId = createdByPersonId;
|
|
this.CreatedDateTime = createdDateTime;
|
|
this.Open = open;
|
|
}
|
|
|
|
public BasicPaymentGroup (BasicPaymentGroup original)
|
|
: this(original.PaymentGroupId, original.OrganizationId, original.DateTime, original.CurrencyId, original.AmountCents, original.Tag, original.CreatedByPersonId, original.CreatedDateTime, original.Open)
|
|
{
|
|
// empty copy ctor
|
|
}
|
|
|
|
public int PaymentGroupId { get; private set; }
|
|
public int OrganizationId { get; private set; }
|
|
public string Tag { get; protected set; }
|
|
public DateTime DateTime { get; private set; }
|
|
public Int64 AmountCents { get; protected set; }
|
|
public int CurrencyId { get; private set; }
|
|
public int CreatedByPersonId { get; private set; }
|
|
public DateTime CreatedDateTime { get; private set; }
|
|
public bool Open { get; protected set; }
|
|
|
|
public int Identity
|
|
{
|
|
get { return this.PaymentGroupId; }
|
|
}
|
|
}
|
|
}
|