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 import org.kuali.rice.kns.util.KualiDecimal; 024 025 /** 026 * This class is used to represent a procurement card holder, or the individual whose name is on the card. 027 */ 028 public class ProcurementCardHolder extends PersistableBusinessObjectBase { 029 030 private String documentNumber; 031 private String transactionCreditCardNumber; 032 private String cardHolderName; 033 private String cardHolderAlternateName; 034 private String cardHolderLine1Address; 035 private String cardHolderLine2Address; 036 private String cardHolderCityName; 037 private String cardHolderStateCode; 038 private String cardHolderZipCode; 039 private String cardHolderWorkPhoneNumber; 040 private KualiDecimal cardLimit; 041 private KualiDecimal cardCycleAmountLimit; 042 private KualiDecimal cardCycleVolumeLimit; 043 private String cardStatusCode; 044 private String cardNoteText; 045 private String chartOfAccountsCode; 046 private String accountNumber; 047 private String subAccountNumber; 048 049 050 /** 051 * Default constructor. 052 */ 053 public ProcurementCardHolder() { 054 055 } 056 057 /** 058 * Gets the documentNumber attribute. 059 * 060 * @return Returns the documentNumber 061 */ 062 public String getDocumentNumber() { 063 return documentNumber; 064 } 065 066 /** 067 * Sets the documentNumber attribute. 068 * 069 * @param documentNumber The documentNumber to set. 070 */ 071 public void setDocumentNumber(String documentNumber) { 072 this.documentNumber = documentNumber; 073 } 074 075 076 /** 077 * Gets the transactionCreditCardNumber attribute. 078 * 079 * @return Returns the transactionCreditCardNumber 080 */ 081 public String getTransactionCreditCardNumber() { 082 return transactionCreditCardNumber; 083 } 084 085 /** 086 * Sets the transactionCreditCardNumber attribute. 087 * 088 * @param transactionCreditCardNumber The transactionCreditCardNumber to set. 089 */ 090 public void setTransactionCreditCardNumber(String transactionCreditCardNumber) { 091 this.transactionCreditCardNumber = transactionCreditCardNumber; 092 } 093 094 095 /** 096 * Gets the cardHolderName attribute. 097 * 098 * @return Returns the cardHolderName 099 */ 100 public String getCardHolderName() { 101 return cardHolderName; 102 } 103 104 /** 105 * Sets the cardHolderName attribute. 106 * 107 * @param cardHolderName The cardHolderName to set. 108 */ 109 public void setCardHolderName(String cardHolderName) { 110 this.cardHolderName = cardHolderName; 111 } 112 113 114 /** 115 * Gets the cardHolderAlternateName attribute. 116 * 117 * @return Returns the cardHolderAlternateName 118 */ 119 public String getCardHolderAlternateName() { 120 return cardHolderAlternateName; 121 } 122 123 /** 124 * Sets the cardHolderAlternateName attribute. 125 * 126 * @param cardHolderAlternateName The cardHolderAlternateName to set. 127 */ 128 public void setCardHolderAlternateName(String cardHolderAlternateName) { 129 this.cardHolderAlternateName = cardHolderAlternateName; 130 } 131 132 133 /** 134 * Gets the cardHolderLine1Address attribute. 135 * 136 * @return Returns the cardHolderLine1Address 137 */ 138 public String getCardHolderLine1Address() { 139 return cardHolderLine1Address; 140 } 141 142 /** 143 * Sets the cardHolderLine1Address attribute. 144 * 145 * @param cardHolderLine1Address The cardHolderLine1Address to set. 146 */ 147 public void setCardHolderLine1Address(String cardHolderLine1Address) { 148 this.cardHolderLine1Address = cardHolderLine1Address; 149 } 150 151 152 /** 153 * Gets the cardHolderLine2Address attribute. 154 * 155 * @return Returns the cardHolderLine2Address 156 */ 157 public String getCardHolderLine2Address() { 158 return cardHolderLine2Address; 159 } 160 161 /** 162 * Sets the cardHolderLine2Address attribute. 163 * 164 * @param cardHolderLine2Address The cardHolderLine2Address to set. 165 */ 166 public void setCardHolderLine2Address(String cardHolderLine2Address) { 167 this.cardHolderLine2Address = cardHolderLine2Address; 168 } 169 170 171 /** 172 * Gets the cardHolderCityName attribute. 173 * 174 * @return Returns the cardHolderCityName 175 */ 176 public String getCardHolderCityName() { 177 return cardHolderCityName; 178 } 179 180 /** 181 * Sets the cardHolderCityName attribute. 182 * 183 * @param cardHolderCityName The cardHolderCityName to set. 184 */ 185 public void setCardHolderCityName(String cardHolderCityName) { 186 this.cardHolderCityName = cardHolderCityName; 187 } 188 189 190 /** 191 * Gets the cardHolderStateCode attribute. 192 * 193 * @return Returns the cardHolderStateCode 194 */ 195 public String getCardHolderStateCode() { 196 return cardHolderStateCode; 197 } 198 199 /** 200 * Sets the cardHolderStateCode attribute. 201 * 202 * @param cardHolderStateCode The cardHolderStateCode to set. 203 */ 204 public void setCardHolderStateCode(String cardHolderStateCode) { 205 this.cardHolderStateCode = cardHolderStateCode; 206 } 207 208 209 /** 210 * Gets the cardHolderZipCode attribute. 211 * 212 * @return Returns the cardHolderZipCode 213 */ 214 public String getCardHolderZipCode() { 215 return cardHolderZipCode; 216 } 217 218 /** 219 * Sets the cardHolderZipCode attribute. 220 * 221 * @param cardHolderZipCode The cardHolderZipCode to set. 222 */ 223 public void setCardHolderZipCode(String cardHolderZipCode) { 224 this.cardHolderZipCode = cardHolderZipCode; 225 } 226 227 228 /** 229 * Gets the cardHolderWorkPhoneNumber attribute. 230 * 231 * @return Returns the cardHolderWorkPhoneNumber 232 */ 233 public String getCardHolderWorkPhoneNumber() { 234 return cardHolderWorkPhoneNumber; 235 } 236 237 /** 238 * Sets the cardHolderWorkPhoneNumber attribute. 239 * 240 * @param cardHolderWorkPhoneNumber The cardHolderWorkPhoneNumber to set. 241 */ 242 public void setCardHolderWorkPhoneNumber(String cardHolderWorkPhoneNumber) { 243 this.cardHolderWorkPhoneNumber = cardHolderWorkPhoneNumber; 244 } 245 246 247 /** 248 * Gets the cardLimit attribute. 249 * 250 * @return Returns the cardLimit 251 */ 252 public KualiDecimal getCardLimit() { 253 return cardLimit; 254 } 255 256 /** 257 * Sets the cardLimit attribute. 258 * 259 * @param cardLimit The cardLimit to set. 260 */ 261 public void setCardLimit(KualiDecimal cardLimit) { 262 this.cardLimit = cardLimit; 263 } 264 265 266 /** 267 * Gets the cardCycleAmountLimit attribute. 268 * 269 * @return Returns the cardCycleAmountLimit 270 */ 271 public KualiDecimal getCardCycleAmountLimit() { 272 return cardCycleAmountLimit; 273 } 274 275 /** 276 * Sets the cardCycleAmountLimit attribute. 277 * 278 * @param cardCycleAmountLimit The cardCycleAmountLimit to set. 279 */ 280 public void setCardCycleAmountLimit(KualiDecimal cardCycleAmountLimit) { 281 this.cardCycleAmountLimit = cardCycleAmountLimit; 282 } 283 284 285 /** 286 * Gets the cardCycleVolumeLimit attribute. 287 * 288 * @return Returns the cardCycleVolumeLimit 289 */ 290 public KualiDecimal getCardCycleVolumeLimit() { 291 return cardCycleVolumeLimit; 292 } 293 294 /** 295 * Sets the cardCycleVolumeLimit attribute. 296 * 297 * @param cardCycleVolumeLimit The cardCycleVolumeLimit to set. 298 */ 299 public void setCardCycleVolumeLimit(KualiDecimal cardCycleVolumeLimit) { 300 this.cardCycleVolumeLimit = cardCycleVolumeLimit; 301 } 302 303 304 /** 305 * Gets the cardStatusCode attribute. 306 * 307 * @return Returns the cardStatusCode 308 */ 309 public String getCardStatusCode() { 310 return cardStatusCode; 311 } 312 313 /** 314 * Sets the cardStatusCode attribute. 315 * 316 * @param cardStatusCode The cardStatusCode to set. 317 */ 318 public void setCardStatusCode(String cardStatusCode) { 319 this.cardStatusCode = cardStatusCode; 320 } 321 322 323 /** 324 * Gets the cardNoteText attribute. 325 * 326 * @return Returns the cardNoteText 327 */ 328 public String getCardNoteText() { 329 return cardNoteText; 330 } 331 332 /** 333 * Sets the cardNoteText attribute. 334 * 335 * @param cardNoteText The cardNoteText to set. 336 */ 337 public void setCardNoteText(String cardNoteText) { 338 this.cardNoteText = cardNoteText; 339 } 340 341 342 /** 343 * Gets the chartOfAccountsCode attribute. 344 * 345 * @return Returns the chartOfAccountsCode 346 */ 347 public String getChartOfAccountsCode() { 348 return chartOfAccountsCode; 349 } 350 351 /** 352 * Sets the chartOfAccountsCode attribute. 353 * 354 * @param chartOfAccountsCode The chartOfAccountsCode to set. 355 */ 356 public void setChartOfAccountsCode(String chartOfAccountsCode) { 357 this.chartOfAccountsCode = chartOfAccountsCode; 358 } 359 360 361 /** 362 * Gets the accountNumber attribute. 363 * 364 * @return Returns the accountNumber 365 */ 366 public String getAccountNumber() { 367 return accountNumber; 368 } 369 370 /** 371 * Sets the accountNumber attribute. 372 * 373 * @param accountNumber The accountNumber to set. 374 */ 375 public void setAccountNumber(String accountNumber) { 376 this.accountNumber = accountNumber; 377 } 378 379 380 /** 381 * Gets the subAccountNumber attribute. 382 * 383 * @return Returns the subAccountNumber 384 */ 385 public String getSubAccountNumber() { 386 return subAccountNumber; 387 } 388 389 /** 390 * Sets the subAccountNumber attribute. 391 * 392 * @param subAccountNumber The subAccountNumber to set. 393 */ 394 public void setSubAccountNumber(String subAccountNumber) { 395 this.subAccountNumber = subAccountNumber; 396 } 397 398 /** 399 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 400 */ 401 protected LinkedHashMap toStringMapper() { 402 LinkedHashMap m = new LinkedHashMap(); 403 m.put(KFSPropertyConstants.DOCUMENT_NUMBER, this.documentNumber); 404 return m; 405 } 406 }