示例#1
0
 /// <summary>
 /// Declines payment with a reason.
 /// </summary>
 /// <param name="reason"></param>
 public void Decline(string reason)
 {
     Status = PaymentStatus.Declined;
     Events.Enqueue(new PaymentDeclined(Id, reason));
 }
示例#2
0
 /// <summary>
 /// Approves a payment.
 /// </summary>
 public void Approve()
 {
     Status = PaymentStatus.Approved;
     Events.Enqueue(new PaymentApproved(Id));
 }