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    
017    package org.kuali.kfs.module.purap.businessobject;
018    
019    import java.util.LinkedHashMap;
020    
021    import org.kuali.kfs.vnd.businessobject.CampusParameter;
022    import org.kuali.rice.kns.bo.Inactivateable;
023    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
024    
025    /**
026     * Billing Address Business Object.
027     */
028    public class BillingAddress extends PersistableBusinessObjectBase implements Inactivateable{
029    
030        private String billingCampusCode;
031        private String billingName;
032        private String billingLine1Address;
033        private String billingLine2Address;
034        private String billingCityName;
035        private String billingStateCode;
036        private String billingPostalCode;
037        private String billingCountryCode;
038        private String billingPhoneNumber;
039        private boolean active;
040    
041        private CampusParameter billingCampus;
042    
043        /**
044         * Default constructor.
045         */
046        public BillingAddress() {
047    
048        }
049    
050        public String getBillingCampusCode() {
051            return billingCampusCode;
052        }
053    
054        public void setBillingCampusCode(String billingCampusCode) {
055            this.billingCampusCode = billingCampusCode;
056        }
057    
058        public String getBillingName() {
059            return billingName;
060        }
061    
062        public void setBillingName(String billingName) {
063            this.billingName = billingName;
064        }
065    
066        public String getBillingLine1Address() {
067            return billingLine1Address;
068        }
069    
070        public void setBillingLine1Address(String billingLine1Address) {
071            this.billingLine1Address = billingLine1Address;
072        }
073    
074        public String getBillingLine2Address() {
075            return billingLine2Address;
076        }
077    
078        public void setBillingLine2Address(String billingLine2Address) {
079            this.billingLine2Address = billingLine2Address;
080        }
081    
082        public String getBillingCityName() {
083            return billingCityName;
084        }
085    
086        public void setBillingCityName(String billingCityName) {
087            this.billingCityName = billingCityName;
088        }
089    
090        public String getBillingStateCode() {
091            return billingStateCode;
092        }
093    
094        public void setBillingStateCode(String billingStateCode) {
095            this.billingStateCode = billingStateCode;
096        }
097    
098        public String getBillingPostalCode() {
099            return billingPostalCode;
100        }
101    
102        public void setBillingPostalCode(String billingPostalCode) {
103            this.billingPostalCode = billingPostalCode;
104        }
105    
106        public String getBillingCountryCode() {
107            return billingCountryCode;
108        }
109    
110        public void setBillingCountryCode(String billingCountryCode) {
111            this.billingCountryCode = billingCountryCode;
112        }
113    
114        public String getBillingPhoneNumber() {
115            return billingPhoneNumber;
116        }
117    
118        public void setBillingPhoneNumber(String billingPhoneNumber) {
119            this.billingPhoneNumber = billingPhoneNumber;
120        }
121    
122        public CampusParameter getBillingCampus() {
123            return billingCampus;
124        }
125    
126        /**
127         * @deprecated
128         */
129        public void setBillingCampus(CampusParameter billingCampus) {
130            this.billingCampus = billingCampus;
131        }
132    
133        public boolean isActive() {
134            return active;
135        }
136    
137        public void setActive(boolean active) {
138            this.active = active;
139        }
140    
141        /**
142         * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
143         */
144        protected LinkedHashMap toStringMapper() {
145            LinkedHashMap m = new LinkedHashMap();
146            m.put("billingCampusCode", this.billingCampusCode);
147            return m;
148        }
149    }