001/* 002 * Copyright 2006 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 017package org.kuali.ole.fp.businessobject; 018 019import java.util.LinkedHashMap; 020 021import org.kuali.ole.coa.businessobject.Account; 022import org.kuali.ole.coa.businessobject.Chart; 023import org.kuali.ole.coa.businessobject.ObjectCodeCurrent; 024import org.kuali.ole.coa.businessobject.SubAccount; 025import org.kuali.ole.coa.businessobject.SubObjectCodeCurrent; 026import org.kuali.rice.core.api.mo.common.active.MutableInactivatable; 027import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; 028 029/** 030 * 031 */ 032public class CreditCardVendor extends PersistableBusinessObjectBase implements MutableInactivatable { 033 034 private String financialDocumentCreditCardVendorNumber; 035 private String financialDocumentCreditCardVendorName; 036 private String financialDocumentCreditCardTypeCode; 037 private String incomeFinancialChartOfAccountsCode; 038 private String incomeAccountNumber; 039 private String incomeFinancialObjectCode; 040 private String incomeFinancialSubObjectCode; 041 private String incomeSubAccountNumber; 042 private String expenseFinancialChartOfAccountsCode; 043 private String expenseAccountNumber; 044 private String expenseFinancialObjectCode; 045 private String expenseFinancialSubObjectCode; 046 private String expenseSubAccountNumber; 047 private boolean active; 048 049 private Chart incomeFinancialChartOfAccounts; 050 private ObjectCodeCurrent incomeFinancialObject; 051 private Account incomeAccount; 052 private Chart expenseFinancialChartOfAccounts; 053 private ObjectCodeCurrent expenseFinancialObject; 054 private Account expenseAccount; 055 private CreditCardType financialDocumentCreditCardType; 056 private SubAccount incomeSubAccount; 057 private SubAccount expenseSubAccount; 058 private SubObjectCodeCurrent incomeFinancialSubObject; 059 private SubObjectCodeCurrent expenseFinancialSubObject; 060 061 062 /** 063 * Default constructor. 064 */ 065 public CreditCardVendor() { 066 067 } 068 069 /** 070 * Gets the financialDocumentCreditCardVendorNumber attribute. 071 * 072 * @return Returns the financialDocumentCreditCardVendorNumber 073 */ 074 public String getFinancialDocumentCreditCardVendorNumber() { 075 return financialDocumentCreditCardVendorNumber; 076 } 077 078 /** 079 * Sets the financialDocumentCreditCardVendorNumber attribute. 080 * 081 * @param financialDocumentCreditCardVendorNumber The financialDocumentCreditCardVendorNumber to set. 082 */ 083 public void setFinancialDocumentCreditCardVendorNumber(String financialDocumentCreditCardVendorNumber) { 084 this.financialDocumentCreditCardVendorNumber = financialDocumentCreditCardVendorNumber; 085 } 086 087 088 /** 089 * Gets the financialDocumentCreditCardVendorName attribute. 090 * 091 * @return Returns the financialDocumentCreditCardVendorName 092 */ 093 public String getFinancialDocumentCreditCardVendorName() { 094 return financialDocumentCreditCardVendorName; 095 } 096 097 /** 098 * Sets the financialDocumentCreditCardVendorName attribute. 099 * 100 * @param financialDocumentCreditCardVendorName The financialDocumentCreditCardVendorName to set. 101 */ 102 public void setFinancialDocumentCreditCardVendorName(String financialDocumentCreditCardVendorName) { 103 this.financialDocumentCreditCardVendorName = financialDocumentCreditCardVendorName; 104 } 105 106 107 /** 108 * Gets the financialDocumentCreditCardTypeCode attribute. 109 * 110 * @return Returns the financialDocumentCreditCardTypeCode 111 */ 112 public String getFinancialDocumentCreditCardTypeCode() { 113 return financialDocumentCreditCardTypeCode; 114 } 115 116 /** 117 * Sets the financialDocumentCreditCardTypeCode attribute. 118 * 119 * @param financialDocumentCreditCardTypeCode The financialDocumentCreditCardTypeCode to set. 120 */ 121 public void setFinancialDocumentCreditCardTypeCode(String financialDocumentCreditCardTypeCode) { 122 this.financialDocumentCreditCardTypeCode = financialDocumentCreditCardTypeCode; 123 } 124 125 126 /** 127 * Gets the incomeFinancialChartOfAccountsCode attribute. 128 * 129 * @return Returns the incomeFinancialChartOfAccountsCode 130 */ 131 public String getIncomeFinancialChartOfAccountsCode() { 132 return incomeFinancialChartOfAccountsCode; 133 } 134 135 /** 136 * Sets the incomeFinancialChartOfAccountsCode attribute. 137 * 138 * @param incomeFinancialChartOfAccountsCode The incomeFinancialChartOfAccountsCode to set. 139 */ 140 public void setIncomeFinancialChartOfAccountsCode(String incomeFinancialChartOfAccountsCode) { 141 this.incomeFinancialChartOfAccountsCode = incomeFinancialChartOfAccountsCode; 142 } 143 144 145 /** 146 * Gets the incomeAccountNumber attribute. 147 * 148 * @return Returns the incomeAccountNumber 149 */ 150 public String getIncomeAccountNumber() { 151 return incomeAccountNumber; 152 } 153 154 /** 155 * Sets the incomeAccountNumber attribute. 156 * 157 * @param incomeAccountNumber The incomeAccountNumber to set. 158 */ 159 public void setIncomeAccountNumber(String incomeAccountNumber) { 160 this.incomeAccountNumber = incomeAccountNumber; 161 } 162 163 164 /** 165 * Gets the incomeFinancialObjectCode attribute. 166 * 167 * @return Returns the incomeFinancialObjectCode 168 */ 169 public String getIncomeFinancialObjectCode() { 170 return incomeFinancialObjectCode; 171 } 172 173 /** 174 * Sets the incomeFinancialObjectCode attribute. 175 * 176 * @param incomeFinancialObjectCode The incomeFinancialObjectCode to set. 177 */ 178 public void setIncomeFinancialObjectCode(String incomeFinancialObjectCode) { 179 this.incomeFinancialObjectCode = incomeFinancialObjectCode; 180 } 181 182 183 /** 184 * Gets the incomeFinancialSubObjectCode attribute. 185 * 186 * @return Returns the incomeFinancialSubObjectCode 187 */ 188 public String getIncomeFinancialSubObjectCode() { 189 return incomeFinancialSubObjectCode; 190 } 191 192 /** 193 * Sets the incomeFinancialSubObjectCode attribute. 194 * 195 * @param incomeFinancialSubObjectCode The incomeFinancialSubObjectCode to set. 196 */ 197 public void setIncomeFinancialSubObjectCode(String incomeFinancialSubObjectCode) { 198 this.incomeFinancialSubObjectCode = incomeFinancialSubObjectCode; 199 } 200 201 202 /** 203 * Gets the incomeSubAccountNumber attribute. 204 * 205 * @return Returns the incomeSubAccountNumber 206 */ 207 public String getIncomeSubAccountNumber() { 208 return incomeSubAccountNumber; 209 } 210 211 /** 212 * Sets the incomeSubAccountNumber attribute. 213 * 214 * @param incomeSubAccountNumber The incomeSubAccountNumber to set. 215 */ 216 public void setIncomeSubAccountNumber(String incomeSubAccountNumber) { 217 this.incomeSubAccountNumber = incomeSubAccountNumber; 218 } 219 220 221 /** 222 * Gets the expenseFinancialChartOfAccountsCode attribute. 223 * 224 * @return Returns the expenseFinancialChartOfAccountsCode 225 */ 226 public String getExpenseFinancialChartOfAccountsCode() { 227 return expenseFinancialChartOfAccountsCode; 228 } 229 230 /** 231 * Sets the expenseFinancialChartOfAccountsCode attribute. 232 * 233 * @param expenseFinancialChartOfAccountsCode The expenseFinancialChartOfAccountsCode to set. 234 */ 235 public void setExpenseFinancialChartOfAccountsCode(String expenseFinancialChartOfAccountsCode) { 236 this.expenseFinancialChartOfAccountsCode = expenseFinancialChartOfAccountsCode; 237 } 238 239 240 /** 241 * Gets the expenseAccountNumber attribute. 242 * 243 * @return Returns the expenseAccountNumber 244 */ 245 public String getExpenseAccountNumber() { 246 return expenseAccountNumber; 247 } 248 249 /** 250 * Sets the expenseAccountNumber attribute. 251 * 252 * @param expenseAccountNumber The expenseAccountNumber to set. 253 */ 254 public void setExpenseAccountNumber(String expenseAccountNumber) { 255 this.expenseAccountNumber = expenseAccountNumber; 256 } 257 258 259 /** 260 * Gets the expenseFinancialObjectCode attribute. 261 * 262 * @return Returns the expenseFinancialObjectCode 263 */ 264 public String getExpenseFinancialObjectCode() { 265 return expenseFinancialObjectCode; 266 } 267 268 /** 269 * Sets the expenseFinancialObjectCode attribute. 270 * 271 * @param expenseFinancialObjectCode The expenseFinancialObjectCode to set. 272 */ 273 public void setExpenseFinancialObjectCode(String expenseFinancialObjectCode) { 274 this.expenseFinancialObjectCode = expenseFinancialObjectCode; 275 } 276 277 278 /** 279 * Gets the expenseFinancialSubObjectCd attribute. 280 * 281 * @return Returns the expenseFinancialSubObjectCd 282 */ 283 public String getExpenseFinancialSubObjectCode() { 284 return expenseFinancialSubObjectCode; 285 } 286 287 /** 288 * Sets the expenseFinancialSubObjectCd attribute. 289 * 290 * @param expenseFinancialSubObjectCd The expenseFinancialSubObjectCd to set. 291 */ 292 public void setExpenseFinancialSubObjectCode(String expenseFinancialSubObjectCode) { 293 this.expenseFinancialSubObjectCode = expenseFinancialSubObjectCode; 294 } 295 296 297 /** 298 * Gets the expenseSubAccountNumber attribute. 299 * 300 * @return Returns the expenseSubAccountNumber 301 */ 302 public String getExpenseSubAccountNumber() { 303 return expenseSubAccountNumber; 304 } 305 306 /** 307 * Sets the expenseSubAccountNumber attribute. 308 * 309 * @param expenseSubAccountNumber The expenseSubAccountNumber to set. 310 */ 311 public void setExpenseSubAccountNumber(String expenseSubAccountNumber) { 312 this.expenseSubAccountNumber = expenseSubAccountNumber; 313 } 314 315 316 /** 317 * Gets the incomeFinancialChartOfAccounts attribute. 318 * 319 * @return Returns the incomeFinancialChartOfAccounts 320 */ 321 public Chart getIncomeFinancialChartOfAccounts() { 322 return incomeFinancialChartOfAccounts; 323 } 324 325 /** 326 * Sets the incomeFinancialChartOfAccounts attribute. 327 * 328 * @param incomeFinancialChartOfAccounts The incomeFinancialChartOfAccounts to set. 329 * @deprecated 330 */ 331 @Deprecated 332 public void setIncomeFinancialChartOfAccounts(Chart incomeFinancialChartOfAccounts) { 333 this.incomeFinancialChartOfAccounts = incomeFinancialChartOfAccounts; 334 } 335 336 /** 337 * Gets the incomeFinancialObject attribute. 338 * 339 * @return Returns the incomeFinancialObject 340 */ 341 public ObjectCodeCurrent getIncomeFinancialObject() { 342 return incomeFinancialObject; 343 } 344 345 /** 346 * Sets the incomeFinancialObject attribute. 347 * 348 * @param incomeFinancialObject The incomeFinancialObject to set. 349 * @deprecated 350 */ 351 @Deprecated 352 public void setIncomeFinancialObject(ObjectCodeCurrent incomeFinancialObject) { 353 this.incomeFinancialObject = incomeFinancialObject; 354 } 355 356 /** 357 * Gets the incomeAccount attribute. 358 * 359 * @return Returns the incomeAccount 360 */ 361 public Account getIncomeAccount() { 362 return incomeAccount; 363 } 364 365 /** 366 * Sets the incomeAccount attribute. 367 * 368 * @param incomeAccount The incomeAccount to set. 369 * @deprecated 370 */ 371 @Deprecated 372 public void setIncomeAccount(Account incomeAccount) { 373 this.incomeAccount = incomeAccount; 374 } 375 376 /** 377 * Gets the expenseFinancialChartOfAccounts attribute. 378 * 379 * @return Returns the expenseFinancialChartOfAccounts 380 */ 381 public Chart getExpenseFinancialChartOfAccounts() { 382 return expenseFinancialChartOfAccounts; 383 } 384 385 /** 386 * Sets the expenseFinancialChartOfAccounts attribute. 387 * 388 * @param expenseFinancialChartOfAccounts The expenseFinancialChartOfAccounts to set. 389 * @deprecated 390 */ 391 @Deprecated 392 public void setExpenseFinancialChartOfAccounts(Chart expenseFinancialChartOfAccounts) { 393 this.expenseFinancialChartOfAccounts = expenseFinancialChartOfAccounts; 394 } 395 396 /** 397 * Gets the expenseFinancialObject attribute. 398 * 399 * @return Returns the expenseFinancialObject 400 */ 401 public ObjectCodeCurrent getExpenseFinancialObject() { 402 return expenseFinancialObject; 403 } 404 405 /** 406 * Sets the expenseFinancialObject attribute. 407 * 408 * @param expenseFinancialObject The expenseFinancialObject to set. 409 * @deprecated 410 */ 411 @Deprecated 412 public void setExpenseFinancialObject(ObjectCodeCurrent expenseFinancialObject) { 413 this.expenseFinancialObject = expenseFinancialObject; 414 } 415 416 /** 417 * Gets the expenseAccount attribute. 418 * 419 * @return Returns the expenseAccount 420 */ 421 public Account getExpenseAccount() { 422 return expenseAccount; 423 } 424 425 /** 426 * Sets the expenseAccount attribute. 427 * 428 * @param expenseAccount The expenseAccount to set. 429 * @deprecated 430 */ 431 @Deprecated 432 public void setExpenseAccount(Account expenseAccount) { 433 this.expenseAccount = expenseAccount; 434 } 435 436 /** 437 * @return Returns the financialDocumentCreditCardType. 438 */ 439 public CreditCardType getFinancialDocumentCreditCardType() { 440 return financialDocumentCreditCardType; 441 } 442 443 /** 444 * @param financialDocumentCreditCardType The financialDocumentCreditCardType to set. 445 * @deprecated 446 */ 447 @Deprecated 448 public void setFinancialDocumentCreditCardType(CreditCardType financialDocumentCreditCardType) { 449 this.financialDocumentCreditCardType = financialDocumentCreditCardType; 450 } 451 452 /** 453 * Gets the expenseFinancialSubObject attribute. 454 * 455 * @return Returns the expenseFinancialSubObject. 456 */ 457 public SubObjectCodeCurrent getExpenseFinancialSubObject() { 458 return expenseFinancialSubObject; 459 } 460 461 /** 462 * Sets the expenseFinancialSubObject attribute value. 463 * 464 * @param expenseFinancialSubObject The expenseFinancialSubObject to set. 465 */ 466 public void setExpenseFinancialSubObject(SubObjectCodeCurrent expenseFinancialSubObject) { 467 this.expenseFinancialSubObject = expenseFinancialSubObject; 468 } 469 470 /** 471 * Gets the expenseSubAccount attribute. 472 * 473 * @return Returns the expenseSubAccount. 474 */ 475 public SubAccount getExpenseSubAccount() { 476 return expenseSubAccount; 477 } 478 479 /** 480 * Sets the expenseSubAccount attribute value. 481 * 482 * @param expenseSubAccount The expenseSubAccount to set. 483 */ 484 public void setExpenseSubAccount(SubAccount expenseSubAccount) { 485 this.expenseSubAccount = expenseSubAccount; 486 } 487 488 /** 489 * Gets the incomeFinancialSubObject attribute. 490 * 491 * @return Returns the incomeFinancialSubObject. 492 */ 493 public SubObjectCodeCurrent getIncomeFinancialSubObject() { 494 return incomeFinancialSubObject; 495 } 496 497 /** 498 * Sets the incomeFinancialSubObject attribute value. 499 * 500 * @param incomeFinancialSubObject The incomeFinancialSubObject to set. 501 */ 502 public void setIncomeFinancialSubObject(SubObjectCodeCurrent incomeFinancialSubObject) { 503 this.incomeFinancialSubObject = incomeFinancialSubObject; 504 } 505 506 /** 507 * Gets the incomeSubAccount attribute. 508 * 509 * @return Returns the incomeSubAccount. 510 */ 511 public SubAccount getIncomeSubAccount() { 512 return incomeSubAccount; 513 } 514 515 /** 516 * Sets the incomeSubAccount attribute value. 517 * 518 * @param incomeSubAccount The incomeSubAccount to set. 519 */ 520 public void setIncomeSubAccount(SubAccount incomeSubAccount) { 521 this.incomeSubAccount = incomeSubAccount; 522 } 523 524 /** 525 * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper() 526 */ 527 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() { 528 LinkedHashMap m = new LinkedHashMap(); 529 m.put("financialDocumentCreditCardVendorNumber", this.financialDocumentCreditCardVendorNumber); 530 return m; 531 } 532 533 /** 534 * Gets the active attribute. 535 * @return Returns the active. 536 */ 537 @Override 538 public boolean isActive() { 539 return active; 540 } 541 542 /** 543 * Sets the active attribute value. 544 * @param active The active to set. 545 */ 546 @Override 547 public void setActive(boolean active) { 548 this.active = active; 549 } 550 551 552}