Exemple #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;
 }
Exemple #2
0
 public void AddPurchase(Purchase parameter)
 {
     this.purchases.Add(parameter);
 }