1 2 package org.compiere.model; 3 import java.util.*; 4 import java.sql.*; 5 import java.math.*; 6 import java.io.Serializable ; 7 import org.compiere.util.*; 8 10 public class X_C_Payment extends PO 11 { 12 13 public X_C_Payment (Properties ctx, int C_Payment_ID) 14 { 15 super (ctx, C_Payment_ID); 16 42 } 43 44 public X_C_Payment (Properties ctx, ResultSet rs) 45 { 46 super (ctx, rs); 47 } 48 49 protected POInfo initPO (Properties ctx) 50 { 51 int AD_Table_ID = 335; 52 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 53 return poi; 54 } 55 public String toString() 56 { 57 StringBuffer sb = new StringBuffer ("X_C_Payment[").append(getID()).append("]"); 58 return sb.toString(); 59 } 60 public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) 61 { 62 if (AD_OrgTrx_ID == 0) setValue ("AD_OrgTrx_ID", null); 63 else 64 setValue ("AD_OrgTrx_ID", new Integer (AD_OrgTrx_ID)); 65 } 66 public int getAD_OrgTrx_ID() 67 { 68 Integer ii = (Integer )getValue("AD_OrgTrx_ID"); 69 if (ii == null) return 0; 70 return ii.intValue(); 71 } 72 public void setA_City (String A_City) 73 { 74 setValue ("A_City", A_City); 75 } 76 public String getA_City() 77 { 78 return (String )getValue("A_City"); 79 } 80 public void setA_Country (String A_Country) 81 { 82 setValue ("A_Country", A_Country); 83 } 84 public String getA_Country() 85 { 86 return (String )getValue("A_Country"); 87 } 88 public void setA_EMail (String A_EMail) 89 { 90 setValue ("A_EMail", A_EMail); 91 } 92 public String getA_EMail() 93 { 94 return (String )getValue("A_EMail"); 95 } 96 public void setA_Ident_DL (String A_Ident_DL) 97 { 98 setValue ("A_Ident_DL", A_Ident_DL); 99 } 100 public String getA_Ident_DL() 101 { 102 return (String )getValue("A_Ident_DL"); 103 } 104 public void setA_Ident_SSN (String A_Ident_SSN) 105 { 106 setValue ("A_Ident_SSN", A_Ident_SSN); 107 } 108 public String getA_Ident_SSN() 109 { 110 return (String )getValue("A_Ident_SSN"); 111 } 112 public void setA_Name (String A_Name) 113 { 114 setValue ("A_Name", A_Name); 115 } 116 public String getA_Name() 117 { 118 return (String )getValue("A_Name"); 119 } 120 public void setA_State (String A_State) 121 { 122 setValue ("A_State", A_State); 123 } 124 public String getA_State() 125 { 126 return (String )getValue("A_State"); 127 } 128 public void setA_Street (String A_Street) 129 { 130 setValue ("A_Street", A_Street); 131 } 132 public String getA_Street() 133 { 134 return (String )getValue("A_Street"); 135 } 136 public void setA_Zip (String A_Zip) 137 { 138 setValue ("A_Zip", A_Zip); 139 } 140 public String getA_Zip() 141 { 142 return (String )getValue("A_Zip"); 143 } 144 public void setAccountNo (String AccountNo) 145 { 146 setValue ("AccountNo", AccountNo); 147 } 148 public String getAccountNo() 149 { 150 return (String )getValue("AccountNo"); 151 } 152 public void setC_Activity_ID (int C_Activity_ID) 153 { 154 if (C_Activity_ID == 0) setValue ("C_Activity_ID", null); 155 else 156 setValue ("C_Activity_ID", new Integer (C_Activity_ID)); 157 } 158 public int getC_Activity_ID() 159 { 160 Integer ii = (Integer )getValue("C_Activity_ID"); 161 if (ii == null) return 0; 162 return ii.intValue(); 163 } 164 public void setC_BP_BankAccount_ID (int C_BP_BankAccount_ID) 165 { 166 if (C_BP_BankAccount_ID == 0) setValue ("C_BP_BankAccount_ID", null); 167 else 168 setValue ("C_BP_BankAccount_ID", new Integer (C_BP_BankAccount_ID)); 169 } 170 public int getC_BP_BankAccount_ID() 171 { 172 Integer ii = (Integer )getValue("C_BP_BankAccount_ID"); 173 if (ii == null) return 0; 174 return ii.intValue(); 175 } 176 public void setC_BPartner_ID (int C_BPartner_ID) 177 { 178 setValue ("C_BPartner_ID", new Integer (C_BPartner_ID)); 179 } 180 public int getC_BPartner_ID() 181 { 182 Integer ii = (Integer )getValue("C_BPartner_ID"); 183 if (ii == null) return 0; 184 return ii.intValue(); 185 } 186 public void setC_BankAccount_ID (int C_BankAccount_ID) 187 { 188 setValue ("C_BankAccount_ID", new Integer (C_BankAccount_ID)); 189 } 190 public int getC_BankAccount_ID() 191 { 192 Integer ii = (Integer )getValue("C_BankAccount_ID"); 193 if (ii == null) return 0; 194 return ii.intValue(); 195 } 196 public void setC_Campaign_ID (int C_Campaign_ID) 197 { 198 if (C_Campaign_ID == 0) setValue ("C_Campaign_ID", null); 199 else 200 setValue ("C_Campaign_ID", new Integer (C_Campaign_ID)); 201 } 202 public int getC_Campaign_ID() 203 { 204 Integer ii = (Integer )getValue("C_Campaign_ID"); 205 if (ii == null) return 0; 206 return ii.intValue(); 207 } 208 public void setC_Charge_ID (int C_Charge_ID) 209 { 210 if (C_Charge_ID == 0) setValue ("C_Charge_ID", null); 211 else 212 setValue ("C_Charge_ID", new Integer (C_Charge_ID)); 213 } 214 public int getC_Charge_ID() 215 { 216 Integer ii = (Integer )getValue("C_Charge_ID"); 217 if (ii == null) return 0; 218 return ii.intValue(); 219 } 220 public void setC_Currency_ID (int C_Currency_ID) 221 { 222 setValue ("C_Currency_ID", new Integer (C_Currency_ID)); 223 } 224 public int getC_Currency_ID() 225 { 226 Integer ii = (Integer )getValue("C_Currency_ID"); 227 if (ii == null) return 0; 228 return ii.intValue(); 229 } 230 public void setC_DocType_ID (int C_DocType_ID) 231 { 232 setValue ("C_DocType_ID", new Integer (C_DocType_ID)); 233 } 234 public int getC_DocType_ID() 235 { 236 Integer ii = (Integer )getValue("C_DocType_ID"); 237 if (ii == null) return 0; 238 return ii.intValue(); 239 } 240 public void setC_Invoice_ID (int C_Invoice_ID) 241 { 242 if (C_Invoice_ID == 0) setValue ("C_Invoice_ID", null); 243 else 244 setValue ("C_Invoice_ID", new Integer (C_Invoice_ID)); 245 } 246 public int getC_Invoice_ID() 247 { 248 Integer ii = (Integer )getValue("C_Invoice_ID"); 249 if (ii == null) return 0; 250 return ii.intValue(); 251 } 252 public void setC_PaymentBatch_ID (int C_PaymentBatch_ID) 253 { 254 if (C_PaymentBatch_ID == 0) setValue ("C_PaymentBatch_ID", null); 255 else 256 setValue ("C_PaymentBatch_ID", new Integer (C_PaymentBatch_ID)); 257 } 258 public int getC_PaymentBatch_ID() 259 { 260 Integer ii = (Integer )getValue("C_PaymentBatch_ID"); 261 if (ii == null) return 0; 262 return ii.intValue(); 263 } 264 void setC_Payment_ID (int C_Payment_ID) 265 { 266 setValueNoCheck ("C_Payment_ID", new Integer (C_Payment_ID)); 267 } 268 public int getC_Payment_ID() 269 { 270 Integer ii = (Integer )getValue("C_Payment_ID"); 271 if (ii == null) return 0; 272 return ii.intValue(); 273 } 274 public void setC_Project_ID (int C_Project_ID) 275 { 276 if (C_Project_ID == 0) setValue ("C_Project_ID", null); 277 else 278 setValue ("C_Project_ID", new Integer (C_Project_ID)); 279 } 280 public int getC_Project_ID() 281 { 282 Integer ii = (Integer )getValue("C_Project_ID"); 283 if (ii == null) return 0; 284 return ii.intValue(); 285 } 286 public void setChargeAmt (int ChargeAmt) 287 { 288 setValue ("ChargeAmt", new Integer (ChargeAmt)); 289 } 290 public int getChargeAmt() 291 { 292 Integer ii = (Integer )getValue("ChargeAmt"); 293 if (ii == null) return 0; 294 return ii.intValue(); 295 } 296 public void setCheckNo (String CheckNo) 297 { 298 setValue ("CheckNo", CheckNo); 299 } 300 public String getCheckNo() 301 { 302 return (String )getValue("CheckNo"); 303 } 304 public void setCreditCardExpMM (int CreditCardExpMM) 305 { 306 setValue ("CreditCardExpMM", new Integer (CreditCardExpMM)); 307 } 308 public int getCreditCardExpMM() 309 { 310 Integer ii = (Integer )getValue("CreditCardExpMM"); 311 if (ii == null) return 0; 312 return ii.intValue(); 313 } 314 public void setCreditCardExpYY (int CreditCardExpYY) 315 { 316 setValue ("CreditCardExpYY", new Integer (CreditCardExpYY)); 317 } 318 public int getCreditCardExpYY() 319 { 320 Integer ii = (Integer )getValue("CreditCardExpYY"); 321 if (ii == null) return 0; 322 return ii.intValue(); 323 } 324 public void setCreditCardNumber (String CreditCardNumber) 325 { 326 setValue ("CreditCardNumber", CreditCardNumber); 327 } 328 public String getCreditCardNumber() 329 { 330 return (String )getValue("CreditCardNumber"); 331 } 332 public static final String CREDITCARDTYPE_Diners = "D"; 333 public static final String CREDITCARDTYPE_Discover = "N"; 334 public static final String CREDITCARDTYPE_PurchaseCard = "P"; 335 public static final String CREDITCARDTYPE_Amex = "A"; 336 public static final String CREDITCARDTYPE_MasterCard = "M"; 337 public static final String CREDITCARDTYPE_Visa = "V"; 338 public static final String CREDITCARDTYPE_ATM = "C"; 339 public void setCreditCardType (String CreditCardType) 340 { 341 if (CreditCardType.equals("D") || CreditCardType.equals("N") || CreditCardType.equals("P") || CreditCardType.equals("A") || CreditCardType.equals("M") || CreditCardType.equals("V") || CreditCardType.equals("C")); 342 else throw new IllegalArgumentException ("CreditCardType Invalid value - Reference_ID=149 - D - N - P - A - M - V - C"); 343 setValue ("CreditCardType", CreditCardType); 344 } 345 public String getCreditCardType() 346 { 347 return (String )getValue("CreditCardType"); 348 } 349 public void setCreditCardVV (String CreditCardVV) 350 { 351 setValue ("CreditCardVV", CreditCardVV); 352 } 353 public String getCreditCardVV() 354 { 355 return (String )getValue("CreditCardVV"); 356 } 357 public void setDateTrx (Timestamp DateTrx) 358 { 359 if (DateTrx == null) throw new IllegalArgumentException ("DateTrx is mandatory"); 360 setValue ("DateTrx", DateTrx); 361 } 362 public Timestamp getDateTrx() 363 { 364 return (Timestamp)getValue("DateTrx"); 365 } 366 public void setDiscountAmt (BigDecimal DiscountAmt) 367 { 368 setValue ("DiscountAmt", DiscountAmt); 369 } 370 public BigDecimal getDiscountAmt() 371 { 372 BigDecimal bd = (BigDecimal)getValue("DiscountAmt"); 373 if (bd == null) return Env.ZERO; 374 return bd; 375 } 376 public static final String DOCACTION_Process = "PR"; 377 public static final String DOCACTION_Unlock = "XL"; 378 public static final String DOCACTION_Complete = "CO"; 379 public static final String DOCACTION_Approve = "AP"; 380 public static final String DOCACTION_Reject = "RJ"; 381 public static final String DOCACTION_Post = "PO"; 382 public static final String DOCACTION_Void = "VO"; 383 public static final String DOCACTION_Close = "CL"; 384 public static final String DOCACTION_ReverseMinusCorrection = "RC"; 385 public static final String DOCACTION_ReverseMinusAccrual = "RA"; 386 public static final String DOCACTION_Transfer = "TR"; 387 public static final String DOCACTION_ReMinusActivate = "RE"; 388 public static final String DOCACTION_LeNoneGt = "--"; 389 public void setDocAction (String DocAction) 390 { 391 if (DocAction.equals("PR") || DocAction.equals("XL") || DocAction.equals("CO") || DocAction.equals("AP") || DocAction.equals("RJ") || DocAction.equals("PO") || DocAction.equals("VO") || DocAction.equals("CL") || DocAction.equals("RC") || DocAction.equals("RA") || DocAction.equals("TR") || DocAction.equals("RE") || DocAction.equals("--")); 392 else throw new IllegalArgumentException ("DocAction Invalid value - Reference_ID=135 - PR - XL - CO - AP - RJ - PO - VO - CL - RC - RA - TR - RE - --"); 393 if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); 394 setValue ("DocAction", DocAction); 395 } 396 public String getDocAction() 397 { 398 return (String )getValue("DocAction"); 399 } 400 public static final String DOCSTATUS_InProgress = "IP"; 401 public static final String DOCSTATUS_WaitingPayment = "WP"; 402 public static final String DOCSTATUS_Drafted = "DR"; 403 public static final String DOCSTATUS_Completed = "CO"; 404 public static final String DOCSTATUS_Approved = "AP"; 405 public static final String DOCSTATUS_Changed = "CH"; 406 public static final String DOCSTATUS_NotApproved = "NA"; 407 public static final String DOCSTATUS_TransferError = "TE"; 408 public static final String DOCSTATUS_Printed = "PR"; 409 public static final String DOCSTATUS_Transferred = "TR"; 410 public static final String DOCSTATUS_Voided = "VO"; 411 public static final String DOCSTATUS_Inactive = "IN"; 412 public static final String DOCSTATUS_PostingError = "PE"; 413 public static final String DOCSTATUS_Posted = "PO"; 414 public static final String DOCSTATUS_Reversed = "RE"; 415 public static final String DOCSTATUS_Closed = "CL"; 416 public static final String DOCSTATUS_Unknown = "??"; 417 public static final String DOCSTATUS_BeingProcessed = "XX"; 418 void setDocStatus (String DocStatus) 419 { 420 if (DocStatus.equals("IP") || DocStatus.equals("WP") || DocStatus.equals("DR") || DocStatus.equals("CO") || DocStatus.equals("AP") || DocStatus.equals("CH") || DocStatus.equals("NA") || DocStatus.equals("TE") || DocStatus.equals("PR") || DocStatus.equals("TR") || DocStatus.equals("VO") || DocStatus.equals("IN") || DocStatus.equals("PE") || DocStatus.equals("PO") || DocStatus.equals("RE") || DocStatus.equals("CL") || DocStatus.equals("??") || DocStatus.equals("XX")); 421 else throw new IllegalArgumentException ("DocStatus Invalid value - Reference_ID=131 - IP - WP - DR - CO - AP - CH - NA - TE - PR - TR - VO - IN - PE - PO - RE - CL - ?? - XX"); 422 if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); 423 setValueNoCheck ("DocStatus", DocStatus); 424 } 425 public String getDocStatus() 426 { 427 return (String )getValue("DocStatus"); 428 } 429 public void setDocumentNo (String DocumentNo) 430 { 431 if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory"); 432 setValue ("DocumentNo", DocumentNo); 433 } 434 public String getDocumentNo() 435 { 436 return (String )getValue("DocumentNo"); 437 } 438 public void setIsAllocated (boolean IsAllocated) 439 { 440 setValue ("IsAllocated", new Boolean (IsAllocated)); 441 } 442 public boolean isAllocated() 443 { 444 Boolean bb = (Boolean )getValue("IsAllocated"); 445 if (bb != null) return bb.booleanValue(); 446 return false; 447 } 448 void setIsApproved (boolean IsApproved) 449 { 450 setValueNoCheck ("IsApproved", new Boolean (IsApproved)); 451 } 452 public boolean isApproved() 453 { 454 Boolean bb = (Boolean )getValue("IsApproved"); 455 if (bb != null) return bb.booleanValue(); 456 return false; 457 } 458 public void setIsDelayedCapture (boolean IsDelayedCapture) 459 { 460 setValue ("IsDelayedCapture", new Boolean (IsDelayedCapture)); 461 } 462 public boolean isDelayedCapture() 463 { 464 Boolean bb = (Boolean )getValue("IsDelayedCapture"); 465 if (bb != null) return bb.booleanValue(); 466 return false; 467 } 468 public void setIsOnline (boolean IsOnline) 469 { 470 setValue ("IsOnline", new Boolean (IsOnline)); 471 } 472 public boolean isOnline() 473 { 474 Boolean bb = (Boolean )getValue("IsOnline"); 475 if (bb != null) return bb.booleanValue(); 476 return false; 477 } 478 public void setIsOverUnderPayment (boolean IsOverUnderPayment) 479 { 480 setValue ("IsOverUnderPayment", new Boolean (IsOverUnderPayment)); 481 } 482 public boolean isOverUnderPayment() 483 { 484 Boolean bb = (Boolean )getValue("IsOverUnderPayment"); 485 if (bb != null) return bb.booleanValue(); 486 return false; 487 } 488 public void setIsReceipt (boolean IsReceipt) 489 { 490 setValue ("IsReceipt", new Boolean (IsReceipt)); 491 } 492 public boolean isReceipt() 493 { 494 Boolean bb = (Boolean )getValue("IsReceipt"); 495 if (bb != null) return bb.booleanValue(); 496 return false; 497 } 498 public void setIsReconciled (boolean IsReconciled) 499 { 500 setValue ("IsReconciled", new Boolean (IsReconciled)); 501 } 502 public boolean isReconciled() 503 { 504 Boolean bb = (Boolean )getValue("IsReconciled"); 505 if (bb != null) return bb.booleanValue(); 506 return false; 507 } 508 public void setIsSelfService (boolean IsSelfService) 509 { 510 setValue ("IsSelfService", new Boolean (IsSelfService)); 511 } 512 public boolean isSelfService() 513 { 514 Boolean bb = (Boolean )getValue("IsSelfService"); 515 if (bb != null) return bb.booleanValue(); 516 return false; 517 } 518 public void setMicr (String Micr) 519 { 520 setValue ("Micr", Micr); 521 } 522 public String getMicr() 523 { 524 return (String )getValue("Micr"); 525 } 526 public void setOProcessing (String OProcessing) 527 { 528 setValue ("OProcessing", OProcessing); 529 } 530 public String getOProcessing() 531 { 532 return (String )getValue("OProcessing"); 533 } 534 public void setOrig_TrxID (String Orig_TrxID) 535 { 536 setValue ("Orig_TrxID", Orig_TrxID); 537 } 538 public String getOrig_TrxID() 539 { 540 return (String )getValue("Orig_TrxID"); 541 } 542 public void setOverUnderAmt (BigDecimal OverUnderAmt) 543 { 544 setValue ("OverUnderAmt", OverUnderAmt); 545 } 546 public BigDecimal getOverUnderAmt() 547 { 548 BigDecimal bd = (BigDecimal)getValue("OverUnderAmt"); 549 if (bd == null) return Env.ZERO; 550 return bd; 551 } 552 public void setPONum (String PONum) 553 { 554 setValue ("PONum", PONum); 555 } 556 public String getPONum() 557 { 558 return (String )getValue("PONum"); 559 } 560 public void setPayAmt (BigDecimal PayAmt) 561 { 562 if (PayAmt == null) throw new IllegalArgumentException ("PayAmt is mandatory"); 563 setValue ("PayAmt", PayAmt); 564 } 565 public BigDecimal getPayAmt() 566 { 567 BigDecimal bd = (BigDecimal)getValue("PayAmt"); 568 if (bd == null) return Env.ZERO; 569 return bd; 570 } 571 public void setPosted (boolean Posted) 572 { 573 setValue ("Posted", new Boolean (Posted)); 574 } 575 public boolean isPosted() 576 { 577 Boolean bb = (Boolean )getValue("Posted"); 578 if (bb != null) return bb.booleanValue(); 579 return false; 580 } 581 public void setProcessed (boolean Processed) 582 { 583 setValue ("Processed", new Boolean (Processed)); 584 } 585 public boolean isProcessed() 586 { 587 Boolean bb = (Boolean )getValue("Processed"); 588 if (bb != null) return bb.booleanValue(); 589 return false; 590 } 591 public void setProcessing (String Processing) 592 { 593 setValue ("Processing", Processing); 594 } 595 public String getProcessing() 596 { 597 return (String )getValue("Processing"); 598 } 599 void setR_AuthCode (String R_AuthCode) 600 { 601 setValueNoCheck ("R_AuthCode", R_AuthCode); 602 } 603 public String getR_AuthCode() 604 { 605 return (String )getValue("R_AuthCode"); 606 } 607 void setR_AuthCode_DC (String R_AuthCode_DC) 608 { 609 setValueNoCheck ("R_AuthCode_DC", R_AuthCode_DC); 610 } 611 public String getR_AuthCode_DC() 612 { 613 return (String )getValue("R_AuthCode_DC"); 614 } 615 public static final String R_AVSADDR_Match = "Y"; 616 public static final String R_AVSADDR_NoMatch = "N"; 617 public static final String R_AVSADDR_Unavailable = "X"; 618 void setR_AvsAddr (String R_AvsAddr) 619 { 620 if (R_AvsAddr.equals("Y") || R_AvsAddr.equals("N") || R_AvsAddr.equals("X")); 621 else throw new IllegalArgumentException ("R_AvsAddr Invalid value - Reference_ID=213 - Y - N - X"); 622 setValueNoCheck ("R_AvsAddr", R_AvsAddr); 623 } 624 public String getR_AvsAddr() 625 { 626 return (String )getValue("R_AvsAddr"); 627 } 628 public static final String R_AVSZIP_Match = "Y"; 629 public static final String R_AVSZIP_NoMatch = "N"; 630 public static final String R_AVSZIP_Unavailable = "X"; 631 void setR_AvsZip (String R_AvsZip) 632 { 633 if (R_AvsZip.equals("Y") || R_AvsZip.equals("N") || R_AvsZip.equals("X")); 634 else throw new IllegalArgumentException ("R_AvsZip Invalid value - Reference_ID=213 - Y - N - X"); 635 setValueNoCheck ("R_AvsZip", R_AvsZip); 636 } 637 public String getR_AvsZip() 638 { 639 return (String )getValue("R_AvsZip"); 640 } 641 void setR_CVV2Match (boolean R_CVV2Match) 642 { 643 setValueNoCheck ("R_CVV2Match", new Boolean (R_CVV2Match)); 644 } 645 public boolean isR_CVV2Match() 646 { 647 Boolean bb = (Boolean )getValue("R_CVV2Match"); 648 if (bb != null) return bb.booleanValue(); 649 return false; 650 } 651 void setR_Info (String R_Info) 652 { 653 setValueNoCheck ("R_Info", R_Info); 654 } 655 public String getR_Info() 656 { 657 return (String )getValue("R_Info"); 658 } 659 void setR_PnRef (String R_PnRef) 660 { 661 setValueNoCheck ("R_PnRef", R_PnRef); 662 } 663 public String getR_PnRef() 664 { 665 return (String )getValue("R_PnRef"); 666 } 667 void setR_PnRef_DC (String R_PnRef_DC) 668 { 669 setValueNoCheck ("R_PnRef_DC", R_PnRef_DC); 670 } 671 public String getR_PnRef_DC() 672 { 673 return (String )getValue("R_PnRef_DC"); 674 } 675 void setR_RespMsg (String R_RespMsg) 676 { 677 setValueNoCheck ("R_RespMsg", R_RespMsg); 678 } 679 public String getR_RespMsg() 680 { 681 return (String )getValue("R_RespMsg"); 682 } 683 void setR_Result (String R_Result) 684 { 685 setValueNoCheck ("R_Result", R_Result); 686 } 687 public String getR_Result() 688 { 689 return (String )getValue("R_Result"); 690 } 691 public void setRoutingNo (String RoutingNo) 692 { 693 setValue ("RoutingNo", RoutingNo); 694 } 695 public String getRoutingNo() 696 { 697 return (String )getValue("RoutingNo"); 698 } 699 void setSwipe (String Swipe) 700 { 701 setValueNoCheck ("Swipe", Swipe); 702 } 703 public String getSwipe() 704 { 705 return (String )getValue("Swipe"); 706 } 707 public void setTaxAmt (BigDecimal TaxAmt) 708 { 709 setValue ("TaxAmt", TaxAmt); 710 } 711 public BigDecimal getTaxAmt() 712 { 713 BigDecimal bd = (BigDecimal)getValue("TaxAmt"); 714 if (bd == null) return Env.ZERO; 715 return bd; 716 } 717 public static final String TENDERTYPE_CreditCard = "C"; 718 public static final String TENDERTYPE_Check = "K"; 719 public static final String TENDERTYPE_ACH = "A"; 720 public void setTenderType (String TenderType) 721 { 722 if (TenderType.equals("C") || TenderType.equals("K") || TenderType.equals("A")); 723 else throw new IllegalArgumentException ("TenderType Invalid value - Reference_ID=214 - C - K - A"); 724 if (TenderType == null) throw new IllegalArgumentException ("TenderType is mandatory"); 725 setValue ("TenderType", TenderType); 726 } 727 public String getTenderType() 728 { 729 return (String )getValue("TenderType"); 730 } 731 public static final String TRXTYPE_Sales = "S"; 732 public static final String TRXTYPE_DelayedCapture = "D"; 733 public static final String TRXTYPE_CreditPayment = "C"; 734 public static final String TRXTYPE_VoiceAuthorization = "F"; 735 public static final String TRXTYPE_Authorization = "A"; 736 public static final String TRXTYPE_Void = "V"; 737 public void setTrxType (String TrxType) 738 { 739 if (TrxType.equals("S") || TrxType.equals("D") || TrxType.equals("C") || TrxType.equals("F") || TrxType.equals("A") || TrxType.equals("V")); 740 else throw new IllegalArgumentException ("TrxType Invalid value - Reference_ID=215 - S - D - C - F - A - V"); 741 if (TrxType == null) throw new IllegalArgumentException ("TrxType is mandatory"); 742 setValue ("TrxType", TrxType); 743 } 744 public String getTrxType() 745 { 746 return (String )getValue("TrxType"); 747 } 748 public void setUser1_ID (int User1_ID) 749 { 750 if (User1_ID == 0) setValue ("User1_ID", null); 751 else 752 setValue ("User1_ID", new Integer (User1_ID)); 753 } 754 public int getUser1_ID() 755 { 756 Integer ii = (Integer )getValue("User1_ID"); 757 if (ii == null) return 0; 758 return ii.intValue(); 759 } 760 public void setUser2_ID (int User2_ID) 761 { 762 if (User2_ID == 0) setValue ("User2_ID", null); 763 else 764 setValue ("User2_ID", new Integer (User2_ID)); 765 } 766 public int getUser2_ID() 767 { 768 Integer ii = (Integer )getValue("User2_ID"); 769 if (ii == null) return 0; 770 return ii.intValue(); 771 } 772 public void setVoiceAuthCode (String VoiceAuthCode) 773 { 774 setValue ("VoiceAuthCode", VoiceAuthCode); 775 } 776 public String getVoiceAuthCode() 777 { 778 return (String )getValue("VoiceAuthCode"); 779 } 780 public void setWriteOffAmt (BigDecimal WriteOffAmt) 781 { 782 setValue ("WriteOffAmt", WriteOffAmt); 783 } 784 public BigDecimal getWriteOffAmt() 785 { 786 BigDecimal bd = (BigDecimal)getValue("WriteOffAmt"); 787 if (bd == null) return Env.ZERO; 788 return bd; 789 } 790 } 791 | Popular Tags |