001: /*
002: * Copyright 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: package org.kuali.module.pdp.bo;
017:
018: import java.util.LinkedHashMap;
019:
020: import org.kuali.core.bo.PersistableBusinessObjectBase;
021: import org.kuali.module.vendor.bo.VendorDetail;
022:
023: public class PayeeAchAccount extends PersistableBusinessObjectBase {
024:
025: private Integer achAccountGeneratedIdentifier;
026: private String bankRoutingNumber;
027: private String bankAccountNumber;
028: private String payeeName;
029: private String payeeEmailAddress;
030: private Integer vendorHeaderGeneratedIdentifier;
031: private Integer vendorDetailAssignedIdentifier;
032: private String disbVchrPayeeIdNumber;
033: private String personUniversalIdentifier;
034: private String payeeSocialSecurityNumber;
035: private String payeeFederalEmployerIdentificationNumber;
036: private String payeeIdentifierTypeCode;
037: private String psdTransactionCode;
038: private boolean active;
039: private String bankAccountTypeCode;
040:
041: private AchBank bankRouting;
042: private VendorDetail vendorDetail;
043:
044: /**
045: * Default constructor.
046: */
047: public PayeeAchAccount() {
048:
049: }
050:
051: /**
052: * Gets the achAccountGeneratedIdentifier attribute.
053: *
054: * @return Returns the achAccountGeneratedIdentifier
055: */
056: public Integer getAchAccountGeneratedIdentifier() {
057: return achAccountGeneratedIdentifier;
058: }
059:
060: /**
061: * Sets the achAccountGeneratedIdentifier attribute.
062: *
063: * @param achAccountGeneratedIdentifier The achAccountGeneratedIdentifier to set.
064: */
065: public void setAchAccountGeneratedIdentifier(
066: Integer achAccountGeneratedIdentifier) {
067: this .achAccountGeneratedIdentifier = achAccountGeneratedIdentifier;
068: }
069:
070: /**
071: * Gets the bankRoutingNumber attribute.
072: *
073: * @return Returns the bankRoutingNumber
074: */
075: public String getBankRoutingNumber() {
076: return bankRoutingNumber;
077: }
078:
079: /**
080: * Sets the bankRoutingNumber attribute.
081: *
082: * @param bankRoutingNumber The bankRoutingNumber to set.
083: */
084: public void setBankRoutingNumber(String bankRoutingNumber) {
085: this .bankRoutingNumber = bankRoutingNumber;
086: }
087:
088: /**
089: * Gets the bankAccountNumber attribute.
090: *
091: * @return Returns the bankAccountNumber
092: */
093: public String getBankAccountNumber() {
094: return bankAccountNumber;
095: }
096:
097: /**
098: * Sets the bankAccountNumber attribute.
099: *
100: * @param bankAccountNumber The bankAccountNumber to set.
101: */
102: public void setBankAccountNumber(String bankAccountNumber) {
103: this .bankAccountNumber = bankAccountNumber;
104: }
105:
106: /**
107: * Gets the payeeName attribute.
108: *
109: * @return Returns the payeeName
110: */
111: public String getPayeeName() {
112: return payeeName;
113: }
114:
115: /**
116: * Sets the payeeName attribute.
117: *
118: * @param payeeName The payeeName to set.
119: */
120: public void setPayeeName(String payeeName) {
121: this .payeeName = payeeName;
122: }
123:
124: /**
125: * Gets the payeeEmailAddress attribute.
126: *
127: * @return Returns the payeeEmailAddress
128: */
129: public String getPayeeEmailAddress() {
130: return payeeEmailAddress;
131: }
132:
133: /**
134: * Sets the payeeEmailAddress attribute.
135: *
136: * @param payeeEmailAddress The payeeEmailAddress to set.
137: */
138: public void setPayeeEmailAddress(String payeeEmailAddress) {
139: this .payeeEmailAddress = payeeEmailAddress;
140: }
141:
142: /**
143: * Gets the vendorHeaderGeneratedIdentifier attribute.
144: *
145: * @return Returns the vendorHeaderGeneratedIdentifier
146: */
147: public Integer getVendorHeaderGeneratedIdentifier() {
148: return vendorHeaderGeneratedIdentifier;
149: }
150:
151: /**
152: * Sets the vendorHeaderGeneratedIdentifier attribute.
153: *
154: * @param vendorHeaderGeneratedIdentifier The vendorHeaderGeneratedIdentifier to set.
155: */
156: public void setVendorHeaderGeneratedIdentifier(
157: Integer vendorHeaderGeneratedIdentifier) {
158: this .vendorHeaderGeneratedIdentifier = vendorHeaderGeneratedIdentifier;
159: }
160:
161: /**
162: * Gets the vendorDetailAssignedIdentifier attribute.
163: *
164: * @return Returns the vendorDetailAssignedIdentifier
165: */
166: public Integer getVendorDetailAssignedIdentifier() {
167: return vendorDetailAssignedIdentifier;
168: }
169:
170: /**
171: * Sets the vendorDetailAssignedIdentifier attribute.
172: *
173: * @param vendorDetailAssignedIdentifier The vendorDetailAssignedIdentifier to set.
174: */
175: public void setVendorDetailAssignedIdentifier(
176: Integer vendorDetailAssignedIdentifier) {
177: this .vendorDetailAssignedIdentifier = vendorDetailAssignedIdentifier;
178: }
179:
180: /**
181: * Gets the disbVchrPayeeIdNumber attribute.
182: *
183: * @return Returns the disbVchrPayeeIdNumber
184: */
185: public String getDisbVchrPayeeIdNumber() {
186: return disbVchrPayeeIdNumber;
187: }
188:
189: /**
190: * Sets the disbVchrPayeeIdNumber attribute.
191: *
192: * @param disbVchrPayeeIdNumber The disbVchrPayeeIdNumber to set.
193: */
194: public void setDisbVchrPayeeIdNumber(String disbVchrPayeeIdNumber) {
195: this .disbVchrPayeeIdNumber = disbVchrPayeeIdNumber;
196: }
197:
198: /**
199: * Gets the personUniversalIdentifier attribute.
200: *
201: * @return Returns the personUniversalIdentifier
202: */
203: public String getPersonUniversalIdentifier() {
204: return personUniversalIdentifier;
205: }
206:
207: /**
208: * Sets the personUniversalIdentifier attribute.
209: *
210: * @param personUniversalIdentifier The personUniversalIdentifier to set.
211: */
212: public void setPersonUniversalIdentifier(
213: String personUniversalIdentifier) {
214: this .personUniversalIdentifier = personUniversalIdentifier;
215: }
216:
217: /**
218: * Gets the payeeSocialSecurityNumber attribute.
219: *
220: * @return Returns the payeeSocialSecurityNumber
221: */
222: public String getPayeeSocialSecurityNumber() {
223: return payeeSocialSecurityNumber;
224: }
225:
226: /**
227: * Sets the payeeSocialSecurityNumber attribute.
228: *
229: * @param payeeSocialSecurityNumber The payeeSocialSecurityNumber to set.
230: */
231: public void setPayeeSocialSecurityNumber(
232: String payeeSocialSecurityNumber) {
233: this .payeeSocialSecurityNumber = payeeSocialSecurityNumber;
234: }
235:
236: /**
237: * Gets the payeeFederalEmployerIdentificationNumber attribute.
238: *
239: * @return Returns the payeeFederalEmployerIdentificationNumber
240: */
241: public String getPayeeFederalEmployerIdentificationNumber() {
242: return payeeFederalEmployerIdentificationNumber;
243: }
244:
245: /**
246: * Sets the payeeFederalEmployerIdentificationNumber attribute.
247: *
248: * @param payeeFederalEmployerIdentificationNumber The payeeFederalEmployerIdentificationNumber to set.
249: */
250: public void setPayeeFederalEmployerIdentificationNumber(
251: String payeeFederalEmployerIdentificationNumber) {
252: this .payeeFederalEmployerIdentificationNumber = payeeFederalEmployerIdentificationNumber;
253: }
254:
255: /**
256: * Gets the payeeIdentifierTypeCode attribute.
257: *
258: * @return Returns the payeeIdentifierTypeCode
259: */
260: public String getPayeeIdentifierTypeCode() {
261: return payeeIdentifierTypeCode;
262: }
263:
264: /**
265: * Sets the payeeIdentifierTypeCode attribute.
266: *
267: * @param payeeIdentifierTypeCode The payeeIdentifierTypeCode to set.
268: */
269: public void setPayeeIdentifierTypeCode(
270: String payeeIdentifierTypeCode) {
271: this .payeeIdentifierTypeCode = payeeIdentifierTypeCode;
272: }
273:
274: /**
275: * Gets the psdTransactionCode attribute.
276: *
277: * @return Returns the psdTransactionCode
278: */
279: public String getPsdTransactionCode() {
280: return psdTransactionCode;
281: }
282:
283: /**
284: * Sets the psdTransactionCode attribute.
285: *
286: * @param psdTransactionCode The psdTransactionCode to set.
287: */
288: public void setPsdTransactionCode(String psdTransactionCode) {
289: this .psdTransactionCode = psdTransactionCode;
290: }
291:
292: /**
293: * Gets the active attribute.
294: *
295: * @return Returns the active
296: */
297: public boolean isActive() {
298: return active;
299: }
300:
301: /**
302: * Sets the active attribute.
303: *
304: * @param active The active to set.
305: */
306: public void setActive(boolean active) {
307: this .active = active;
308: }
309:
310: /**
311: * Gets the bankAccountTypeCode attribute.
312: *
313: * @return Returns the bankAccountTypeCode.
314: */
315: public String getBankAccountTypeCode() {
316: return bankAccountTypeCode;
317: }
318:
319: /**
320: * Sets the bankAccountTypeCode attribute value.
321: *
322: * @param bankAccountTypeCode The bankAccountTypeCode to set.
323: */
324: public void setBankAccountTypeCode(String bankAccountTypeCode) {
325: this .bankAccountTypeCode = bankAccountTypeCode;
326: }
327:
328: /**
329: * Gets the bankRouting attribute.
330: *
331: * @return Returns the bankRouting.
332: */
333: public AchBank getBankRouting() {
334: return bankRouting;
335: }
336:
337: /**
338: * Sets the bankRouting attribute value.
339: *
340: * @param bankRouting The bankRouting to set.
341: * @deprecated
342: */
343: public void setBankRouting(AchBank bankRouting) {
344: this .bankRouting = bankRouting;
345: }
346:
347: /**
348: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
349: */
350: protected LinkedHashMap toStringMapper() {
351: LinkedHashMap m = new LinkedHashMap();
352: if (this .achAccountGeneratedIdentifier != null) {
353: m.put("achAccountGeneratedIdentifier",
354: this .achAccountGeneratedIdentifier.toString());
355: }
356: return m;
357: }
358:
359: public VendorDetail getVendorDetail() {
360: return vendorDetail;
361: }
362:
363: public void setVendorDetail(VendorDetail vendorDetail) {
364: this .vendorDetail = vendorDetail;
365: }
366:
367: public String getVendorNumber() {
368: // using the code from the VendorDetail to generate the vendor number
369: VendorDetail vDUtil = new VendorDetail();
370: vDUtil
371: .setVendorHeaderGeneratedIdentifier(vendorHeaderGeneratedIdentifier);
372: vDUtil
373: .setVendorDetailAssignedIdentifier(vendorDetailAssignedIdentifier);
374: return vDUtil.getVendorNumber();
375: }
376:
377: public void setVendorNumber(String vendorNumber) {
378: // using the code from the VendorDetail to set the 2 component fields of the vendor number
379: VendorDetail vDUtil = new VendorDetail();
380: vDUtil.setVendorNumber(vendorNumber);
381: setVendorHeaderGeneratedIdentifier(vDUtil
382: .getVendorHeaderGeneratedIdentifier());
383: setVendorDetailAssignedIdentifier(vDUtil
384: .getVendorDetailAssignedIdentifier());
385: }
386: }
|