001: /*
002: * Copyright 2005-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.sql.Timestamp;
021: import java.util.LinkedHashMap;
022:
023: import org.kuali.core.bo.PersistableBusinessObjectBase;
024:
025: /**
026: * This class is used to represent a payee business object. A payee is an individual or entity which is being
027: * reimbursed for some service performed or goods received.
028: */
029: public class Payee extends PersistableBusinessObjectBase {
030:
031: private String payeeIdNumber;
032: private String taxIdNumber;
033: private String taxpayerTypeCode;
034: private String payeePersonName;
035: private String payeeLine1Addr;
036: private String payeeLine2Addr;
037: private String payeeCityName;
038: private String payeeStateCode;
039: private String payeeZipCode;
040: private String payeeCountryCode;
041: private String taxpayerLine1Addr;
042: private String taxpayerLine2Addr;
043: private String taxpayerCityName;
044: private String taxpayerStateCode;
045: private String taxpayerZipCode;
046: private String taxpayerCountryCode;
047: private String payeeOwnershipTypCd;
048: private boolean payeeTaxCode;
049: private String payeeTaxControlCode;
050: private Date payeeTaxCtrlMdfyDt;
051: private Date payeeEntryDate;
052: private boolean alienPaymentCode;
053: private boolean payeeW9CompleteCode;
054: private boolean payeeActiveCode;
055: private Timestamp payeeLastPaidDate;
056: private boolean payeeEmployeeCode;
057: private boolean payeeRevolvingFundCode;
058:
059: private OwnershipTypeCode payeeOwnershipTyp;
060: private TaxControlCode payeeTaxControl;
061:
062: /**
063: * Default no-arg constructor.
064: */
065: public Payee() {
066: payeeActiveCode = false;
067: }
068:
069: /**
070: * @return Returns the alienPaymentCode.
071: */
072: public boolean isAlienPaymentCode() {
073: return alienPaymentCode;
074: }
075:
076: /**
077: * @param alienPaymentCode The alienPaymentCode to set.
078: */
079: public void setAlienPaymentCode(boolean alienPaymentCode) {
080: this .alienPaymentCode = alienPaymentCode;
081: }
082:
083: /**
084: * @return Returns the payeeActiveCode.
085: */
086: public boolean isPayeeActiveCode() {
087: return payeeActiveCode;
088: }
089:
090: /**
091: * @param payeeActiveCode The payeeActiveCode to set.
092: */
093: public void setPayeeActiveCode(boolean payeeActiveCode) {
094: this .payeeActiveCode = payeeActiveCode;
095: }
096:
097: /**
098: * @return Returns the payeeCityName.
099: */
100: public String getPayeeCityName() {
101: return payeeCityName;
102: }
103:
104: /**
105: * @param payeeCityName The payeeCityName to set.
106: */
107: public void setPayeeCityName(String payeeCityName) {
108: this .payeeCityName = payeeCityName;
109: }
110:
111: /**
112: * @return Returns the payeeCountryCode.
113: */
114: public String getPayeeCountryCode() {
115: return payeeCountryCode;
116: }
117:
118: /**
119: * @param payeeCountryCode The payeeCountryCode to set.
120: */
121: public void setPayeeCountryCode(String payeeCountryCode) {
122: this .payeeCountryCode = payeeCountryCode;
123: }
124:
125: /**
126: * @return Returns the payeeEmployeeCode.
127: */
128: public boolean isPayeeEmployeeCode() {
129: return payeeEmployeeCode;
130: }
131:
132: /**
133: * @param payeeEmployeeCode The payeeEmployeeCode to set.
134: */
135: public void setPayeeEmployeeCode(boolean payeeEmployeeCode) {
136: this .payeeEmployeeCode = payeeEmployeeCode;
137: }
138:
139: /**
140: * @return Returns the payeeEntryDate.
141: */
142: public Date getPayeeEntryDate() {
143: return payeeEntryDate;
144: }
145:
146: /**
147: * @param payeeEntryDate The payeeEntryDate to set.
148: */
149: public void setPayeeEntryDate(Date payeeEntryDate) {
150: this .payeeEntryDate = payeeEntryDate;
151: }
152:
153: /**
154: * @return Returns the payeeIdNumber.
155: */
156: public String getPayeeIdNumber() {
157: return payeeIdNumber;
158: }
159:
160: /**
161: * @param payeeIdNumber The payeeIdNumber to set.
162: */
163: public void setPayeeIdNumber(String payeeIdNumber) {
164: this .payeeIdNumber = payeeIdNumber;
165: }
166:
167: /**
168: * @return Returns the payeeLastPaidDate.
169: */
170: public Timestamp getPayeeLastPaidDate() {
171: return payeeLastPaidDate;
172: }
173:
174: /**
175: * @param payeeLastPaidDate The payeeLastPaidDate to set.
176: */
177: public void setPayeeLastPaidDate(Timestamp payeeLastPaidDate) {
178: this .payeeLastPaidDate = payeeLastPaidDate;
179: }
180:
181: /**
182: * @return Returns the payeeLine1Addr.
183: */
184: public String getPayeeLine1Addr() {
185: return payeeLine1Addr;
186: }
187:
188: /**
189: * @param payeeLine1Addr The payeeLine1Addr to set.
190: */
191: public void setPayeeLine1Addr(String payeeLine1Addr) {
192: this .payeeLine1Addr = payeeLine1Addr;
193: }
194:
195: /**
196: * @return Returns the payeeLine2Addr.
197: */
198: public String getPayeeLine2Addr() {
199: return payeeLine2Addr;
200: }
201:
202: /**
203: * @param payeeLine2Addr The payeeLine2Addr to set.
204: */
205: public void setPayeeLine2Addr(String payeeLine2Addr) {
206: this .payeeLine2Addr = payeeLine2Addr;
207: }
208:
209: /**
210: * @return Returns the payeeOwnershipTyp.
211: */
212: public OwnershipTypeCode getPayeeOwnershipTyp() {
213: return payeeOwnershipTyp;
214: }
215:
216: /**
217: * @param payeeOwnershipTyp The payeeOwnershipTyp to set.
218: */
219: public void setPayeeOwnershipTyp(OwnershipTypeCode payeeOwnershipTyp) {
220: this .payeeOwnershipTyp = payeeOwnershipTyp;
221: }
222:
223: /**
224: * @return Returns the payeeOwnershipTypCd.
225: */
226: public String getPayeeOwnershipTypCd() {
227: return payeeOwnershipTypCd;
228: }
229:
230: /**
231: * @param payeeOwnershipTypCd The payeeOwnershipTypCd to set.
232: */
233: public void setPayeeOwnershipTypCd(String payeeOwnershipTypCd) {
234: this .payeeOwnershipTypCd = payeeOwnershipTypCd;
235: }
236:
237: /**
238: * @return Returns the payeePersonName.
239: */
240: public String getPayeePersonName() {
241: return payeePersonName;
242: }
243:
244: /**
245: * @param payeePersonName The payeePersonName to set.
246: */
247: public void setPayeePersonName(String payeePersonName) {
248: this .payeePersonName = payeePersonName;
249: }
250:
251: /**
252: * @return Returns the payeeRevolvingFundCode.
253: */
254: public boolean isPayeeRevolvingFundCode() {
255: return payeeRevolvingFundCode;
256: }
257:
258: /**
259: * @param payeeRevolvingFundCode The payeeRevolvingFundCode to set.
260: */
261: public void setPayeeRevolvingFundCode(boolean payeeRevolvingFundCode) {
262: this .payeeRevolvingFundCode = payeeRevolvingFundCode;
263: }
264:
265: /**
266: * @return Returns the payeeStateCode.
267: */
268: public String getPayeeStateCode() {
269: return payeeStateCode;
270: }
271:
272: /**
273: * @param payeeStateCode The payeeStateCode to set.
274: */
275: public void setPayeeStateCode(String payeeStateCode) {
276: this .payeeStateCode = payeeStateCode;
277: }
278:
279: /**
280: * @return Returns the payeeTaxCode.
281: */
282: public boolean isPayeeTaxCode() {
283: return payeeTaxCode;
284: }
285:
286: /**
287: * @param payeeTaxCode The payeeTaxCode to set.
288: */
289: public void setPayeeTaxCode(boolean payeeTaxCode) {
290: this .payeeTaxCode = payeeTaxCode;
291: }
292:
293: /**
294: * @return Returns the payeeTaxControl.
295: */
296: public TaxControlCode getPayeeTaxControl() {
297: return payeeTaxControl;
298: }
299:
300: /**
301: * @param payeeTaxControl The payeeTaxControl to set.
302: */
303: public void setPayeeTaxControl(TaxControlCode payeeTaxControl) {
304: this .payeeTaxControl = payeeTaxControl;
305: }
306:
307: /**
308: * @return Returns the payeeTaxControlCode.
309: */
310: public String getPayeeTaxControlCode() {
311: return payeeTaxControlCode;
312: }
313:
314: /**
315: * @param payeeTaxControlCode The payeeTaxControlCode to set.
316: */
317: public void setPayeeTaxControlCode(String payeeTaxControlCode) {
318: this .payeeTaxControlCode = payeeTaxControlCode;
319: }
320:
321: /**
322: * @return Returns the payeeTaxCtrlMdfyDt.
323: */
324: public Date getPayeeTaxCtrlMdfyDt() {
325: return payeeTaxCtrlMdfyDt;
326: }
327:
328: /**
329: * @param payeeTaxCtrlMdfyDt The payeeTaxCtrlMdfyDt to set.
330: */
331: public void setPayeeTaxCtrlMdfyDt(Date payeeTaxCtrlMdfyDt) {
332: this .payeeTaxCtrlMdfyDt = payeeTaxCtrlMdfyDt;
333: }
334:
335: /**
336: * @return Returns the payeeW9CompleteCode.
337: */
338: public boolean isPayeeW9CompleteCode() {
339: return payeeW9CompleteCode;
340: }
341:
342: /**
343: * @param payeeW9CompleteCode The payeeW9CompleteCode to set.
344: */
345: public void setPayeeW9CompleteCode(boolean payeeW9CompleteCode) {
346: this .payeeW9CompleteCode = payeeW9CompleteCode;
347: }
348:
349: /**
350: * @return Returns the payeeZipCode.
351: */
352: public String getPayeeZipCode() {
353: return payeeZipCode;
354: }
355:
356: /**
357: * @param payeeZipCode The payeeZipCode to set.
358: */
359: public void setPayeeZipCode(String payeeZipCode) {
360: this .payeeZipCode = payeeZipCode;
361: }
362:
363: /**
364: * @return Returns the taxIdNumber.
365: */
366: public String getTaxIdNumber() {
367: return taxIdNumber;
368: }
369:
370: /**
371: * @param taxIdNumber The taxIdNumber to set.
372: */
373: public void setTaxIdNumber(String taxIdNumber) {
374: this .taxIdNumber = taxIdNumber;
375: }
376:
377: /**
378: * @return Returns the taxpayerCityName.
379: */
380: public String getTaxpayerCityName() {
381: return taxpayerCityName;
382: }
383:
384: /**
385: * @param taxpayerCityName The taxpayerCityName to set.
386: */
387: public void setTaxpayerCityName(String taxpayerCityName) {
388: this .taxpayerCityName = taxpayerCityName;
389: }
390:
391: /**
392: * @return Returns the taxpayerCountryCode.
393: */
394: public String getTaxpayerCountryCode() {
395: return taxpayerCountryCode;
396: }
397:
398: /**
399: * @param taxpayerCountryCode The taxpayerCountryCode to set.
400: */
401: public void setTaxpayerCountryCode(String taxpayerCountryCode) {
402: this .taxpayerCountryCode = taxpayerCountryCode;
403: }
404:
405: /**
406: * @return Returns the taxpayerLine1Addr.
407: */
408: public String getTaxpayerLine1Addr() {
409: return taxpayerLine1Addr;
410: }
411:
412: /**
413: * @param taxpayerLine1Addr The taxpayerLine1Addr to set.
414: */
415: public void setTaxpayerLine1Addr(String taxpayerLine1Addr) {
416: this .taxpayerLine1Addr = taxpayerLine1Addr;
417: }
418:
419: /**
420: * @return Returns the taxpayerLine2Addr.
421: */
422: public String getTaxpayerLine2Addr() {
423: return taxpayerLine2Addr;
424: }
425:
426: /**
427: * @param taxpayerLine2Addr The taxpayerLine2Addr to set.
428: */
429: public void setTaxpayerLine2Addr(String taxpayerLine2Addr) {
430: this .taxpayerLine2Addr = taxpayerLine2Addr;
431: }
432:
433: /**
434: * @return Returns the taxpayerStateCode.
435: */
436: public String getTaxpayerStateCode() {
437: return taxpayerStateCode;
438: }
439:
440: /**
441: * @param taxpayerStateCode The taxpayerStateCode to set.
442: */
443: public void setTaxpayerStateCode(String taxpayerStateCode) {
444: this .taxpayerStateCode = taxpayerStateCode;
445: }
446:
447: /**
448: * @return Returns the taxpayerTypeCode.
449: */
450: public String getTaxpayerTypeCode() {
451: return taxpayerTypeCode;
452: }
453:
454: /**
455: * @param taxpayerTypeCode The taxpayerTypeCode to set.
456: */
457: public void setTaxpayerTypeCode(String taxpayerTypeCode) {
458: this .taxpayerTypeCode = taxpayerTypeCode;
459: }
460:
461: /**
462: * @return Returns the taxpayerZipCode.
463: */
464: public String getTaxpayerZipCode() {
465: return taxpayerZipCode;
466: }
467:
468: /**
469: * @param taxpayerZipCode The taxpayerZipCode to set.
470: */
471: public void setTaxpayerZipCode(String taxpayerZipCode) {
472: this .taxpayerZipCode = taxpayerZipCode;
473: }
474:
475: /**
476: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
477: */
478: protected LinkedHashMap toStringMapper() {
479: LinkedHashMap m = new LinkedHashMap();
480: m.put("payeeIdNumber", this.payeeIdNumber);
481: return m;
482: }
483:
484: }
|