/// <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)); }
/// <summary> /// Approves a payment. /// </summary> public void Approve() { Status = PaymentStatus.Approved; Events.Enqueue(new PaymentApproved(Id)); }