public Bill(string billID, string description, decimal amount, DateTime issueDate, DateTime dueDate, PaymentMethod paymentMethod) { this.billID = billID; this.description = description; this.amount = amount; this.issueDate = issueDate; this.dueDate = dueDate.Date; this.paymentResult = (int)BillPaymentResult.ToCollect; this.assignedPaymentMethod = paymentMethod; this.paymentAgreements = new Dictionary<DateTime, PaymentAgreement>(); }
public Payment(decimal paymentAmount, DateTime paymentDate, PaymentMethod paymentMethod) { this.paymentAmount = paymentAmount; this.paymentDate = paymentDate; this.paymentMethod = paymentMethod; }
private void InitializeBillingData() { this.defaultPaymentMethod = new CashPaymentMethod(); directDebitmandates = new Dictionary<int, DirectDebitMandate>(); invoicesList = new Dictionary<string, Invoice>(); proFormaInvoicesList = new Dictionary<string, ProFormaInvoice>(); amendingInvoicesList = new Dictionary<string, AmendingInvoice>(); }
public void SetDefaultPaymentMethod(PaymentMethod paymentMethod) { this.defaultPaymentMethod = paymentMethod; }
public void AssignPaymentMethod(PaymentMethod paymentMethod) { this.AssignedPaymentMethod = paymentMethod; }