1 package org.kuali.ole.patron.bill;
2
3
4 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
5 import org.kuali.rice.krad.util.GlobalVariables;
6
7 import java.math.BigDecimal;
8 import java.util.ArrayList;
9 import java.util.Date;
10 import java.util.LinkedHashMap;
11 import java.util.List;
12
13
14
15
16
17 public class PatronBillPayment extends PersistableBusinessObjectBase {
18
19
20 private BigDecimal totalAmount;
21 private String billNumber;
22 private Date billDate;
23 private FeeType patronFeeType;
24 private String patronId;
25 private String proxyPatronId;
26 private String itemId;
27 private String freeTextNote;
28 private List<FeeType> feeType = new ArrayList<FeeType>();
29 private BigDecimal unPaidBalance;
30 private String paymentStatus;
31 private String paymentMethod;
32 private BigDecimal paymentAmount;
33 private String paymentOperatorId;
34 private String paymentMachineId;
35 private Date payDate;
36
37 private String machineId="Test";
38 private String note;
39 private String paymentStatusName;
40 private OlePaymentStatus olePaymentStatus;
41 private String firstName;
42 private String lastName;
43 private String operatorId="test";
44 private String proxyPatronName;
45 private List<SystemGeneratedBill> sysGeneratedBill = new ArrayList<SystemGeneratedBill>();
46 private String proxyFirstName;
47 private String proxyLastName;
48 private boolean reviewed;
49
50
51
52
53
54 public String getNote() {
55 return note;
56 }
57
58
59
60
61
62 public void setNote(String note) {
63 this.note = note;
64 }
65
66
67
68
69
70 public String getMachineId() {
71 return machineId;
72 }
73
74
75
76
77 public void setMachineId(String machineId) {
78 this.machineId = machineId;
79 }
80
81
82
83
84 public String getOperatorId() {
85 return operatorId;
86 }
87
88
89
90
91 public void setOperatorId(String operatorId) {
92 if(operatorId ==null || (operatorId!=null && operatorId.isEmpty()))
93 operatorId = GlobalVariables.getUserSession().getLoggedInUserPrincipalName();
94 this.operatorId = operatorId;
95 }
96
97
98
99
100 public Date getPayDate() {
101 return payDate;
102 }
103
104
105
106
107
108 public void setPayDate(Date payDate) {
109 this.payDate = payDate;
110 }
111
112
113
114
115
116 public String getPaymentMachineId() {
117 return paymentMachineId;
118 }
119
120
121
122
123 public void setPaymentMachineId(String paymentMachineId) {
124 this.paymentMachineId = paymentMachineId;
125 }
126
127
128
129
130
131 public String getPaymentOperatorId() {
132 return paymentOperatorId;
133 }
134
135
136
137
138 public void setPaymentOperatorId(String paymentOperatorId) {
139 this.paymentOperatorId = paymentOperatorId;
140 }
141
142
143
144
145
146 public String getPaymentStatus() {
147 return paymentStatus;
148 }
149
150
151
152
153 public void setPaymentStatus(String paymentStatus) {
154 this.paymentStatus = paymentStatus;
155 }
156
157
158
159
160 public String getPaymentMethod() {
161 return paymentMethod;
162 }
163
164
165
166
167 public void setPaymentMethod(String paymentMethod) {
168 this.paymentMethod = paymentMethod;
169 }
170
171
172
173
174 public String getPatronId() {
175 return patronId;
176 }
177
178
179
180
181 public void setPatronId(String patronId) {
182 this.patronId = patronId;
183 }
184
185
186
187
188 public String getItemId() {
189 return itemId;
190 }
191
192
193
194
195 public void setItemId(String itemId) {
196 this.itemId = itemId;
197 }
198
199
200
201
202 public String getProxyPatronId() {
203 return proxyPatronId;
204 }
205
206
207
208
209 public void setProxyPatronId(String proxyPatronId) {
210 this.proxyPatronId = proxyPatronId;
211 }
212
213
214
215
216 public FeeType getPatronFeeType() {
217 return patronFeeType;
218 }
219
220
221
222
223 public void setPatronFeeType(FeeType patronFeeType) {
224 this.patronFeeType = patronFeeType;
225 }
226
227
228
229
230 /*
231 public List<FeeType> getFeeType() {
232 return feeType;
233 }
234 */
235
236
237 /*
238 public void setFeeType(List<FeeType> feeType) {
239 this.feeType = feeType;
240 }*/
241
242
243
244
245 public Date getBillDate() {
246 return billDate;
247 }
248
249
250
251
252 public void setBillDate(Date billDate) {
253 this.billDate = billDate;
254 }
255
256
257
258
259 public String getBillNumber() {
260 return billNumber;
261 }
262
263
264
265
266 public void setBillNumber(String billNumber) {
267 this.billNumber = billNumber;
268 }
269
270
271
272
273
274 public String getFreeTextNote() {
275 return freeTextNote;
276 }
277
278
279
280
281 public void setFreeTextNote(String freeTextNote) {
282 this.freeTextNote = freeTextNote;
283 }
284
285
286
287
288 public BigDecimal getTotalAmount() {
289 return totalAmount;
290 }
291
292
293
294
295 public void setTotalAmount(BigDecimal totalAmount) {
296 this.totalAmount = totalAmount;
297 }
298
299
300
301
302 public BigDecimal getPaymentAmount() {
303 return paymentAmount;
304 }
305
306
307
308
309 public void setPaymentAmount(BigDecimal paymentAmount) {
310 this.paymentAmount = paymentAmount;
311 }
312
313
314
315
316 public BigDecimal getUnPaidBalance() {
317 return unPaidBalance;
318 }
319
320
321
322
323 public void setUnPaidBalance(BigDecimal unPaidBalance) {
324 this.unPaidBalance = unPaidBalance;
325 }
326
327
328
329
330 public OlePaymentStatus getOlePaymentStatus() {
331 return olePaymentStatus;
332 }
333
334
335
336
337 public void setOlePaymentStatus(OlePaymentStatus olePaymentStatus) {
338 this.olePaymentStatus = olePaymentStatus;
339 }
340
341
342
343
344 public String getPaymentStatusName() {
345 return olePaymentStatus.getPaymentStatusName();
346 }
347
348
349
350
351 public void setPaymentStatusName(String paymentStatusName) {
352 this.paymentStatusName = paymentStatusName;
353 }
354
355
356
357
358 public String getFirstName() {
359 return firstName;
360 }
361
362
363
364
365 public void setFirstName(String firstName) {
366 this.firstName = firstName;
367 }
368
369
370
371
372 public String getLastName() {
373 return lastName;
374 }
375
376
377
378
379 public void setLastName(String lastName) {
380 this.lastName = lastName;
381 }
382
383 public List<SystemGeneratedBill> getSysGeneratedBill() {
384 return sysGeneratedBill;
385 }
386
387 public void setSysGeneratedBill(List<SystemGeneratedBill> sysGeneratedBill) {
388 this.sysGeneratedBill = sysGeneratedBill;
389 }
390
391 public String getProxyPatronName() {
392 return proxyPatronName;
393 }
394
395 public void setProxyPatronName(String proxyPatronName) {
396 this.proxyPatronName = proxyPatronName;
397 }
398
399
400 public List<FeeType> getFeeType() {
401 return feeType;
402 }
403
404 public void setFeeType(List<FeeType> feeType) {
405 this.feeType = feeType;
406 }
407
408 public String getProxyFirstName() {
409 return proxyFirstName;
410 }
411
412 public void setProxyFirstName(String proxyFirstName) {
413 this.proxyFirstName = proxyFirstName;
414 }
415
416 public String getProxyLastName() {
417 return proxyLastName;
418 }
419
420 public void setProxyLastName(String proxyLastName) {
421 this.proxyLastName = proxyLastName;
422 }
423
424 public boolean isReviewed() {
425 return reviewed;
426 }
427
428 public void setReviewed(boolean reviewed) {
429 this.reviewed = reviewed;
430 }
431
432
433
434
435
436 protected LinkedHashMap toStringMapper() {
437 LinkedHashMap toStringMap = new LinkedHashMap();
438 toStringMap.put("billNumber",billNumber);
439 return toStringMap;
440 }
441 }