View Javadoc

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   * PatronBillMaintenance provides Patron bill  information through getter and setter.
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      //Need to retrieve from services
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       * Gets the value of note property
52       * @return barcode
53       */
54      public String getNote() {
55          return note;
56      }
57  
58      /**
59       * Sets the value for note property
60       * @param note
61       */
62      public void setNote(String note) {
63          this.note = note;
64      }
65  
66      /**
67       * Gets the value of Machine property
68       * @return barcode
69       */
70      public String getMachineId() {
71          return machineId;
72      }
73      /**
74       * Sets the value for machineId property
75       * @param machineId
76       */
77      public void setMachineId(String machineId) {
78          this.machineId = machineId;
79      }
80      /**
81       * Gets the value of operator property
82       * @return operatorId
83       */
84      public String getOperatorId() {
85          return operatorId;
86      }
87      /**
88       * Sets the value for machineId property
89       * @param operatorId
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       * Gets the value of date property
98       * @return payDate
99       */
100     public Date getPayDate() {
101         return payDate;
102     }
103 
104     /**
105      * Sets the value for machineId property
106      * @param payDate
107      */
108     public void setPayDate(Date payDate) {
109         this.payDate = payDate;
110     }
111 
112     /**
113      * Gets the value of machine id property
114      * @return paymentMachineId
115      */
116     public String getPaymentMachineId() {
117         return paymentMachineId;
118     }
119     /**
120      * Sets the value for machineId property
121      * @param paymentMachineId
122      */
123     public void setPaymentMachineId(String paymentMachineId) {
124         this.paymentMachineId = paymentMachineId;
125     }
126 
127     /**
128      * Gets the value of payment operator id property
129      * @return paymentOperatorId
130      */
131     public String getPaymentOperatorId() {
132         return paymentOperatorId;
133     }
134     /**
135      * Sets the value for machineId property
136      * @param paymentOperatorId
137      */
138     public void setPaymentOperatorId(String paymentOperatorId) {
139         this.paymentOperatorId = paymentOperatorId;
140     }
141 
142     /**
143      * Gets the value of payment status property
144      * @return paymentStatus
145      */
146     public String getPaymentStatus() {
147         return paymentStatus;
148     }
149     /**
150      * Sets the value for machineId property
151      * @param paymentStatus
152      */
153     public void setPaymentStatus(String paymentStatus) {
154         this.paymentStatus = paymentStatus;
155     }
156     /**
157      * Gets the value of payment method property
158      * @return paymentMethod
159      */
160     public String getPaymentMethod() {
161         return paymentMethod;
162     }
163     /**
164      * Sets the value for machineId property
165      * @param paymentMethod
166      */
167     public void setPaymentMethod(String paymentMethod) {
168         this.paymentMethod = paymentMethod;
169     }
170     /**
171      * Gets the value of patron id property
172      * @return patronId
173      */
174     public String getPatronId() {
175         return patronId;
176     }
177     /**
178      * Sets the value for machineId property
179      * @param patronId
180      */
181     public void setPatronId(String patronId) {
182         this.patronId = patronId;
183     }
184     /**
185      * Gets the value of item property
186      * @return itemId
187      */
188     public String getItemId() {
189         return itemId;
190     }
191     /**
192      * Sets the value for machineId property
193      * @param itemId
194      */
195     public void setItemId(String itemId) {
196         this.itemId = itemId;
197     }
198     /**
199      * Gets the value of proxy patron property
200      * @return proxyPatronId
201      */
202     public String getProxyPatronId() {
203         return proxyPatronId;
204     }
205     /**
206      * Sets the value for machineId property
207      * @param proxyPatronId
208      */
209     public void setProxyPatronId(String proxyPatronId) {
210         this.proxyPatronId = proxyPatronId;
211     }
212     /**
213      * Gets the entity of fee type property
214      * @return patronFeeType
215      */
216     public FeeType getPatronFeeType() {
217         return patronFeeType;
218     }
219     /**
220      * Sets the value for machineId property
221      * @param patronFeeType
222      */
223     public void setPatronFeeType(FeeType patronFeeType) {
224         this.patronFeeType = patronFeeType;
225     }
226 
227     /**
228      * Gets the list of feetype property
229      * @return feeType
230      *//*
231     public List<FeeType> getFeeType() {
232         return feeType;
233     }
234     *//**
235      * Sets the value for machineId property
236      * @param feeType
237      *//*
238     public void setFeeType(List<FeeType> feeType) {
239         this.feeType = feeType;
240     }*/
241     /**
242      * Gets the value of bill date property
243      * @return billDate
244      */
245     public Date getBillDate() {
246         return billDate;
247     }
248     /**
249      * Sets the value for machineId property
250      * @param billDate
251      */
252     public void setBillDate(Date billDate) {
253         this.billDate = billDate;
254     }
255     /**
256      * Gets the value of bill number property
257      * @return billNumber
258      */
259     public String getBillNumber() {
260         return billNumber;
261     }
262     /**
263      * Sets the value for machineId property
264      * @param billNumber
265      */
266     public void setBillNumber(String billNumber) {
267         this.billNumber = billNumber;
268     }
269 
270     /**
271      * Gets the value of free text note property
272      * @return freeTextNote
273      */
274     public String getFreeTextNote() {
275         return freeTextNote;
276     }
277     /**
278      * Sets the value for machineId property
279      * @param freeTextNote
280      */
281     public void setFreeTextNote(String freeTextNote) {
282         this.freeTextNote = freeTextNote;
283     }
284     /**
285      * Gets the value of total amount property
286      * @return totalAmount
287      */
288     public BigDecimal getTotalAmount() {
289         return totalAmount;
290     }
291     /**
292      * Sets the value for machineId property
293      * @param totalAmount
294      */
295     public void setTotalAmount(BigDecimal totalAmount) {
296         this.totalAmount = totalAmount;
297     }
298     /**
299      * Gets the value of payment amount property
300      * @return paymentAmount
301      */
302     public BigDecimal getPaymentAmount() {
303         return paymentAmount;
304     }
305     /**
306      * Sets the value for machineId property
307      * @param paymentAmount
308      */
309     public void setPaymentAmount(BigDecimal paymentAmount) {
310         this.paymentAmount = paymentAmount;
311     }
312     /**
313      * Gets the value of unpaid balance property
314      * @return unPaidBalance
315      */
316     public BigDecimal getUnPaidBalance() {
317         return unPaidBalance;
318     }
319     /**
320      * Sets the value for machineId property
321      * @param unPaidBalance
322      */
323     public void setUnPaidBalance(BigDecimal unPaidBalance) {
324         this.unPaidBalance = unPaidBalance;
325     }
326     /**
327      * Gets the entity of OlepyamentStatus property
328      * @return olePaymentStatus
329      */
330     public OlePaymentStatus getOlePaymentStatus() {
331         return olePaymentStatus;
332     }
333     /**
334      * Sets the value for machineId property
335      * @param olePaymentStatus
336      */
337     public void setOlePaymentStatus(OlePaymentStatus olePaymentStatus) {
338         this.olePaymentStatus = olePaymentStatus;
339     }
340     /**
341      * Gets the value of paymentStatusName property
342      * @return paymentStatusName
343      */
344     public String getPaymentStatusName() {
345         return olePaymentStatus.getPaymentStatusName();
346     }
347     /**
348      * Sets the value for machineId property
349      * @param paymentStatusName
350      */
351     public void setPaymentStatusName(String paymentStatusName) {
352         this.paymentStatusName = paymentStatusName;
353     }
354     /**
355      * Gets the value of firstName property
356      * @return firstName
357      */
358     public String getFirstName() {
359         return firstName;
360     }
361     /**
362      * Sets the value for machineId property
363      * @param firstName
364      */
365     public void setFirstName(String firstName) {
366         this.firstName = firstName;
367     }
368     /**
369      * Gets the value of lastName property
370      * @return lastName
371      */
372     public String getLastName() {
373         return lastName;
374     }
375     /**
376      * Sets the value for machineId property
377      * @param lastName
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      * Gets the value of billNumber property
434      * @return billNumber
435      */
436     protected LinkedHashMap toStringMapper() {
437         LinkedHashMap toStringMap = new LinkedHashMap();
438         toStringMap.put("billNumber",billNumber);
439         return toStringMap;
440     }
441 }