001: /*
002: * Copyright 2006-2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.opensource.org/licenses/ecl1.php
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: */
016:
017: package org.kuali.module.financial.bo;
018:
019: import java.sql.Date;
020: import java.util.LinkedHashMap;
021:
022: import org.kuali.core.bo.PersistableBusinessObjectBase;
023: import org.kuali.core.util.KualiDecimal;
024: import org.kuali.kfs.KFSPropertyConstants;
025:
026: /**
027: * This class represents the CreditCardDetail business object, which is a single record on the Credit Card Receipts Document
028: * representing a single credit card receipt. This is a type of advance deposit.
029: */
030: public class CreditCardDetail extends PersistableBusinessObjectBase {
031: private String documentNumber;
032: private String financialDocumentTypeCode;
033: private String financialDocumentColumnTypeCode;
034: private Integer financialDocumentLineNumber;
035: private String financialDocumentCreditCardTypeCode;
036: private String financialDocumentCreditCardVendorNumber;
037: private Date creditCardDepositDate;
038: private String creditCardDepositReferenceNumber;
039: private KualiDecimal creditCardAdvanceDepositAmount;
040:
041: private CreditCardType financialDocumentCreditCardType;
042: private CreditCardVendor financialDocumentCreditCardVendor;
043:
044: /**
045: * Default constructor.
046: */
047: public CreditCardDetail() {
048: super ();
049: this .financialDocumentLineNumber = new Integer(1);
050: this .creditCardAdvanceDepositAmount = new KualiDecimal(0);
051: }
052:
053: /**
054: * Gets the documentNumber attribute.
055: *
056: * @return Returns the documentNumber
057: */
058: public String getDocumentNumber() {
059: return documentNumber;
060: }
061:
062: /**
063: * Sets the documentNumber attribute.
064: *
065: * @param documentNumber The documentNumber to set.
066: */
067: public void setDocumentNumber(String documentNumber) {
068: this .documentNumber = documentNumber;
069: }
070:
071: /**
072: * Gets the financialDocumentTypeCode attribute.
073: *
074: * @return Returns the financialDocumentTypeCode
075: */
076: public String getFinancialDocumentTypeCode() {
077: return financialDocumentTypeCode;
078: }
079:
080: /**
081: * Sets the financialDocumentTypeCode attribute.
082: *
083: * @param financialDocumentTypeCode The financialDocumentTypeCode to set.
084: */
085: public void setFinancialDocumentTypeCode(
086: String financialDocumentTypeCode) {
087: this .financialDocumentTypeCode = financialDocumentTypeCode;
088: }
089:
090: /**
091: * Gets the financialDocumentColumnTypeCode attribute.
092: *
093: * @return Returns the financialDocumentColumnTypeCode
094: */
095: public String getFinancialDocumentColumnTypeCode() {
096: return financialDocumentColumnTypeCode;
097: }
098:
099: /**
100: * Sets the financialDocumentColumnTypeCode attribute.
101: *
102: * @param financialDocumentColumnTypeCode The financialDocumentColumnTypeCode to set.
103: */
104: public void setFinancialDocumentColumnTypeCode(
105: String financialDocumentColumnTypeCode) {
106: this .financialDocumentColumnTypeCode = financialDocumentColumnTypeCode;
107: }
108:
109: /**
110: * Gets the financialDocumentLineNumber attribute.
111: *
112: * @return Returns the financialDocumentLineNumber
113: */
114: public Integer getFinancialDocumentLineNumber() {
115: return financialDocumentLineNumber;
116: }
117:
118: /**
119: * Sets the financialDocumentLineNumber attribute.
120: *
121: * @param financialDocumentLineNumber The financialDocumentLineNumber to set.
122: */
123: public void setFinancialDocumentLineNumber(
124: Integer financialDocumentLineNumber) {
125: this .financialDocumentLineNumber = financialDocumentLineNumber;
126: }
127:
128: /**
129: * Gets the financialDocumentCreditCardTypeCode attribute.
130: *
131: * @return Returns the financialDocumentCreditCardTypeCode
132: */
133: public String getFinancialDocumentCreditCardTypeCode() {
134: return financialDocumentCreditCardTypeCode;
135: }
136:
137: /**
138: * Sets the financialDocumentCreditCardTypeCode attribute.
139: *
140: * @param financialDocumentCreditCardTypeCode The financialDocumentCreditCardTypeCode to set.
141: */
142: public void setFinancialDocumentCreditCardTypeCode(
143: String financialDocumentCreditCardTypeCode) {
144: this .financialDocumentCreditCardTypeCode = financialDocumentCreditCardTypeCode;
145: }
146:
147: /**
148: * Gets the financialDocumentCreditCardVendorNumber attribute.
149: *
150: * @return Returns the financialDocumentCreditCardVendorNumber
151: */
152: public String getFinancialDocumentCreditCardVendorNumber() {
153: return financialDocumentCreditCardVendorNumber;
154: }
155:
156: /**
157: * Sets the financialDocumentCreditCardVendorNumber attribute.
158: *
159: * @param financialDocumentCreditCardVendorNumber The financialDocumentCreditCardVendorNumber to set.
160: */
161: public void setFinancialDocumentCreditCardVendorNumber(
162: String financialDocumentCreditCardVendorNumber) {
163: this .financialDocumentCreditCardVendorNumber = financialDocumentCreditCardVendorNumber;
164: }
165:
166: /**
167: * Gets the creditCardDepositDate attribute.
168: *
169: * @return Returns the creditCardDepositDate
170: */
171: public Date getCreditCardDepositDate() {
172: return creditCardDepositDate;
173: }
174:
175: /**
176: * Sets the creditCardDepositDate attribute.
177: *
178: * @param creditCardDepositDate The creditCardDepositDate to set.
179: */
180: public void setCreditCardDepositDate(Date creditCardDepositDate) {
181: this .creditCardDepositDate = creditCardDepositDate;
182: }
183:
184: /**
185: * Gets the creditCardDepositReferenceNumber attribute.
186: *
187: * @return Returns the creditCardDepositReferenceNumber
188: */
189: public String getCreditCardDepositReferenceNumber() {
190: return creditCardDepositReferenceNumber;
191: }
192:
193: /**
194: * Sets the creditCardDepositReferenceNumber attribute.
195: *
196: * @param creditCardDepositReferenceNumber The creditCardDepositReferenceNumber to set.
197: */
198: public void setCreditCardDepositReferenceNumber(
199: String creditCardDepositReferenceNumber) {
200: this .creditCardDepositReferenceNumber = creditCardDepositReferenceNumber;
201: }
202:
203: /**
204: * Gets the creditCardAdvanceDepositAmount attribute.
205: *
206: * @return Returns the creditCardAdvanceDepositAmount
207: */
208: public KualiDecimal getCreditCardAdvanceDepositAmount() {
209: return creditCardAdvanceDepositAmount;
210: }
211:
212: /**
213: * Sets the creditCardAdvanceDepositAmount attribute.
214: *
215: * @param creditCardAdvanceDepositAmount The creditCardAdvanceDepositAmount to set.
216: */
217: public void setCreditCardAdvanceDepositAmount(
218: KualiDecimal creditCardAdvanceDepositAmount) {
219: this .creditCardAdvanceDepositAmount = creditCardAdvanceDepositAmount;
220: }
221:
222: /**
223: * @return Returns the financialDocumentCreditCardType.
224: */
225: public CreditCardType getFinancialDocumentCreditCardType() {
226: return financialDocumentCreditCardType;
227: }
228:
229: /**
230: * @param financialDocumentCreditCardType The financialDocumentCreditCardType to set.
231: * @deprecated
232: */
233: public void setFinancialDocumentCreditCardType(
234: CreditCardType financialDocumentCreditCardType) {
235: this .financialDocumentCreditCardType = financialDocumentCreditCardType;
236: }
237:
238: /**
239: * @return Returns the financialDocumentCreditCardVendor.
240: */
241: public CreditCardVendor getFinancialDocumentCreditCardVendor() {
242: return financialDocumentCreditCardVendor;
243: }
244:
245: /**
246: * @param financialDocumentCreditCardVendor The financialDocumentCreditCardVendor to set.
247: */
248: public void setFinancialDocumentCreditCardVendor(
249: CreditCardVendor financialDocumentCreditCardVendor) {
250: this .financialDocumentCreditCardVendor = financialDocumentCreditCardVendor;
251: }
252:
253: /**
254: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
255: */
256: protected LinkedHashMap toStringMapper() {
257: LinkedHashMap m = new LinkedHashMap();
258: m
259: .put(KFSPropertyConstants.DOCUMENT_NUMBER,
260: this .documentNumber);
261: m.put("financialDocumentTypeCode",
262: this .financialDocumentTypeCode);
263: m.put("financialDocumentColumnTypeCode",
264: this .financialDocumentColumnTypeCode);
265: if (this .financialDocumentLineNumber != null) {
266: m.put("financialDocumentLineNumber",
267: this.financialDocumentLineNumber.toString());
268: }
269: return m;
270: }
271: }
|