View Javadoc
1   /*
2    * Copyright 2006 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package org.kuali.ole.fp.businessobject;
18  
19  import java.sql.Date;
20  import java.util.LinkedHashMap;
21  
22  import org.kuali.ole.sys.OLEPropertyConstants;
23  import org.kuali.rice.core.api.util.type.KualiDecimal;
24  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
25  
26  /**
27   * This class represents the CreditCardDetail business object, which is a single record on the Credit Card Receipts Document
28   * representing a single credit card receipt. This is a type of advance deposit.
29   */
30  public class CreditCardDetail extends PersistableBusinessObjectBase {
31      private String documentNumber;
32      private String financialDocumentTypeCode;
33      private Integer financialDocumentLineNumber;
34      private String financialDocumentCreditCardTypeCode;
35      private String financialDocumentCreditCardVendorNumber;
36      private Date creditCardDepositDate;
37      private String creditCardDepositReferenceNumber;
38      private KualiDecimal creditCardAdvanceDepositAmount;
39  
40      private CreditCardType financialDocumentCreditCardType;
41      private CreditCardVendor financialDocumentCreditCardVendor;
42  
43      /**
44       * Default constructor.
45       */
46      public CreditCardDetail() {
47          super();
48          
49          this.financialDocumentLineNumber = new Integer(1);
50          this.creditCardAdvanceDepositAmount = KualiDecimal.ZERO;
51      }
52  
53      /**
54       * Gets the documentNumber attribute.
55       * 
56       * @return Returns the documentNumber
57       */
58      public String getDocumentNumber() {
59          return documentNumber;
60      }
61  
62      /**
63       * Sets the documentNumber attribute.
64       * 
65       * @param documentNumber The documentNumber to set.
66       */
67      public void setDocumentNumber(String documentNumber) {
68          this.documentNumber = documentNumber;
69      }
70  
71  
72      /**
73       * Gets the financialDocumentTypeCode attribute.
74       * 
75       * @return Returns the financialDocumentTypeCode
76       */
77      public String getFinancialDocumentTypeCode() {
78          return financialDocumentTypeCode;
79      }
80  
81      /**
82       * Sets the financialDocumentTypeCode attribute.
83       * 
84       * @param financialDocumentTypeCode The financialDocumentTypeCode to set.
85       */
86      public void setFinancialDocumentTypeCode(String financialDocumentTypeCode) {
87          this.financialDocumentTypeCode = financialDocumentTypeCode;
88      }
89  
90      /**
91       * Gets the financialDocumentLineNumber attribute.
92       * 
93       * @return Returns the financialDocumentLineNumber
94       */
95      public Integer getFinancialDocumentLineNumber() {
96          return financialDocumentLineNumber;
97      }
98  
99      /**
100      * Sets the financialDocumentLineNumber attribute.
101      * 
102      * @param financialDocumentLineNumber The financialDocumentLineNumber to set.
103      */
104     public void setFinancialDocumentLineNumber(Integer financialDocumentLineNumber) {
105         this.financialDocumentLineNumber = financialDocumentLineNumber;
106     }
107 
108 
109     /**
110      * Gets the financialDocumentCreditCardTypeCode attribute.
111      * 
112      * @return Returns the financialDocumentCreditCardTypeCode
113      */
114     public String getFinancialDocumentCreditCardTypeCode() {
115         return financialDocumentCreditCardTypeCode;
116     }
117 
118     /**
119      * Sets the financialDocumentCreditCardTypeCode attribute.
120      * 
121      * @param financialDocumentCreditCardTypeCode The financialDocumentCreditCardTypeCode to set.
122      */
123     public void setFinancialDocumentCreditCardTypeCode(String financialDocumentCreditCardTypeCode) {
124         this.financialDocumentCreditCardTypeCode = financialDocumentCreditCardTypeCode;
125     }
126 
127 
128     /**
129      * Gets the financialDocumentCreditCardVendorNumber attribute.
130      * 
131      * @return Returns the financialDocumentCreditCardVendorNumber
132      */
133     public String getFinancialDocumentCreditCardVendorNumber() {
134         return financialDocumentCreditCardVendorNumber;
135     }
136 
137     /**
138      * Sets the financialDocumentCreditCardVendorNumber attribute.
139      * 
140      * @param financialDocumentCreditCardVendorNumber The financialDocumentCreditCardVendorNumber to set.
141      */
142     public void setFinancialDocumentCreditCardVendorNumber(String financialDocumentCreditCardVendorNumber) {
143         this.financialDocumentCreditCardVendorNumber = financialDocumentCreditCardVendorNumber;
144     }
145 
146 
147     /**
148      * Gets the creditCardDepositDate attribute.
149      * 
150      * @return Returns the creditCardDepositDate
151      */
152     public Date getCreditCardDepositDate() {
153         return creditCardDepositDate;
154     }
155 
156     /**
157      * Sets the creditCardDepositDate attribute.
158      * 
159      * @param creditCardDepositDate The creditCardDepositDate to set.
160      */
161     public void setCreditCardDepositDate(Date creditCardDepositDate) {
162         this.creditCardDepositDate = creditCardDepositDate;
163     }
164 
165 
166     /**
167      * Gets the creditCardDepositReferenceNumber attribute.
168      * 
169      * @return Returns the creditCardDepositReferenceNumber
170      */
171     public String getCreditCardDepositReferenceNumber() {
172         return creditCardDepositReferenceNumber;
173     }
174 
175     /**
176      * Sets the creditCardDepositReferenceNumber attribute.
177      * 
178      * @param creditCardDepositReferenceNumber The creditCardDepositReferenceNumber to set.
179      */
180     public void setCreditCardDepositReferenceNumber(String creditCardDepositReferenceNumber) {
181         this.creditCardDepositReferenceNumber = creditCardDepositReferenceNumber;
182     }
183 
184 
185     /**
186      * Gets the creditCardAdvanceDepositAmount attribute.
187      * 
188      * @return Returns the creditCardAdvanceDepositAmount
189      */
190     public KualiDecimal getCreditCardAdvanceDepositAmount() {
191         return creditCardAdvanceDepositAmount;
192     }
193 
194     /**
195      * Sets the creditCardAdvanceDepositAmount attribute.
196      * 
197      * @param creditCardAdvanceDepositAmount The creditCardAdvanceDepositAmount to set.
198      */
199     public void setCreditCardAdvanceDepositAmount(KualiDecimal creditCardAdvanceDepositAmount) {
200         this.creditCardAdvanceDepositAmount = creditCardAdvanceDepositAmount;
201     }
202 
203     /**
204      * @return Returns the financialDocumentCreditCardType.
205      */
206     public CreditCardType getFinancialDocumentCreditCardType() {
207         return financialDocumentCreditCardType;
208     }
209 
210     /**
211      * @param financialDocumentCreditCardType The financialDocumentCreditCardType to set.
212      * @deprecated
213      */
214     public void setFinancialDocumentCreditCardType(CreditCardType financialDocumentCreditCardType) {
215         this.financialDocumentCreditCardType = financialDocumentCreditCardType;
216     }
217 
218     /**
219      * @return Returns the financialDocumentCreditCardVendor.
220      */
221     public CreditCardVendor getFinancialDocumentCreditCardVendor() {
222         return financialDocumentCreditCardVendor;
223     }
224 
225     /**
226      * @param financialDocumentCreditCardVendor The financialDocumentCreditCardVendor to set.
227      */
228     public void setFinancialDocumentCreditCardVendor(CreditCardVendor financialDocumentCreditCardVendor) {
229         this.financialDocumentCreditCardVendor = financialDocumentCreditCardVendor;
230     }
231 
232     /**
233      * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
234      */
235     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
236         LinkedHashMap m = new LinkedHashMap();
237         m.put(OLEPropertyConstants.DOCUMENT_NUMBER, this.documentNumber);
238         m.put("financialDocumentTypeCode", this.financialDocumentTypeCode);
239         if (this.financialDocumentLineNumber != null) {
240             m.put("financialDocumentLineNumber", this.financialDocumentLineNumber.toString());
241         }
242         return m;
243     }
244 }