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.math.BigDecimal; 020 import java.sql.Date; 021 import java.util.LinkedHashMap; 022 023 import org.apache.commons.beanutils.converters.SqlDateConverter; 024 import org.apache.commons.lang.StringUtils; 025 import org.kuali.kfs.sys.KFSConstants; 026 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; 027 import org.kuali.rice.kns.util.KualiDecimal; 028 029 /** 030 * This class is used to represent a procurement card transaction business object. 031 */ 032 public class ProcurementCardTransaction extends PersistableBusinessObjectBase { 033 034 private Integer transactionSequenceRowNumber; 035 private String transactionCreditCardNumber; 036 private KualiDecimal financialDocumentTotalAmount; 037 private String transactionDebitCreditCode; 038 private String chartOfAccountsCode; 039 private String accountNumber; 040 private String subAccountNumber; 041 private String financialObjectCode; 042 private String financialSubObjectCode; 043 private String projectCode; 044 private Date transactionCycleStartDate; 045 private Date transactionCycleEndDate; 046 private String cardHolderName; 047 private Date transactionDate; 048 private String transactionReferenceNumber; 049 private String transactionMerchantCategoryCode; 050 private Date transactionPostingDate; 051 private String transactionOriginalCurrencyCode; 052 private String transactionBillingCurrencyCode; 053 private KualiDecimal transactionOriginalCurrencyAmount; 054 private BigDecimal transactionCurrencyExchangeRate; 055 private KualiDecimal transactionSettlementAmount; 056 private KualiDecimal transactionSalesTaxAmount; 057 private boolean transactionTaxExemptIndicator; 058 private boolean transactionPurchaseIdentifierIndicator; 059 private String transactionPurchaseIdentifierDescription; 060 private String transactionUnitContactName; 061 private String transactionTravelAuthorizationCode; 062 private String transactionPointOfSaleCode; 063 private String vendorName; 064 private String vendorLine1Address; 065 private String vendorLine2Address; 066 private String vendorCityName; 067 private String vendorStateCode; 068 private String vendorZipCode; 069 private String vendorOrderNumber; 070 private String visaVendorIdentifier; 071 private String cardHolderAlternateName; 072 private String cardHolderLine1Address; 073 private String cardHolderLine2Address; 074 private String cardHolderCityName; 075 private String cardHolderStateCode; 076 private String cardHolderZipCode; 077 private String cardHolderWorkPhoneNumber; 078 private KualiDecimal cardLimit; 079 private KualiDecimal cardCycleAmountLimit; 080 private KualiDecimal cardCycleVolumeLimit; 081 private String cardStatusCode; 082 private String cardNoteText; 083 084 /** 085 * Default constructor. 086 */ 087 public ProcurementCardTransaction() { 088 089 } 090 091 /** 092 * Gets the transactionSequenceRowNumber attribute. 093 * 094 * @return Returns the transactionSequenceRowNumber 095 */ 096 public Integer getTransactionSequenceRowNumber() { 097 return transactionSequenceRowNumber; 098 } 099 100 /** 101 * Sets the transactionSequenceRowNumber attribute. 102 * 103 * @param transactionSequenceRowNumber The transactionSequenceRowNumber to set. 104 */ 105 public void setTransactionSequenceRowNumber(Integer transactionSequenceRowNumber) { 106 this.transactionSequenceRowNumber = transactionSequenceRowNumber; 107 } 108 109 110 /** 111 * Gets the transactionCreditCardNumber attribute. 112 * 113 * @return Returns the transactionCreditCardNumber 114 */ 115 public String getTransactionCreditCardNumber() { 116 return transactionCreditCardNumber; 117 } 118 119 /** 120 * Sets the transactionCreditCardNumber attribute. 121 * 122 * @param transactionCreditCardNumber The transactionCreditCardNumber to set. 123 */ 124 public void setTransactionCreditCardNumber(String transactionCreditCardNumber) { 125 this.transactionCreditCardNumber = transactionCreditCardNumber; 126 } 127 128 129 /** 130 * Gets the financialDocumentTotalAmount attribute. 131 * 132 * @return Returns the financialDocumentTotalAmount 133 */ 134 public KualiDecimal getFinancialDocumentTotalAmount() { 135 return financialDocumentTotalAmount; 136 } 137 138 /** 139 * Sets the financialDocumentTotalAmount attribute. 140 * 141 * @param financialDocumentTotalAmount The financialDocumentTotalAmount to set. 142 */ 143 public void setFinancialDocumentTotalAmount(KualiDecimal financialDocumentTotalAmount) { 144 this.financialDocumentTotalAmount = financialDocumentTotalAmount; 145 } 146 147 /** 148 * Sets the financialDocumentTotalAmount attribute. 149 * 150 * @param financialDocumentTotalAmount The financialDocumentTotalAmount to set. 151 */ 152 public void setFinancialDocumentTotalAmount(String financialDocumentTotalAmount) { 153 if (StringUtils.isNotBlank(financialDocumentTotalAmount)) { 154 this.financialDocumentTotalAmount = new KualiDecimal(financialDocumentTotalAmount); 155 } 156 else { 157 this.financialDocumentTotalAmount = KualiDecimal.ZERO; 158 } 159 } 160 161 162 /** 163 * Gets the transactionDebitCreditCode attribute. 164 * 165 * @return Returns the transactionDebitCreditCode 166 */ 167 public String getTransactionDebitCreditCode() { 168 return transactionDebitCreditCode; 169 } 170 171 /** 172 * Sets the transactionDebitCreditCode attribute. 173 * 174 * @param transactionDebitCreditCode The transactionDebitCreditCode to set. 175 */ 176 public void setTransactionDebitCreditCode(String transactionDebitCreditCode) { 177 this.transactionDebitCreditCode = transactionDebitCreditCode; 178 } 179 180 181 /** 182 * Gets the chartOfAccountsCode attribute. 183 * 184 * @return Returns the chartOfAccountsCode 185 */ 186 public String getChartOfAccountsCode() { 187 return chartOfAccountsCode; 188 } 189 190 /** 191 * Sets the chartOfAccountsCode attribute. 192 * 193 * @param chartOfAccountsCode The chartOfAccountsCode to set. 194 */ 195 public void setChartOfAccountsCode(String chartOfAccountsCode) { 196 this.chartOfAccountsCode = chartOfAccountsCode; 197 } 198 199 200 /** 201 * Gets the accountNumber attribute. 202 * 203 * @return Returns the accountNumber 204 */ 205 public String getAccountNumber() { 206 return accountNumber; 207 } 208 209 /** 210 * Sets the accountNumber attribute. 211 * 212 * @param accountNumber The accountNumber to set. 213 */ 214 public void setAccountNumber(String accountNumber) { 215 this.accountNumber = accountNumber; 216 } 217 218 219 /** 220 * Gets the subAccountNumber attribute. 221 * 222 * @return Returns the subAccountNumber 223 */ 224 public String getSubAccountNumber() { 225 return subAccountNumber; 226 } 227 228 /** 229 * Sets the subAccountNumber attribute. 230 * 231 * @param subAccountNumber The subAccountNumber to set. 232 */ 233 public void setSubAccountNumber(String subAccountNumber) { 234 this.subAccountNumber = subAccountNumber; 235 } 236 237 238 /** 239 * Gets the financialObjectCode attribute. 240 * 241 * @return Returns the financialObjectCode 242 */ 243 public String getFinancialObjectCode() { 244 return financialObjectCode; 245 } 246 247 /** 248 * Sets the financialObjectCode attribute. 249 * 250 * @param financialObjectCode The financialObjectCode to set. 251 */ 252 public void setFinancialObjectCode(String financialObjectCode) { 253 this.financialObjectCode = financialObjectCode; 254 } 255 256 257 /** 258 * Gets the financialSubObjectCode attribute. 259 * 260 * @return Returns the financialSubObjectCode 261 */ 262 public String getFinancialSubObjectCode() { 263 return financialSubObjectCode; 264 } 265 266 /** 267 * Sets the financialSubObjectCode attribute. 268 * 269 * @param financialSubObjectCode The financialSubObjectCode to set. 270 */ 271 public void setFinancialSubObjectCode(String financialSubObjectCode) { 272 this.financialSubObjectCode = financialSubObjectCode; 273 } 274 275 276 /** 277 * Gets the projectCode attribute. 278 * 279 * @return Returns the projectCode 280 */ 281 public String getProjectCode() { 282 return projectCode; 283 } 284 285 /** 286 * Sets the projectCode attribute. 287 * 288 * @param projectCode The projectCode to set. 289 */ 290 public void setProjectCode(String projectCode) { 291 this.projectCode = projectCode; 292 } 293 294 295 /** 296 * Gets the transactionCycleStartDate attribute. 297 * 298 * @return Returns the transactionCycleStartDate 299 */ 300 public Date getTransactionCycleStartDate() { 301 return transactionCycleStartDate; 302 } 303 304 /** 305 * Sets the transactionCycleStartDate attribute. 306 * 307 * @param transactionCycleStartDate The transactionCycleStartDate to set. 308 */ 309 public void setTransactionCycleStartDate(Date transactionCycleStartDate) { 310 this.transactionCycleStartDate = transactionCycleStartDate; 311 } 312 313 /** 314 * Sets the transactionCycleStartDate attribute. 315 * 316 * @param transactionCycleStartDate The transactionCycleStartDate to set. 317 */ 318 public void setTransactionCycleStartDate(String transactionCycleStartDate) { 319 if (StringUtils.isNotBlank(transactionCycleStartDate)) { 320 this.transactionCycleStartDate = (Date) (new SqlDateConverter()).convert(Date.class, transactionCycleStartDate); 321 } 322 } 323 324 325 /** 326 * Gets the transactionCycleEndDate attribute. 327 * 328 * @return Returns the transactionCycleEndDate 329 */ 330 public Date getTransactionCycleEndDate() { 331 return transactionCycleEndDate; 332 } 333 334 /** 335 * Sets the transactionCycleEndDate attribute. 336 * 337 * @param transactionCycleEndDate The transactionCycleEndDate to set. 338 */ 339 public void setTransactionCycleEndDate(Date transactionCycleEndDate) { 340 this.transactionCycleEndDate = transactionCycleEndDate; 341 } 342 343 /** 344 * Sets the transactionCycleEndDate attribute. 345 * 346 * @param transactionCycleEndDate The transactionCycleEndDate to set. 347 */ 348 public void setTransactionCycleEndDate(String transactionCycleEndDate) { 349 if (StringUtils.isNotBlank(transactionCycleEndDate)) { 350 this.transactionCycleEndDate = (Date) (new SqlDateConverter()).convert(Date.class, transactionCycleEndDate); 351 } 352 } 353 354 /** 355 * Gets the cardHolderName attribute. 356 * 357 * @return Returns the cardHolderName 358 */ 359 public String getCardHolderName() { 360 return cardHolderName; 361 } 362 363 /** 364 * Sets the cardHolderName attribute. 365 * 366 * @param cardHolderName The cardHolderName to set. 367 */ 368 public void setCardHolderName(String cardHolderName) { 369 this.cardHolderName = cardHolderName; 370 } 371 372 373 /** 374 * Gets the transactionDate attribute. 375 * 376 * @return Returns the transactionDate 377 */ 378 public Date getTransactionDate() { 379 return transactionDate; 380 } 381 382 /** 383 * Sets the transactionDate attribute. 384 * 385 * @param transactionDate The transactionDate to set. 386 */ 387 public void setTransactionDate(Date transactionDate) { 388 this.transactionDate = transactionDate; 389 } 390 391 392 /** 393 * Gets the transactionReferenceNumber attribute. 394 * 395 * @return Returns the transactionReferenceNumber 396 */ 397 public String getTransactionReferenceNumber() { 398 return transactionReferenceNumber; 399 } 400 401 /** 402 * Sets the transactionReferenceNumber attribute. 403 * 404 * @param transactionReferenceNumber The transactionReferenceNumber to set. 405 */ 406 public void setTransactionReferenceNumber(String transactionReferenceNumber) { 407 this.transactionReferenceNumber = transactionReferenceNumber; 408 } 409 410 411 /** 412 * Gets the transactionMerchantCategoryCode attribute. 413 * 414 * @return Returns the transactionMerchantCategoryCode 415 */ 416 public String getTransactionMerchantCategoryCode() { 417 return transactionMerchantCategoryCode; 418 } 419 420 /** 421 * Sets the transactionMerchantCategoryCode attribute. 422 * 423 * @param transactionMerchantCategoryCode The transactionMerchantCategoryCode to set. 424 */ 425 public void setTransactionMerchantCategoryCode(String transactionMerchantCategoryCode) { 426 this.transactionMerchantCategoryCode = transactionMerchantCategoryCode; 427 } 428 429 430 /** 431 * Gets the transactionPostingDate attribute. 432 * 433 * @return Returns the transactionPostingDate 434 */ 435 public Date getTransactionPostingDate() { 436 return transactionPostingDate; 437 } 438 439 /** 440 * Sets the transactionPostingDate attribute. 441 * 442 * @param transactionPostingDate The transactionPostingDate to set. 443 */ 444 public void setTransactionPostingDate(Date transactionPostingDate) { 445 this.transactionPostingDate = transactionPostingDate; 446 } 447 448 449 /** 450 * Gets the transactionOriginalCurrencyCode attribute. 451 * 452 * @return Returns the transactionOriginalCurrencyCode 453 */ 454 public String getTransactionOriginalCurrencyCode() { 455 return transactionOriginalCurrencyCode; 456 } 457 458 /** 459 * Sets the transactionOriginalCurrencyCode attribute. 460 * 461 * @param transactionOriginalCurrencyCode The transactionOriginalCurrencyCode to set. 462 */ 463 public void setTransactionOriginalCurrencyCode(String transactionOriginalCurrencyCode) { 464 this.transactionOriginalCurrencyCode = transactionOriginalCurrencyCode; 465 } 466 467 468 /** 469 * Gets the transactionBillingCurrencyCode attribute. 470 * 471 * @return Returns the transactionBillingCurrencyCode 472 */ 473 public String getTransactionBillingCurrencyCode() { 474 return transactionBillingCurrencyCode; 475 } 476 477 /** 478 * Sets the transactionBillingCurrencyCode attribute. 479 * 480 * @param transactionBillingCurrencyCode The transactionBillingCurrencyCode to set. 481 */ 482 public void setTransactionBillingCurrencyCode(String transactionBillingCurrencyCode) { 483 this.transactionBillingCurrencyCode = transactionBillingCurrencyCode; 484 } 485 486 487 /** 488 * Gets the transactionOriginalCurrencyAmount attribute. 489 * 490 * @return Returns the transactionOriginalCurrencyAmount 491 */ 492 public KualiDecimal getTransactionOriginalCurrencyAmount() { 493 return transactionOriginalCurrencyAmount; 494 } 495 496 /** 497 * Sets the transactionOriginalCurrencyAmount attribute. 498 * 499 * @param transactionOriginalCurrencyAmount The transactionOriginalCurrencyAmount to set. 500 */ 501 public void setTransactionOriginalCurrencyAmount(KualiDecimal transactionOriginalCurrencyAmount) { 502 this.transactionOriginalCurrencyAmount = transactionOriginalCurrencyAmount; 503 } 504 505 /** 506 * Sets the transactionOriginalCurrencyAmount attribute. 507 * 508 * @param transactionOriginalCurrencyAmount The transactionOriginalCurrencyAmount to set. 509 */ 510 public void setTransactionOriginalCurrencyAmount(String transactionOriginalCurrencyAmount) { 511 if (StringUtils.isNotBlank(transactionOriginalCurrencyAmount)) { 512 this.transactionOriginalCurrencyAmount = new KualiDecimal(transactionOriginalCurrencyAmount); 513 } 514 else { 515 this.transactionOriginalCurrencyAmount = KualiDecimal.ZERO; 516 } 517 } 518 519 520 /** 521 * Gets the transactionCurrencyExchangeRate attribute. 522 * 523 * @return Returns the transactionCurrencyExchangeRate 524 */ 525 public BigDecimal getTransactionCurrencyExchangeRate() { 526 return transactionCurrencyExchangeRate; 527 } 528 529 /** 530 * Sets the transactionCurrencyExchangeRate attribute. 531 * 532 * @param transactionCurrencyExchangeRate The transactionCurrencyExchangeRate to set. 533 */ 534 public void setTransactionCurrencyExchangeRate(BigDecimal transactionCurrencyExchangeRate) { 535 this.transactionCurrencyExchangeRate = transactionCurrencyExchangeRate; 536 } 537 538 /** 539 * Sets the transactionCurrencyExchangeRate attribute. 540 * 541 * @param transactionCurrencyExchangeRate The transactionCurrencyExchangeRate to set. 542 */ 543 public void setTransactionCurrencyExchangeRate(String transactionCurrencyExchangeRate) { 544 if (StringUtils.isNotBlank(transactionCurrencyExchangeRate)) { 545 this.transactionCurrencyExchangeRate = new BigDecimal(transactionCurrencyExchangeRate); 546 } 547 else { 548 this.transactionCurrencyExchangeRate = new BigDecimal(0); 549 } 550 } 551 552 553 /** 554 * Gets the transactionSettlementAmount attribute. 555 * 556 * @return Returns the transactionSettlementAmount 557 */ 558 public KualiDecimal getTransactionSettlementAmount() { 559 return transactionSettlementAmount; 560 } 561 562 /** 563 * Sets the transactionSettlementAmount attribute. 564 * 565 * @param transactionSettlementAmount The transactionSettlementAmount to set. 566 */ 567 public void setTransactionSettlementAmount(KualiDecimal transactionSettlementAmount) { 568 this.transactionSettlementAmount = transactionSettlementAmount; 569 } 570 571 /** 572 * Sets the transactionSettlementAmount attribute. 573 * 574 * @param transactionSettlementAmount The transactionSettlementAmount to set. 575 */ 576 public void setTransactionSettlementAmount(String transactionSettlementAmount) { 577 if (StringUtils.isNotBlank(transactionSettlementAmount)) { 578 this.transactionSettlementAmount = new KualiDecimal(transactionSettlementAmount); 579 } 580 else { 581 this.transactionSettlementAmount = KualiDecimal.ZERO; 582 } 583 } 584 585 586 /** 587 * Gets the transactionSalesTaxAmount attribute. 588 * 589 * @return Returns the transactionSalesTaxAmount 590 */ 591 public KualiDecimal getTransactionSalesTaxAmount() { 592 return transactionSalesTaxAmount; 593 } 594 595 /** 596 * Sets the transactionSalesTaxAmount attribute. 597 * 598 * @param transactionSalesTaxAmount The transactionSalesTaxAmount to set. 599 */ 600 public void setTransactionSalesTaxAmount(KualiDecimal transactionSalesTaxAmount) { 601 this.transactionSalesTaxAmount = transactionSalesTaxAmount; 602 } 603 604 /** 605 * Sets the transactionSalesTaxAmount attribute. 606 * 607 * @param transactionSalesTaxAmount The transactionSalesTaxAmount to set. 608 */ 609 public void setTransactionSalesTaxAmount(String transactionSalesTaxAmount) { 610 if (StringUtils.isNotBlank(transactionSalesTaxAmount)) { 611 this.transactionSalesTaxAmount = new KualiDecimal(transactionSalesTaxAmount); 612 } 613 else { 614 this.transactionSalesTaxAmount = KualiDecimal.ZERO; 615 } 616 } 617 618 619 /** 620 * Gets the transactionTaxExemptIndicator attribute. 621 * 622 * @return Returns the transactionTaxExemptIndicator 623 */ 624 public boolean getTransactionTaxExemptIndicator() { 625 return transactionTaxExemptIndicator; 626 } 627 628 /** 629 * Sets the transactionTaxExemptIndicator attribute. 630 * 631 * @param transactionTaxExemptIndicator The transactionTaxExemptIndicator to set. 632 */ 633 public void setTransactionTaxExemptIndicator(boolean transactionTaxExemptIndicator) { 634 this.transactionTaxExemptIndicator = transactionTaxExemptIndicator; 635 } 636 637 /** 638 * Sets the transactionTaxExemptIndicator attribute. 639 * 640 * @param transactionTaxExemptIndicator The transactionTaxExemptIndicator to set. 641 */ 642 public void setTransactionTaxExemptIndicator(String transactionTaxExemptIndicator) { 643 if (KFSConstants.ACTIVE_INDICATOR.equals(transactionTaxExemptIndicator)) { 644 this.transactionTaxExemptIndicator = true; 645 } 646 else { 647 this.transactionTaxExemptIndicator = false; 648 } 649 } 650 651 652 /** 653 * Gets the transactionPurchaseIdentifierIndicator attribute. 654 * 655 * @return Returns the transactionPurchaseIdentifierIndicator 656 */ 657 public boolean getTransactionPurchaseIdentifierIndicator() { 658 return transactionPurchaseIdentifierIndicator; 659 } 660 661 /** 662 * Sets the transactionPurchaseIdentifierIndicator attribute. 663 * 664 * @param transactionPurchaseIdentifierIndicator The transactionPurchaseIdentifierIndicator to set. 665 */ 666 public void setTransactionPurchaseIdentifierIndicator(boolean transactionPurchaseIdentifierIndicator) { 667 this.transactionPurchaseIdentifierIndicator = transactionPurchaseIdentifierIndicator; 668 } 669 670 /** 671 * Sets the transactionPurchaseIdentifierIndicator attribute. 672 * 673 * @param transactionPurchaseIdentifierIndicator The transactionPurchaseIdentifierIndicator to set. 674 */ 675 public void setTransactionPurchaseIdentifierIndicator(String transactionPurchaseIdentifierIndicator) { 676 if (KFSConstants.ACTIVE_INDICATOR.equals(transactionPurchaseIdentifierIndicator)) { 677 this.transactionPurchaseIdentifierIndicator = true; 678 } 679 else { 680 this.transactionPurchaseIdentifierIndicator = false; 681 } 682 } 683 684 685 /** 686 * Gets the transactionPurchaseIdentifierDescription attribute. 687 * 688 * @return Returns the transactionPurchaseIdentifierDescription 689 */ 690 public String getTransactionPurchaseIdentifierDescription() { 691 return transactionPurchaseIdentifierDescription; 692 } 693 694 /** 695 * Sets the transactionPurchaseIdentifierDescription attribute. 696 * 697 * @param transactionPurchaseIdentifierDescription The transactionPurchaseIdentifierDescription to set. 698 */ 699 public void setTransactionPurchaseIdentifierDescription(String transactionPurchaseIdentifierDescription) { 700 this.transactionPurchaseIdentifierDescription = transactionPurchaseIdentifierDescription; 701 } 702 703 704 /** 705 * Gets the transactionUnitContactName attribute. 706 * 707 * @return Returns the transactionUnitContactName 708 */ 709 public String getTransactionUnitContactName() { 710 return transactionUnitContactName; 711 } 712 713 /** 714 * Sets the transactionUnitContactName attribute. 715 * 716 * @param transactionUnitContactName The transactionUnitContactName to set. 717 */ 718 public void setTransactionUnitContactName(String transactionUnitContactName) { 719 this.transactionUnitContactName = transactionUnitContactName; 720 } 721 722 723 /** 724 * Gets the transactionTravelAuthorizationCode attribute. 725 * 726 * @return Returns the transactionTravelAuthorizationCode 727 */ 728 public String getTransactionTravelAuthorizationCode() { 729 return transactionTravelAuthorizationCode; 730 } 731 732 /** 733 * Sets the transactionTravelAuthorizationCode attribute. 734 * 735 * @param transactionTravelAuthorizationCode The transactionTravelAuthorizationCode to set. 736 */ 737 public void setTransactionTravelAuthorizationCode(String transactionTravelAuthorizationCode) { 738 this.transactionTravelAuthorizationCode = transactionTravelAuthorizationCode; 739 } 740 741 742 /** 743 * Gets the transactionPointOfSaleCode attribute. 744 * 745 * @return Returns the transactionPointOfSaleCode 746 */ 747 public String getTransactionPointOfSaleCode() { 748 return transactionPointOfSaleCode; 749 } 750 751 /** 752 * Sets the transactionPointOfSaleCode attribute. 753 * 754 * @param transactionPointOfSaleCode The transactionPointOfSaleCode to set. 755 */ 756 public void setTransactionPointOfSaleCode(String transactionPointOfSaleCode) { 757 this.transactionPointOfSaleCode = transactionPointOfSaleCode; 758 } 759 760 761 /** 762 * Gets the vendorName attribute. 763 * 764 * @return Returns the vendorName 765 */ 766 public String getVendorName() { 767 return vendorName; 768 } 769 770 /** 771 * Sets the vendorName attribute. 772 * 773 * @param vendorName The vendorName to set. 774 */ 775 public void setVendorName(String vendorName) { 776 this.vendorName = vendorName; 777 } 778 779 780 /** 781 * Gets the vendorLine1Address attribute. 782 * 783 * @return Returns the vendorLine1Address 784 */ 785 public String getVendorLine1Address() { 786 return vendorLine1Address; 787 } 788 789 /** 790 * Sets the vendorLine1Address attribute. 791 * 792 * @param vendorLine1Address The vendorLine1Address to set. 793 */ 794 public void setVendorLine1Address(String vendorLine1Address) { 795 this.vendorLine1Address = vendorLine1Address; 796 } 797 798 799 /** 800 * Gets the vendorLine2Address attribute. 801 * 802 * @return Returns the vendorLine2Address 803 */ 804 public String getVendorLine2Address() { 805 return vendorLine2Address; 806 } 807 808 /** 809 * Sets the vendorLine2Address attribute. 810 * 811 * @param vendorLine2Address The vendorLine2Address to set. 812 */ 813 public void setVendorLine2Address(String vendorLine2Address) { 814 this.vendorLine2Address = vendorLine2Address; 815 } 816 817 818 /** 819 * Gets the vendorCityName attribute. 820 * 821 * @return Returns the vendorCityName 822 */ 823 public String getVendorCityName() { 824 return vendorCityName; 825 } 826 827 /** 828 * Sets the vendorCityName attribute. 829 * 830 * @param vendorCityName The vendorCityName to set. 831 */ 832 public void setVendorCityName(String vendorCityName) { 833 this.vendorCityName = vendorCityName; 834 } 835 836 837 /** 838 * Gets the vendorStateCode attribute. 839 * 840 * @return Returns the vendorStateCode 841 */ 842 public String getVendorStateCode() { 843 return vendorStateCode; 844 } 845 846 /** 847 * Sets the vendorStateCode attribute. 848 * 849 * @param vendorStateCode The vendorStateCode to set. 850 */ 851 public void setVendorStateCode(String vendorStateCode) { 852 this.vendorStateCode = vendorStateCode; 853 } 854 855 856 /** 857 * Gets the vendorZipCode attribute. 858 * 859 * @return Returns the vendorZipCode 860 */ 861 public String getVendorZipCode() { 862 return vendorZipCode; 863 } 864 865 /** 866 * Sets the vendorZipCode attribute. 867 * 868 * @param vendorZipCode The vendorZipCode to set. 869 */ 870 public void setVendorZipCode(String vendorZipCode) { 871 this.vendorZipCode = vendorZipCode; 872 } 873 874 875 /** 876 * Gets the vendorOrderNumber attribute. 877 * 878 * @return Returns the vendorOrderNumber 879 */ 880 public String getVendorOrderNumber() { 881 return vendorOrderNumber; 882 } 883 884 /** 885 * Sets the vendorOrderNumber attribute. 886 * 887 * @param vendorOrderNumber The vendorOrderNumber to set. 888 */ 889 public void setVendorOrderNumber(String vendorOrderNumber) { 890 this.vendorOrderNumber = vendorOrderNumber; 891 } 892 893 894 /** 895 * Gets the visaVendorIdentifier attribute. 896 * 897 * @return Returns the visaVendorIdentifier 898 */ 899 public String getVisaVendorIdentifier() { 900 return visaVendorIdentifier; 901 } 902 903 /** 904 * Sets the visaVendorIdentifier attribute. 905 * 906 * @param visaVendorIdentifier The visaVendorIdentifier to set. 907 */ 908 public void setVisaVendorIdentifier(String visaVendorIdentifier) { 909 this.visaVendorIdentifier = visaVendorIdentifier; 910 } 911 912 913 /** 914 * Gets the cardHolderAlternateName attribute. 915 * 916 * @return Returns the cardHolderAlternateName 917 */ 918 public String getCardHolderAlternateName() { 919 return cardHolderAlternateName; 920 } 921 922 /** 923 * Sets the cardHolderAlternateName attribute. 924 * 925 * @param cardHolderAlternateName The cardHolderAlternateName to set. 926 */ 927 public void setCardHolderAlternateName(String cardHolderAlternateName) { 928 this.cardHolderAlternateName = cardHolderAlternateName; 929 } 930 931 932 /** 933 * Gets the cardHolderLine1Address attribute. 934 * 935 * @return Returns the cardHolderLine1Address 936 */ 937 public String getCardHolderLine1Address() { 938 return cardHolderLine1Address; 939 } 940 941 /** 942 * Sets the cardHolderLine1Address attribute. 943 * 944 * @param cardHolderLine1Address The cardHolderLine1Address to set. 945 */ 946 public void setCardHolderLine1Address(String cardHolderLine1Address) { 947 this.cardHolderLine1Address = cardHolderLine1Address; 948 } 949 950 951 /** 952 * Gets the cardHolderLine2Address attribute. 953 * 954 * @return Returns the cardHolderLine2Address 955 */ 956 public String getCardHolderLine2Address() { 957 return cardHolderLine2Address; 958 } 959 960 /** 961 * Sets the cardHolderLine2Address attribute. 962 * 963 * @param cardHolderLine2Address The cardHolderLine2Address to set. 964 */ 965 public void setCardHolderLine2Address(String cardHolderLine2Address) { 966 this.cardHolderLine2Address = cardHolderLine2Address; 967 } 968 969 970 /** 971 * Gets the cardHolderCityName attribute. 972 * 973 * @return Returns the cardHolderCityName 974 */ 975 public String getCardHolderCityName() { 976 return cardHolderCityName; 977 } 978 979 /** 980 * Sets the cardHolderCityName attribute. 981 * 982 * @param cardHolderCityName The cardHolderCityName to set. 983 */ 984 public void setCardHolderCityName(String cardHolderCityName) { 985 this.cardHolderCityName = cardHolderCityName; 986 } 987 988 989 /** 990 * Gets the cardHolderStateCode attribute. 991 * 992 * @return Returns the cardHolderStateCode 993 */ 994 public String getCardHolderStateCode() { 995 return cardHolderStateCode; 996 } 997 998 /** 999 * Sets the cardHolderStateCode attribute. 1000 * 1001 * @param cardHolderStateCode The cardHolderStateCode to set. 1002 */ 1003 public void setCardHolderStateCode(String cardHolderStateCode) { 1004 this.cardHolderStateCode = cardHolderStateCode; 1005 } 1006 1007 1008 /** 1009 * Gets the cardHolderZipCode attribute. 1010 * 1011 * @return Returns the cardHolderZipCode 1012 */ 1013 public String getCardHolderZipCode() { 1014 return cardHolderZipCode; 1015 } 1016 1017 /** 1018 * Sets the cardHolderZipCode attribute. 1019 * 1020 * @param cardHolderZipCode The cardHolderZipCode to set. 1021 */ 1022 public void setCardHolderZipCode(String cardHolderZipCode) { 1023 this.cardHolderZipCode = cardHolderZipCode; 1024 } 1025 1026 1027 /** 1028 * Gets the cardHolderWorkPhoneNumber attribute. 1029 * 1030 * @return Returns the cardHolderWorkPhoneNumber 1031 */ 1032 public String getCardHolderWorkPhoneNumber() { 1033 return cardHolderWorkPhoneNumber; 1034 } 1035 1036 /** 1037 * Sets the cardHolderWorkPhoneNumber attribute. 1038 * 1039 * @param cardHolderWorkPhoneNumber The cardHolderWorkPhoneNumber to set. 1040 */ 1041 public void setCardHolderWorkPhoneNumber(String cardHolderWorkPhoneNumber) { 1042 this.cardHolderWorkPhoneNumber = cardHolderWorkPhoneNumber; 1043 } 1044 1045 1046 /** 1047 * Gets the cardLimit attribute. 1048 * 1049 * @return Returns the cardLimit 1050 */ 1051 public KualiDecimal getCardLimit() { 1052 return cardLimit; 1053 } 1054 1055 /** 1056 * Sets the cardLimit attribute. 1057 * 1058 * @param cardLimit The cardLimit to set. 1059 */ 1060 public void setCardLimit(KualiDecimal cardLimit) { 1061 this.cardLimit = cardLimit; 1062 } 1063 1064 /** 1065 * Sets the cardLimit attribute. 1066 * 1067 * @param cardLimit The cardLimit to set. 1068 */ 1069 public void setCardLimit(String cardLimit) { 1070 if (StringUtils.isNotBlank(cardLimit)) { 1071 this.cardLimit = new KualiDecimal(cardLimit); 1072 } 1073 else { 1074 this.cardLimit = KualiDecimal.ZERO; 1075 } 1076 } 1077 1078 1079 /** 1080 * Gets the cardCycleAmountLimit attribute. 1081 * 1082 * @return Returns the cardCycleAmountLimit 1083 */ 1084 public KualiDecimal getCardCycleAmountLimit() { 1085 return cardCycleAmountLimit; 1086 } 1087 1088 /** 1089 * Sets the cardCycleAmountLimit attribute. 1090 * 1091 * @param cardCycleAmountLimit The cardCycleAmountLimit to set. 1092 */ 1093 public void setCardCycleAmountLimit(KualiDecimal cardCycleAmountLimit) { 1094 this.cardCycleAmountLimit = cardCycleAmountLimit; 1095 } 1096 1097 /** 1098 * Sets the cardCycleAmountLimit attribute. 1099 * 1100 * @param cardCycleAmountLimit The cardCycleAmountLimit to set. 1101 */ 1102 public void setCardCycleAmountLimit(String cardCycleAmountLimit) { 1103 if (StringUtils.isNotBlank(cardCycleAmountLimit)) { 1104 this.cardCycleAmountLimit = new KualiDecimal(cardCycleAmountLimit); 1105 } 1106 else { 1107 this.cardCycleAmountLimit = KualiDecimal.ZERO; 1108 } 1109 } 1110 1111 1112 /** 1113 * Gets the cardCycleVolumeLimit attribute. 1114 * 1115 * @return Returns the cardCycleVolumeLimit 1116 */ 1117 public KualiDecimal getCardCycleVolumeLimit() { 1118 return cardCycleVolumeLimit; 1119 } 1120 1121 /** 1122 * Sets the cardCycleVolumeLimit attribute. 1123 * 1124 * @param cardCycleVolumeLimit The cardCycleVolumeLimit to set. 1125 */ 1126 public void setCardCycleVolumeLimit(KualiDecimal cardCycleVolumeLimit) { 1127 this.cardCycleVolumeLimit = cardCycleVolumeLimit; 1128 } 1129 1130 /** 1131 * Sets the cardCycleVolumeLimit attribute. 1132 * 1133 * @param cardCycleVolumeLimit The cardCycleVolumeLimit to set. 1134 */ 1135 public void setCardCycleVolumeLimit(String cardCycleVolumeLimit) { 1136 if (StringUtils.isNotBlank(cardCycleVolumeLimit)) { 1137 this.cardCycleVolumeLimit = new KualiDecimal(cardCycleVolumeLimit); 1138 } 1139 else { 1140 this.cardCycleVolumeLimit = KualiDecimal.ZERO; 1141 } 1142 } 1143 1144 1145 /** 1146 * Gets the cardStatusCode attribute. 1147 * 1148 * @return Returns the cardStatusCode 1149 */ 1150 public String getCardStatusCode() { 1151 return cardStatusCode; 1152 } 1153 1154 /** 1155 * Sets the cardStatusCode attribute. 1156 * 1157 * @param cardStatusCode The cardStatusCode to set. 1158 */ 1159 public void setCardStatusCode(String cardStatusCode) { 1160 this.cardStatusCode = cardStatusCode; 1161 } 1162 1163 1164 /** 1165 * Gets the cardNoteText attribute. 1166 * 1167 * @return Returns the cardNoteText 1168 */ 1169 public String getCardNoteText() { 1170 return cardNoteText; 1171 } 1172 1173 /** 1174 * Sets the cardNoteText attribute. 1175 * 1176 * @param cardNoteText The cardNoteText to set. 1177 */ 1178 public void setCardNoteText(String cardNoteText) { 1179 this.cardNoteText = cardNoteText; 1180 } 1181 1182 /** 1183 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 1184 */ 1185 protected LinkedHashMap toStringMapper() { 1186 LinkedHashMap m = new LinkedHashMap(); 1187 if (this.transactionSequenceRowNumber != null) { 1188 m.put("transactionSequenceRowNumber", this.transactionSequenceRowNumber.toString()); 1189 } 1190 return m; 1191 } 1192 1193 1194 }