41 lines
1.4 KiB
C#
41 lines
1.4 KiB
C#
using System;
|
|
using Swarmops.Basic.Interfaces;
|
|
|
|
namespace Swarmops.Basic.Types
|
|
{
|
|
public class BasicRefund : IHasIdentity
|
|
{
|
|
public BasicRefund(int refundId, int paymentId, bool open, Int64 amountCents, int createdByPersonId,
|
|
DateTime createdDateTime, DateTime closedDateTime)
|
|
{
|
|
RefundId = refundId;
|
|
PaymentId = paymentId;
|
|
Open = open;
|
|
AmountCents = amountCents;
|
|
CreatedByPersonId = createdByPersonId;
|
|
CreatedDateTime = createdDateTime;
|
|
ClosedDateTime = closedDateTime;
|
|
}
|
|
|
|
public BasicRefund(BasicRefund original)
|
|
: this(
|
|
original.RefundId, original.PaymentId, original.Open, original.AmountCents, original.CreatedByPersonId,
|
|
original.CreatedDateTime, original.ClosedDateTime)
|
|
{
|
|
// Empty copy ctor
|
|
}
|
|
|
|
public int RefundId { get; private set; }
|
|
public int PaymentId { get; private set; }
|
|
public bool Open { get; protected set; }
|
|
public Int64 AmountCents { get; private set; }
|
|
public int CreatedByPersonId { get; private set; }
|
|
public DateTime CreatedDateTime { get; private set; }
|
|
public DateTime ClosedDateTime { get; protected set; }
|
|
|
|
public int Identity
|
|
{
|
|
get { return RefundId; }
|
|
}
|
|
}
|
|
} |