1 /*
2 * Copyright 2006 The Kuali Foundation
3 *
4 * Licensed under the Educational Community License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/ecl2.php
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package org.kuali.ole.fp.businessobject;
18
19 import java.util.LinkedHashMap;
20
21 import org.kuali.ole.sys.OLEPropertyConstants;
22 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
23
24 /**
25 * This class is used to represent a procurement card vendor business object.
26 */
27 public class ProcurementCardVendor extends PersistableBusinessObjectBase {
28
29 private String documentNumber;
30 private Integer financialDocumentTransactionLineNumber;
31 private String vendorName;
32 private String vendorLine1Address;
33 private String vendorLine2Address;
34 private String vendorCityName;
35 private String vendorStateCode;
36 private String vendorZipCode;
37 private String visaVendorIdentifier;
38 private String vendorOrderNumber;
39 private String transactionMerchantCategoryCode;
40
41 /**
42 * Default constructor.
43 */
44 public ProcurementCardVendor() {
45
46 }
47
48 /**
49 * Gets the documentNumber attribute.
50 *
51 * @return Returns the documentNumber
52 */
53 public String getDocumentNumber() {
54 return documentNumber;
55 }
56
57 /**
58 * Sets the documentNumber attribute.
59 *
60 * @param documentNumber The documentNumber to set.
61 */
62 public void setDocumentNumber(String documentNumber) {
63 this.documentNumber = documentNumber;
64 }
65
66
67 /**
68 * Gets the financialDocumentTransactionLineNumber attribute.
69 *
70 * @return Returns the financialDocumentTransactionLineNumber
71 */
72 public Integer getFinancialDocumentTransactionLineNumber() {
73 return financialDocumentTransactionLineNumber;
74 }
75
76 /**
77 * Sets the financialDocumentTransactionLineNumber attribute.
78 *
79 * @param financialDocumentTransactionLineNumber The financialDocumentTransactionLineNumber to set.
80 */
81 public void setFinancialDocumentTransactionLineNumber(Integer financialDocumentTransactionLineNumber) {
82 this.financialDocumentTransactionLineNumber = financialDocumentTransactionLineNumber;
83 }
84
85
86 /**
87 * Gets the vendorName attribute.
88 *
89 * @return Returns the vendorName
90 */
91 public String getVendorName() {
92 return vendorName;
93 }
94
95 /**
96 * Sets the vendorName attribute.
97 *
98 * @param vendorName The vendorName to set.
99 */
100 public void setVendorName(String vendorName) {
101 this.vendorName = vendorName;
102 }
103
104
105 /**
106 * Gets the vendorLine1Address attribute.
107 *
108 * @return Returns the vendorLine1Address
109 */
110 public String getVendorLine1Address() {
111 return vendorLine1Address;
112 }
113
114 /**
115 * Sets the vendorLine1Address attribute.
116 *
117 * @param vendorLine1Address The vendorLine1Address to set.
118 */
119 public void setVendorLine1Address(String vendorLine1Address) {
120 this.vendorLine1Address = vendorLine1Address;
121 }
122
123
124 /**
125 * Gets the vendorLine2Address attribute.
126 *
127 * @return Returns the vendorLine2Address
128 */
129 public String getVendorLine2Address() {
130 return vendorLine2Address;
131 }
132
133 /**
134 * Sets the vendorLine2Address attribute.
135 *
136 * @param vendorLine2Address The vendorLine2Address to set.
137 */
138 public void setVendorLine2Address(String vendorLine2Address) {
139 this.vendorLine2Address = vendorLine2Address;
140 }
141
142
143 /**
144 * Gets the vendorCityName attribute.
145 *
146 * @return Returns the vendorCityName
147 */
148 public String getVendorCityName() {
149 return vendorCityName;
150 }
151
152 /**
153 * Sets the vendorCityName attribute.
154 *
155 * @param vendorCityName The vendorCityName to set.
156 */
157 public void setVendorCityName(String vendorCityName) {
158 this.vendorCityName = vendorCityName;
159 }
160
161
162 /**
163 * Gets the vendorStateCode attribute.
164 *
165 * @return Returns the vendorStateCode
166 */
167 public String getVendorStateCode() {
168 return vendorStateCode;
169 }
170
171 /**
172 * Sets the vendorStateCode attribute.
173 *
174 * @param vendorStateCode The vendorStateCode to set.
175 */
176 public void setVendorStateCode(String vendorStateCode) {
177 this.vendorStateCode = vendorStateCode;
178 }
179
180
181 /**
182 * Gets the vendorZipCode attribute.
183 *
184 * @return Returns the vendorZipCode
185 */
186 public String getVendorZipCode() {
187 return vendorZipCode;
188 }
189
190 /**
191 * Sets the vendorZipCode attribute.
192 *
193 * @param vendorZipCode The vendorZipCode to set.
194 */
195 public void setVendorZipCode(String vendorZipCode) {
196 this.vendorZipCode = vendorZipCode;
197 }
198
199
200 /**
201 * Gets the visaVendorIdentifier attribute.
202 *
203 * @return Returns the visaVendorIdentifier
204 */
205 public String getVisaVendorIdentifier() {
206 return visaVendorIdentifier;
207 }
208
209 /**
210 * Sets the visaVendorIdentifier attribute.
211 *
212 * @param visaVendorIdentifier The visaVendorIdentifier to set.
213 */
214 public void setVisaVendorIdentifier(String visaVendorIdentifier) {
215 this.visaVendorIdentifier = visaVendorIdentifier;
216 }
217
218
219 /**
220 * Gets the vendorOrderNumber attribute.
221 *
222 * @return Returns the vendorOrderNumber
223 */
224 public String getVendorOrderNumber() {
225 return vendorOrderNumber;
226 }
227
228 /**
229 * Sets the vendorOrderNumber attribute.
230 *
231 * @param vendorOrderNumber The vendorOrderNumber to set.
232 */
233 public void setVendorOrderNumber(String vendorOrderNumber) {
234 this.vendorOrderNumber = vendorOrderNumber;
235 }
236
237
238 /**
239 * Gets the transactionMerchantCategoryCode attribute.
240 *
241 * @return Returns the transactionMerchantCategoryCode
242 */
243 public String getTransactionMerchantCategoryCode() {
244 return transactionMerchantCategoryCode;
245 }
246
247 /**
248 * Sets the transactionMerchantCategoryCode attribute.
249 *
250 * @param transactionMerchantCategoryCode The transactionMerchantCategoryCode to set.
251 */
252 public void setTransactionMerchantCategoryCode(String transactionMerchantCategoryCode) {
253 this.transactionMerchantCategoryCode = transactionMerchantCategoryCode;
254 }
255
256
257 /**
258 * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
259 */
260 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
261 LinkedHashMap m = new LinkedHashMap();
262 m.put(OLEPropertyConstants.DOCUMENT_NUMBER, this.documentNumber);
263 if (this.financialDocumentTransactionLineNumber != null) {
264 m.put("financialDocumentTransactionLineNumber", this.financialDocumentTransactionLineNumber.toString());
265 }
266 return m;
267 }
268 }