001    /*
002     * Copyright 2011 The Kuali Foundation.
003     * 
004     * Licensed under the Educational Community License, Version 2.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/ecl2.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.kfs.pdp.businessobject;
017    
018    import java.util.LinkedHashMap;
019    
020    import org.kuali.kfs.pdp.PdpPropertyConstants;
021    import org.kuali.rice.kns.bo.Inactivateable;
022    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
023    import org.kuali.rice.kns.util.KualiInteger;
024    
025    public class PayeeACHAccount extends PersistableBusinessObjectBase implements Inactivateable {
026    
027        private KualiInteger achAccountGeneratedIdentifier;
028        private String bankRoutingNumber;
029        private String bankAccountNumber;
030        private String payeeIdNumber;
031        private String payeeName;
032        private String payeeEmailAddress;
033        private String payeeIdentifierTypeCode;
034        private String achTransactionType;
035        private String bankAccountTypeCode;
036        private boolean active;
037    
038        private ACHBank bankRouting;
039        private ACHTransactionType transactionType;
040        private ACHPayee achPayee;
041    
042        /**
043         * Default constructor.
044         */
045        public PayeeACHAccount() {
046    
047        }
048    
049        /**
050         * Gets the achAccountGeneratedIdentifier attribute.
051         * 
052         * @return Returns the achAccountGeneratedIdentifier
053         */
054        public KualiInteger getAchAccountGeneratedIdentifier() {
055            return achAccountGeneratedIdentifier;
056        }
057    
058        /**
059         * Sets the achAccountGeneratedIdentifier attribute.
060         * 
061         * @param achAccountGeneratedIdentifier The achAccountGeneratedIdentifier to set.
062         */
063        public void setAchAccountGeneratedIdentifier(KualiInteger achAccountGeneratedIdentifier) {
064            this.achAccountGeneratedIdentifier = achAccountGeneratedIdentifier;
065        }
066    
067    
068        /**
069         * Gets the bankRoutingNumber attribute.
070         * 
071         * @return Returns the bankRoutingNumber
072         */
073        public String getBankRoutingNumber() {
074            return bankRoutingNumber;
075        }
076    
077        /**
078         * Sets the bankRoutingNumber attribute.
079         * 
080         * @param bankRoutingNumber The bankRoutingNumber to set.
081         */
082        public void setBankRoutingNumber(String bankRoutingNumber) {
083            this.bankRoutingNumber = bankRoutingNumber;
084        }
085    
086    
087        /**
088         * Gets the bankAccountNumber attribute.
089         * 
090         * @return Returns the bankAccountNumber
091         */
092        public String getBankAccountNumber() {
093            return bankAccountNumber;
094        }
095    
096        /**
097         * Sets the bankAccountNumber attribute.
098         * 
099         * @param bankAccountNumber The bankAccountNumber to set.
100         */
101        public void setBankAccountNumber(String bankAccountNumber) {
102            this.bankAccountNumber = bankAccountNumber;
103        }
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        /**
126         * Gets the payeeEmailAddress attribute.
127         * 
128         * @return Returns the payeeEmailAddress
129         */
130        public String getPayeeEmailAddress() {
131            return payeeEmailAddress;
132        }
133    
134        /**
135         * Sets the payeeEmailAddress attribute.
136         * 
137         * @param payeeEmailAddress The payeeEmailAddress to set.
138         */
139        public void setPayeeEmailAddress(String payeeEmailAddress) {
140            this.payeeEmailAddress = payeeEmailAddress;
141        }
142    
143        /**
144         * Gets the payeeIdentifierTypeCode attribute.
145         * 
146         * @return Returns the payeeIdentifierTypeCode
147         */
148        public String getPayeeIdentifierTypeCode() {
149            return payeeIdentifierTypeCode;
150        }
151    
152        /**
153         * Sets the payeeIdentifierTypeCode attribute.
154         * 
155         * @param payeeIdentifierTypeCode The payeeIdentifierTypeCode to set.
156         */
157        public void setPayeeIdentifierTypeCode(String payeeIdentifierTypeCode) {
158            this.payeeIdentifierTypeCode = payeeIdentifierTypeCode;
159        }
160    
161        /**
162         * Gets the achTransactionType attribute.
163         * 
164         * @return Returns the achTransactionType.
165         */
166        public String getAchTransactionType() {
167            return achTransactionType;
168        }
169    
170        /**
171         * Sets the achTransactionType attribute value.
172         * 
173         * @param achTransactionType The achTransactionType to set.
174         */
175        public void setAchTransactionType(String achTransactionType) {
176            this.achTransactionType = achTransactionType;
177        }
178    
179        /**
180         * Gets the transactionType attribute.
181         * 
182         * @return Returns the transactionType.
183         */
184        public ACHTransactionType getTransactionType() {
185            return transactionType;
186        }
187    
188        /**
189         * Sets the transactionType attribute value.
190         * 
191         * @param transactionType The transactionType to set.
192         */
193        public void setTransactionType(ACHTransactionType transactionType) {
194            this.transactionType = transactionType;
195        }
196    
197        /**
198         * Gets the active attribute.
199         * 
200         * @return Returns the active
201         */
202        public boolean isActive() {
203            return active;
204        }
205    
206        /**
207         * Sets the active attribute.
208         * 
209         * @param active The active to set.
210         */
211        public void setActive(boolean active) {
212            this.active = active;
213        }
214    
215        /**
216         * Gets the bankAccountTypeCode attribute.
217         * 
218         * @return Returns the bankAccountTypeCode.
219         */
220        public String getBankAccountTypeCode() {
221            return bankAccountTypeCode;
222        }
223    
224        /**
225         * Sets the bankAccountTypeCode attribute value.
226         * 
227         * @param bankAccountTypeCode The bankAccountTypeCode to set.
228         */
229        public void setBankAccountTypeCode(String bankAccountTypeCode) {
230            this.bankAccountTypeCode = bankAccountTypeCode;
231        }
232    
233        /**
234         * Gets the bankRouting attribute.
235         * 
236         * @return Returns the bankRouting.
237         */
238        public ACHBank getBankRouting() {
239            return bankRouting;
240        }
241    
242        /**
243         * Sets the bankRouting attribute value.
244         * 
245         * @param bankRouting The bankRouting to set.
246         * @deprecated
247         */
248        public void setBankRouting(ACHBank bankRouting) {
249            this.bankRouting = bankRouting;
250        }
251    
252    
253        /**
254         * Gets the payeeIdNumber attribute.
255         * 
256         * @return Returns the payeeIdNumber.
257         */
258        public String getPayeeIdNumber() {
259            return payeeIdNumber;
260        }
261    
262        /**
263         * Sets the payeeIdNumber attribute value.
264         * 
265         * @param payeeIdNumber The payeeIdNumber to set.
266         */
267        public void setPayeeIdNumber(String payeeIdNumber) {
268            this.payeeIdNumber = payeeIdNumber;
269        }
270    
271    
272        /**
273         * Gets the achPayee attribute.
274         * 
275         * @return Returns the achPayee.
276         */
277        public ACHPayee getAchPayee() {
278            return achPayee;
279        }
280    
281        /**
282         * Sets the achPayee attribute value.
283         * 
284         * @param achPayee The achPayee to set.
285         */
286        public void setAchPayee(ACHPayee achPayee) {
287            this.achPayee = achPayee;
288        }
289    
290        /**
291         * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
292         */
293        protected LinkedHashMap toStringMapper() {
294            LinkedHashMap m = new LinkedHashMap();
295            if (this.achAccountGeneratedIdentifier != null) {
296                m.put(PdpPropertyConstants.ACH_ACCOUNT_GENERATED_IDENTIFIER, this.achAccountGeneratedIdentifier.toString());
297            }
298            return m;
299        }
300    }