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.fp.businessobject; 018 019 import java.util.LinkedHashMap; 020 021 import org.kuali.kfs.sys.KFSPropertyConstants; 022 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; 023 024 /** 025 * This class is used to represent a procurement card vendor business object. 026 */ 027 public class ProcurementCardVendor extends PersistableBusinessObjectBase { 028 029 private String documentNumber; 030 private Integer financialDocumentTransactionLineNumber; 031 private String vendorName; 032 private String vendorLine1Address; 033 private String vendorLine2Address; 034 private String vendorCityName; 035 private String vendorStateCode; 036 private String vendorZipCode; 037 private String visaVendorIdentifier; 038 private String vendorOrderNumber; 039 private String transactionMerchantCategoryCode; 040 041 /** 042 * Default constructor. 043 */ 044 public ProcurementCardVendor() { 045 046 } 047 048 /** 049 * Gets the documentNumber attribute. 050 * 051 * @return Returns the documentNumber 052 */ 053 public String getDocumentNumber() { 054 return documentNumber; 055 } 056 057 /** 058 * Sets the documentNumber attribute. 059 * 060 * @param documentNumber The documentNumber to set. 061 */ 062 public void setDocumentNumber(String documentNumber) { 063 this.documentNumber = documentNumber; 064 } 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(Integer financialDocumentTransactionLineNumber) { 082 this.financialDocumentTransactionLineNumber = financialDocumentTransactionLineNumber; 083 } 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 /** 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.kns.bo.BusinessObjectBase#toStringMapper() 259 */ 260 protected LinkedHashMap toStringMapper() { 261 LinkedHashMap m = new LinkedHashMap(); 262 m.put(KFSPropertyConstants.DOCUMENT_NUMBER, this.documentNumber); 263 if (this.financialDocumentTransactionLineNumber != null) { 264 m.put("financialDocumentTransactionLineNumber", this.financialDocumentTransactionLineNumber.toString()); 265 } 266 return m; 267 } 268 }