예제 #1
0
 public Payment(Purchase parameter, PaymentType type)
 {
     this.purchase = parameter;
     this.paymentDate = DateTime.Now;
     this.amount = parameter.totalAmount;
     this.status = PaymentStatus.Waiting;
     this.type = type;
 }
예제 #2
0
 public void AddPurchase(Purchase parameter)
 {
     this.purchases.Add(parameter);
 }