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.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022: import org.kuali.kfs.KFSPropertyConstants;
023:
024: /**
025: * This class is used to represent a procurement card vendor business object.
026: */
027: public class ProcurementCardVendor extends
028: PersistableBusinessObjectBase {
029:
030: private String documentNumber;
031: private Integer financialDocumentTransactionLineNumber;
032: private String vendorName;
033: private String vendorLine1Address;
034: private String vendorLine2Address;
035: private String vendorCityName;
036: private String vendorStateCode;
037: private String vendorZipCode;
038: private String visaVendorIdentifier;
039: private String vendorOrderNumber;
040: private String transactionMerchantCategoryCode;
041:
042: /**
043: * Default constructor.
044: */
045: public ProcurementCardVendor() {
046:
047: }
048:
049: /**
050: * Gets the documentNumber attribute.
051: *
052: * @return Returns the documentNumber
053: */
054: public String getDocumentNumber() {
055: return documentNumber;
056: }
057:
058: /**
059: * Sets the documentNumber attribute.
060: *
061: * @param documentNumber The documentNumber to set.
062: */
063: public void setDocumentNumber(String documentNumber) {
064: this .documentNumber = documentNumber;
065: }
066:
067: /**
068: * Gets the financialDocumentTransactionLineNumber attribute.
069: *
070: * @return Returns the financialDocumentTransactionLineNumber
071: */
072: public Integer getFinancialDocumentTransactionLineNumber() {
073: return financialDocumentTransactionLineNumber;
074: }
075:
076: /**
077: * Sets the financialDocumentTransactionLineNumber attribute.
078: *
079: * @param financialDocumentTransactionLineNumber The financialDocumentTransactionLineNumber to set.
080: */
081: public void setFinancialDocumentTransactionLineNumber(
082: Integer financialDocumentTransactionLineNumber) {
083: this .financialDocumentTransactionLineNumber = financialDocumentTransactionLineNumber;
084: }
085:
086: /**
087: * Gets the vendorName attribute.
088: *
089: * @return Returns the vendorName
090: */
091: public String getVendorName() {
092: return vendorName;
093: }
094:
095: /**
096: * Sets the vendorName attribute.
097: *
098: * @param vendorName The vendorName to set.
099: */
100: public void setVendorName(String vendorName) {
101: this .vendorName = vendorName;
102: }
103:
104: /**
105: * Gets the vendorLine1Address attribute.
106: *
107: * @return Returns the vendorLine1Address
108: */
109: public String getVendorLine1Address() {
110: return vendorLine1Address;
111: }
112:
113: /**
114: * Sets the vendorLine1Address attribute.
115: *
116: * @param vendorLine1Address The vendorLine1Address to set.
117: */
118: public void setVendorLine1Address(String vendorLine1Address) {
119: this .vendorLine1Address = vendorLine1Address;
120: }
121:
122: /**
123: * Gets the vendorLine2Address attribute.
124: *
125: * @return Returns the vendorLine2Address
126: */
127: public String getVendorLine2Address() {
128: return vendorLine2Address;
129: }
130:
131: /**
132: * Sets the vendorLine2Address attribute.
133: *
134: * @param vendorLine2Address The vendorLine2Address to set.
135: */
136: public void setVendorLine2Address(String vendorLine2Address) {
137: this .vendorLine2Address = vendorLine2Address;
138: }
139:
140: /**
141: * Gets the vendorCityName attribute.
142: *
143: * @return Returns the vendorCityName
144: */
145: public String getVendorCityName() {
146: return vendorCityName;
147: }
148:
149: /**
150: * Sets the vendorCityName attribute.
151: *
152: * @param vendorCityName The vendorCityName to set.
153: */
154: public void setVendorCityName(String vendorCityName) {
155: this .vendorCityName = vendorCityName;
156: }
157:
158: /**
159: * Gets the vendorStateCode attribute.
160: *
161: * @return Returns the vendorStateCode
162: */
163: public String getVendorStateCode() {
164: return vendorStateCode;
165: }
166:
167: /**
168: * Sets the vendorStateCode attribute.
169: *
170: * @param vendorStateCode The vendorStateCode to set.
171: */
172: public void setVendorStateCode(String vendorStateCode) {
173: this .vendorStateCode = vendorStateCode;
174: }
175:
176: /**
177: * Gets the vendorZipCode attribute.
178: *
179: * @return Returns the vendorZipCode
180: */
181: public String getVendorZipCode() {
182: return vendorZipCode;
183: }
184:
185: /**
186: * Sets the vendorZipCode attribute.
187: *
188: * @param vendorZipCode The vendorZipCode to set.
189: */
190: public void setVendorZipCode(String vendorZipCode) {
191: this .vendorZipCode = vendorZipCode;
192: }
193:
194: /**
195: * Gets the visaVendorIdentifier attribute.
196: *
197: * @return Returns the visaVendorIdentifier
198: */
199: public String getVisaVendorIdentifier() {
200: return visaVendorIdentifier;
201: }
202:
203: /**
204: * Sets the visaVendorIdentifier attribute.
205: *
206: * @param visaVendorIdentifier The visaVendorIdentifier to set.
207: */
208: public void setVisaVendorIdentifier(String visaVendorIdentifier) {
209: this .visaVendorIdentifier = visaVendorIdentifier;
210: }
211:
212: /**
213: * Gets the vendorOrderNumber attribute.
214: *
215: * @return Returns the vendorOrderNumber
216: */
217: public String getVendorOrderNumber() {
218: return vendorOrderNumber;
219: }
220:
221: /**
222: * Sets the vendorOrderNumber attribute.
223: *
224: * @param vendorOrderNumber The vendorOrderNumber to set.
225: */
226: public void setVendorOrderNumber(String vendorOrderNumber) {
227: this .vendorOrderNumber = vendorOrderNumber;
228: }
229:
230: /**
231: * Gets the transactionMerchantCategoryCode attribute.
232: *
233: * @return Returns the transactionMerchantCategoryCode
234: */
235: public String getTransactionMerchantCategoryCode() {
236: return transactionMerchantCategoryCode;
237: }
238:
239: /**
240: * Sets the transactionMerchantCategoryCode attribute.
241: *
242: * @param transactionMerchantCategoryCode The transactionMerchantCategoryCode to set.
243: */
244: public void setTransactionMerchantCategoryCode(
245: String transactionMerchantCategoryCode) {
246: this .transactionMerchantCategoryCode = transactionMerchantCategoryCode;
247: }
248:
249: /**
250: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
251: */
252: protected LinkedHashMap toStringMapper() {
253: LinkedHashMap m = new LinkedHashMap();
254: m
255: .put(KFSPropertyConstants.DOCUMENT_NUMBER,
256: this .documentNumber);
257: if (this .financialDocumentTransactionLineNumber != null) {
258: m.put("financialDocumentTransactionLineNumber",
259: this.financialDocumentTransactionLineNumber
260: .toString());
261: }
262: return m;
263: }
264: }
|