1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.ole.fp.businessobject;
18
19 import java.math.BigDecimal;
20 import java.sql.Date;
21 import java.util.LinkedHashMap;
22
23 import org.apache.commons.beanutils.converters.SqlDateConverter;
24 import org.apache.commons.lang.StringUtils;
25 import org.kuali.ole.sys.OLEConstants;
26 import org.kuali.rice.core.api.util.type.KualiDecimal;
27 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
28
29
30
31
32 public class ProcurementCardTransaction extends PersistableBusinessObjectBase {
33
34 private Integer transactionSequenceRowNumber;
35 private String transactionCreditCardNumber;
36 private KualiDecimal financialDocumentTotalAmount;
37 private String transactionDebitCreditCode;
38 private String chartOfAccountsCode;
39 private String accountNumber;
40 private String subAccountNumber;
41 private String financialObjectCode;
42 private String financialSubObjectCode;
43 private String projectCode;
44 private Date transactionCycleStartDate;
45 private Date transactionCycleEndDate;
46 private String cardHolderName;
47 private Date transactionDate;
48 private String transactionReferenceNumber;
49 private String transactionMerchantCategoryCode;
50 private Date transactionPostingDate;
51 private String transactionOriginalCurrencyCode;
52 private String transactionBillingCurrencyCode;
53 private KualiDecimal transactionOriginalCurrencyAmount;
54 private BigDecimal transactionCurrencyExchangeRate;
55 private KualiDecimal transactionSettlementAmount;
56 private KualiDecimal transactionSalesTaxAmount;
57 private boolean transactionTaxExemptIndicator;
58 private boolean transactionPurchaseIdentifierIndicator;
59 private String transactionPurchaseIdentifierDescription;
60 private String transactionUnitContactName;
61 private String transactionTravelAuthorizationCode;
62 private String transactionPointOfSaleCode;
63 private String vendorName;
64 private String vendorLine1Address;
65 private String vendorLine2Address;
66 private String vendorCityName;
67 private String vendorStateCode;
68 private String vendorZipCode;
69 private String vendorOrderNumber;
70 private String visaVendorIdentifier;
71 private String cardHolderAlternateName;
72 private String cardHolderLine1Address;
73 private String cardHolderLine2Address;
74 private String cardHolderCityName;
75 private String cardHolderStateCode;
76 private String cardHolderZipCode;
77 private String cardHolderWorkPhoneNumber;
78 private KualiDecimal cardLimit;
79 private KualiDecimal cardCycleAmountLimit;
80 private KualiDecimal cardCycleVolumeLimit;
81 private String cardStatusCode;
82 private String cardNoteText;
83
84
85
86
87 public ProcurementCardTransaction() {
88
89 }
90
91
92
93
94
95
96 public Integer getTransactionSequenceRowNumber() {
97 return transactionSequenceRowNumber;
98 }
99
100
101
102
103
104
105 public void setTransactionSequenceRowNumber(Integer transactionSequenceRowNumber) {
106 this.transactionSequenceRowNumber = transactionSequenceRowNumber;
107 }
108
109
110
111
112
113
114
115 public String getTransactionCreditCardNumber() {
116 return transactionCreditCardNumber;
117 }
118
119
120
121
122
123
124 public void setTransactionCreditCardNumber(String transactionCreditCardNumber) {
125 this.transactionCreditCardNumber = transactionCreditCardNumber;
126 }
127
128
129
130
131
132
133
134 public KualiDecimal getFinancialDocumentTotalAmount() {
135 return financialDocumentTotalAmount;
136 }
137
138
139
140
141
142
143 public void setFinancialDocumentTotalAmount(KualiDecimal financialDocumentTotalAmount) {
144 this.financialDocumentTotalAmount = financialDocumentTotalAmount;
145 }
146
147
148
149
150
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
164
165
166
167 public String getTransactionDebitCreditCode() {
168 return transactionDebitCreditCode;
169 }
170
171
172
173
174
175
176 public void setTransactionDebitCreditCode(String transactionDebitCreditCode) {
177 this.transactionDebitCreditCode = transactionDebitCreditCode;
178 }
179
180
181
182
183
184
185
186 public String getChartOfAccountsCode() {
187 return chartOfAccountsCode;
188 }
189
190
191
192
193
194
195 public void setChartOfAccountsCode(String chartOfAccountsCode) {
196 this.chartOfAccountsCode = chartOfAccountsCode;
197 }
198
199
200
201
202
203
204
205 public String getAccountNumber() {
206 return accountNumber;
207 }
208
209
210
211
212
213
214 public void setAccountNumber(String accountNumber) {
215 this.accountNumber = accountNumber;
216 }
217
218
219
220
221
222
223
224 public String getSubAccountNumber() {
225 return subAccountNumber;
226 }
227
228
229
230
231
232
233 public void setSubAccountNumber(String subAccountNumber) {
234 this.subAccountNumber = subAccountNumber;
235 }
236
237
238
239
240
241
242
243 public String getFinancialObjectCode() {
244 return financialObjectCode;
245 }
246
247
248
249
250
251
252 public void setFinancialObjectCode(String financialObjectCode) {
253 this.financialObjectCode = financialObjectCode;
254 }
255
256
257
258
259
260
261
262 public String getFinancialSubObjectCode() {
263 return financialSubObjectCode;
264 }
265
266
267
268
269
270
271 public void setFinancialSubObjectCode(String financialSubObjectCode) {
272 this.financialSubObjectCode = financialSubObjectCode;
273 }
274
275
276
277
278
279
280
281 public String getProjectCode() {
282 return projectCode;
283 }
284
285
286
287
288
289
290 public void setProjectCode(String projectCode) {
291 this.projectCode = projectCode;
292 }
293
294
295
296
297
298
299
300 public Date getTransactionCycleStartDate() {
301 return transactionCycleStartDate;
302 }
303
304
305
306
307
308
309 public void setTransactionCycleStartDate(Date transactionCycleStartDate) {
310 this.transactionCycleStartDate = transactionCycleStartDate;
311 }
312
313
314
315
316
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
327
328
329
330 public Date getTransactionCycleEndDate() {
331 return transactionCycleEndDate;
332 }
333
334
335
336
337
338
339 public void setTransactionCycleEndDate(Date transactionCycleEndDate) {
340 this.transactionCycleEndDate = transactionCycleEndDate;
341 }
342
343
344
345
346
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
356
357
358
359 public String getCardHolderName() {
360 return cardHolderName;
361 }
362
363
364
365
366
367
368 public void setCardHolderName(String cardHolderName) {
369 this.cardHolderName = cardHolderName;
370 }
371
372
373
374
375
376
377
378 public Date getTransactionDate() {
379 return transactionDate;
380 }
381
382
383
384
385
386
387 public void setTransactionDate(Date transactionDate) {
388 this.transactionDate = transactionDate;
389 }
390
391
392
393
394
395
396
397 public String getTransactionReferenceNumber() {
398 return transactionReferenceNumber;
399 }
400
401
402
403
404
405
406 public void setTransactionReferenceNumber(String transactionReferenceNumber) {
407 this.transactionReferenceNumber = transactionReferenceNumber;
408 }
409
410
411
412
413
414
415
416 public String getTransactionMerchantCategoryCode() {
417 return transactionMerchantCategoryCode;
418 }
419
420
421
422
423
424
425 public void setTransactionMerchantCategoryCode(String transactionMerchantCategoryCode) {
426 this.transactionMerchantCategoryCode = transactionMerchantCategoryCode;
427 }
428
429
430
431
432
433
434
435 public Date getTransactionPostingDate() {
436 return transactionPostingDate;
437 }
438
439
440
441
442
443
444 public void setTransactionPostingDate(Date transactionPostingDate) {
445 this.transactionPostingDate = transactionPostingDate;
446 }
447
448
449
450
451
452
453
454 public String getTransactionOriginalCurrencyCode() {
455 return transactionOriginalCurrencyCode;
456 }
457
458
459
460
461
462
463 public void setTransactionOriginalCurrencyCode(String transactionOriginalCurrencyCode) {
464 this.transactionOriginalCurrencyCode = transactionOriginalCurrencyCode;
465 }
466
467
468
469
470
471
472
473 public String getTransactionBillingCurrencyCode() {
474 return transactionBillingCurrencyCode;
475 }
476
477
478
479
480
481
482 public void setTransactionBillingCurrencyCode(String transactionBillingCurrencyCode) {
483 this.transactionBillingCurrencyCode = transactionBillingCurrencyCode;
484 }
485
486
487
488
489
490
491
492 public KualiDecimal getTransactionOriginalCurrencyAmount() {
493 return transactionOriginalCurrencyAmount;
494 }
495
496
497
498
499
500
501 public void setTransactionOriginalCurrencyAmount(KualiDecimal transactionOriginalCurrencyAmount) {
502 this.transactionOriginalCurrencyAmount = transactionOriginalCurrencyAmount;
503 }
504
505
506
507
508
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
522
523
524
525 public BigDecimal getTransactionCurrencyExchangeRate() {
526 return transactionCurrencyExchangeRate;
527 }
528
529
530
531
532
533
534 public void setTransactionCurrencyExchangeRate(BigDecimal transactionCurrencyExchangeRate) {
535 this.transactionCurrencyExchangeRate = transactionCurrencyExchangeRate;
536 }
537
538
539
540
541
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
555
556
557
558 public KualiDecimal getTransactionSettlementAmount() {
559 return transactionSettlementAmount;
560 }
561
562
563
564
565
566
567 public void setTransactionSettlementAmount(KualiDecimal transactionSettlementAmount) {
568 this.transactionSettlementAmount = transactionSettlementAmount;
569 }
570
571
572
573
574
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
588
589
590
591 public KualiDecimal getTransactionSalesTaxAmount() {
592 return transactionSalesTaxAmount;
593 }
594
595
596
597
598
599
600 public void setTransactionSalesTaxAmount(KualiDecimal transactionSalesTaxAmount) {
601 this.transactionSalesTaxAmount = transactionSalesTaxAmount;
602 }
603
604
605
606
607
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
621
622
623
624 public boolean getTransactionTaxExemptIndicator() {
625 return transactionTaxExemptIndicator;
626 }
627
628
629
630
631
632
633 public void setTransactionTaxExemptIndicator(boolean transactionTaxExemptIndicator) {
634 this.transactionTaxExemptIndicator = transactionTaxExemptIndicator;
635 }
636
637
638
639
640
641
642 public void setTransactionTaxExemptIndicator(String transactionTaxExemptIndicator) {
643 if (OLEConstants.ACTIVE_INDICATOR.equals(transactionTaxExemptIndicator)) {
644 this.transactionTaxExemptIndicator = true;
645 }
646 else {
647 this.transactionTaxExemptIndicator = false;
648 }
649 }
650
651
652
653
654
655
656
657 public boolean getTransactionPurchaseIdentifierIndicator() {
658 return transactionPurchaseIdentifierIndicator;
659 }
660
661
662
663
664
665
666 public void setTransactionPurchaseIdentifierIndicator(boolean transactionPurchaseIdentifierIndicator) {
667 this.transactionPurchaseIdentifierIndicator = transactionPurchaseIdentifierIndicator;
668 }
669
670
671
672
673
674
675 public void setTransactionPurchaseIdentifierIndicator(String transactionPurchaseIdentifierIndicator) {
676 if (OLEConstants.ACTIVE_INDICATOR.equals(transactionPurchaseIdentifierIndicator)) {
677 this.transactionPurchaseIdentifierIndicator = true;
678 }
679 else {
680 this.transactionPurchaseIdentifierIndicator = false;
681 }
682 }
683
684
685
686
687
688
689
690 public String getTransactionPurchaseIdentifierDescription() {
691 return transactionPurchaseIdentifierDescription;
692 }
693
694
695
696
697
698
699 public void setTransactionPurchaseIdentifierDescription(String transactionPurchaseIdentifierDescription) {
700 this.transactionPurchaseIdentifierDescription = transactionPurchaseIdentifierDescription;
701 }
702
703
704
705
706
707
708
709 public String getTransactionUnitContactName() {
710 return transactionUnitContactName;
711 }
712
713
714
715
716
717
718 public void setTransactionUnitContactName(String transactionUnitContactName) {
719 this.transactionUnitContactName = transactionUnitContactName;
720 }
721
722
723
724
725
726
727
728 public String getTransactionTravelAuthorizationCode() {
729 return transactionTravelAuthorizationCode;
730 }
731
732
733
734
735
736
737 public void setTransactionTravelAuthorizationCode(String transactionTravelAuthorizationCode) {
738 this.transactionTravelAuthorizationCode = transactionTravelAuthorizationCode;
739 }
740
741
742
743
744
745
746
747 public String getTransactionPointOfSaleCode() {
748 return transactionPointOfSaleCode;
749 }
750
751
752
753
754
755
756 public void setTransactionPointOfSaleCode(String transactionPointOfSaleCode) {
757 this.transactionPointOfSaleCode = transactionPointOfSaleCode;
758 }
759
760
761
762
763
764
765
766 public String getVendorName() {
767 return vendorName;
768 }
769
770
771
772
773
774
775 public void setVendorName(String vendorName) {
776 this.vendorName = vendorName;
777 }
778
779
780
781
782
783
784
785 public String getVendorLine1Address() {
786 return vendorLine1Address;
787 }
788
789
790
791
792
793
794 public void setVendorLine1Address(String vendorLine1Address) {
795 this.vendorLine1Address = vendorLine1Address;
796 }
797
798
799
800
801
802
803
804 public String getVendorLine2Address() {
805 return vendorLine2Address;
806 }
807
808
809
810
811
812
813 public void setVendorLine2Address(String vendorLine2Address) {
814 this.vendorLine2Address = vendorLine2Address;
815 }
816
817
818
819
820
821
822
823 public String getVendorCityName() {
824 return vendorCityName;
825 }
826
827
828
829
830
831
832 public void setVendorCityName(String vendorCityName) {
833 this.vendorCityName = vendorCityName;
834 }
835
836
837
838
839
840
841
842 public String getVendorStateCode() {
843 return vendorStateCode;
844 }
845
846
847
848
849
850
851 public void setVendorStateCode(String vendorStateCode) {
852 this.vendorStateCode = vendorStateCode;
853 }
854
855
856
857
858
859
860
861 public String getVendorZipCode() {
862 return vendorZipCode;
863 }
864
865
866
867
868
869
870 public void setVendorZipCode(String vendorZipCode) {
871 this.vendorZipCode = vendorZipCode;
872 }
873
874
875
876
877
878
879
880 public String getVendorOrderNumber() {
881 return vendorOrderNumber;
882 }
883
884
885
886
887
888
889 public void setVendorOrderNumber(String vendorOrderNumber) {
890 this.vendorOrderNumber = vendorOrderNumber;
891 }
892
893
894
895
896
897
898
899 public String getVisaVendorIdentifier() {
900 return visaVendorIdentifier;
901 }
902
903
904
905
906
907
908 public void setVisaVendorIdentifier(String visaVendorIdentifier) {
909 this.visaVendorIdentifier = visaVendorIdentifier;
910 }
911
912
913
914
915
916
917
918 public String getCardHolderAlternateName() {
919 return cardHolderAlternateName;
920 }
921
922
923
924
925
926
927 public void setCardHolderAlternateName(String cardHolderAlternateName) {
928 this.cardHolderAlternateName = cardHolderAlternateName;
929 }
930
931
932
933
934
935
936
937 public String getCardHolderLine1Address() {
938 return cardHolderLine1Address;
939 }
940
941
942
943
944
945
946 public void setCardHolderLine1Address(String cardHolderLine1Address) {
947 this.cardHolderLine1Address = cardHolderLine1Address;
948 }
949
950
951
952
953
954
955
956 public String getCardHolderLine2Address() {
957 return cardHolderLine2Address;
958 }
959
960
961
962
963
964
965 public void setCardHolderLine2Address(String cardHolderLine2Address) {
966 this.cardHolderLine2Address = cardHolderLine2Address;
967 }
968
969
970
971
972
973
974
975 public String getCardHolderCityName() {
976 return cardHolderCityName;
977 }
978
979
980
981
982
983
984 public void setCardHolderCityName(String cardHolderCityName) {
985 this.cardHolderCityName = cardHolderCityName;
986 }
987
988
989
990
991
992
993
994 public String getCardHolderStateCode() {
995 return cardHolderStateCode;
996 }
997
998
999
1000
1001
1002
1003 public void setCardHolderStateCode(String cardHolderStateCode) {
1004 this.cardHolderStateCode = cardHolderStateCode;
1005 }
1006
1007
1008
1009
1010
1011
1012
1013 public String getCardHolderZipCode() {
1014 return cardHolderZipCode;
1015 }
1016
1017
1018
1019
1020
1021
1022 public void setCardHolderZipCode(String cardHolderZipCode) {
1023 this.cardHolderZipCode = cardHolderZipCode;
1024 }
1025
1026
1027
1028
1029
1030
1031
1032 public String getCardHolderWorkPhoneNumber() {
1033 return cardHolderWorkPhoneNumber;
1034 }
1035
1036
1037
1038
1039
1040
1041 public void setCardHolderWorkPhoneNumber(String cardHolderWorkPhoneNumber) {
1042 this.cardHolderWorkPhoneNumber = cardHolderWorkPhoneNumber;
1043 }
1044
1045
1046
1047
1048
1049
1050
1051 public KualiDecimal getCardLimit() {
1052 return cardLimit;
1053 }
1054
1055
1056
1057
1058
1059
1060 public void setCardLimit(KualiDecimal cardLimit) {
1061 this.cardLimit = cardLimit;
1062 }
1063
1064
1065
1066
1067
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
1081
1082
1083
1084 public KualiDecimal getCardCycleAmountLimit() {
1085 return cardCycleAmountLimit;
1086 }
1087
1088
1089
1090
1091
1092
1093 public void setCardCycleAmountLimit(KualiDecimal cardCycleAmountLimit) {
1094 this.cardCycleAmountLimit = cardCycleAmountLimit;
1095 }
1096
1097
1098
1099
1100
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
1114
1115
1116
1117 public KualiDecimal getCardCycleVolumeLimit() {
1118 return cardCycleVolumeLimit;
1119 }
1120
1121
1122
1123
1124
1125
1126 public void setCardCycleVolumeLimit(KualiDecimal cardCycleVolumeLimit) {
1127 this.cardCycleVolumeLimit = cardCycleVolumeLimit;
1128 }
1129
1130
1131
1132
1133
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
1147
1148
1149
1150 public String getCardStatusCode() {
1151 return cardStatusCode;
1152 }
1153
1154
1155
1156
1157
1158
1159 public void setCardStatusCode(String cardStatusCode) {
1160 this.cardStatusCode = cardStatusCode;
1161 }
1162
1163
1164
1165
1166
1167
1168
1169 public String getCardNoteText() {
1170 return cardNoteText;
1171 }
1172
1173
1174
1175
1176
1177
1178 public void setCardNoteText(String cardNoteText) {
1179 this.cardNoteText = cardNoteText;
1180 }
1181
1182
1183
1184
1185 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
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 }