View Javadoc

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