summaryrefslogtreecommitdiff
path: root/src/app/Cmpp298.Assignment3.Dto/DisplayInvoiceDto.cs
blob: 60a67391d9d3fed51c58340048fbaea06b6f8fe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
namespace Cmpp298.Assignment3.Dto {
	public class DisplayInvoiceDto {
		public DisplayInvoiceDto( string invoiceId, string vendorName, string invoiceNumber, string invoiceDate, string invoiceTotal,
		                   string paymentTotal, string creditTotal, string terms, string dueDate, string paymentDate ) {
			_invoiceId = invoiceId;
			_vendorName = vendorName;
			_invoiceNumber = invoiceNumber;
			_invoiceDate = invoiceDate;
			_invoiceTotal = invoiceTotal;
			_paymentTotal = paymentTotal;
			_creditTotal = creditTotal;
			_terms = terms;
			_dueDate = dueDate;
			_paymentDate = paymentDate;
		}

		public string InvoiceId {
			get { return _invoiceId; }
		}

		public string VendorName {
			get { return _vendorName; }
		}

		public string InvoiceNumber {
			get { return _invoiceNumber; }
		}

		public string InvoiceDate {
			get { return _invoiceDate; }
		}

		public string InvoiceTotal {
			get { return _invoiceTotal; }
		}

		public string PaymentTotal {
			get { return _paymentTotal; }
		}

		public string CreditTotal {
			get { return _creditTotal; }
		}

		public string Terms {
			get { return _terms; }
		}

		public string DueDate {
			get { return _dueDate; }
		}

		public string PaymentDate {
			get { return _paymentDate; }
		}

		private readonly string _invoiceId;
		private readonly string _vendorName;
		private readonly string _invoiceNumber;
		private readonly string _invoiceDate;
		private readonly string _invoiceTotal;
		private readonly string _paymentTotal;
		private readonly string _creditTotal;
		private readonly string _terms;
		private readonly string _dueDate;
		private readonly string _paymentDate;
	}
}