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_I_Payment extends PO 11 { 12 13 public X_I_Payment (Properties ctx, int I_Payment_ID) 14 { 15 super (ctx, I_Payment_ID); 16 35 } 36 37 public X_I_Payment (Properties ctx, ResultSet rs) 38 { 39 super (ctx, rs); 40 } 41 42 protected POInfo initPO (Properties ctx) 43 { 44 int AD_Table_ID = 597; 45 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 46 return poi; 47 } 48 public String toString() 49 { 50 StringBuffer sb = new StringBuffer ("X_I_Payment[").append(getID()).append("]"); 51 return sb.toString(); 52 } 53 public void setA_City (String A_City) 54 { 55 setValue ("A_City", A_City); 56 } 57 public String getA_City() 58 { 59 return (String )getValue("A_City"); 60 } 61 public void setA_Country (String A_Country) 62 { 63 setValue ("A_Country", A_Country); 64 } 65 public String getA_Country() 66 { 67 return (String )getValue("A_Country"); 68 } 69 public void setA_EMail (String A_EMail) 70 { 71 setValue ("A_EMail", A_EMail); 72 } 73 public String getA_EMail() 74 { 75 return (String )getValue("A_EMail"); 76 } 77 public void setA_Ident_DL (String A_Ident_DL) 78 { 79 setValue ("A_Ident_DL", A_Ident_DL); 80 } 81 public String getA_Ident_DL() 82 { 83 return (String )getValue("A_Ident_DL"); 84 } 85 public void setA_Ident_SSN (String A_Ident_SSN) 86 { 87 setValue ("A_Ident_SSN", A_Ident_SSN); 88 } 89 public String getA_Ident_SSN() 90 { 91 return (String )getValue("A_Ident_SSN"); 92 } 93 public void setA_Name (String A_Name) 94 { 95 setValue ("A_Name", A_Name); 96 } 97 public String getA_Name() 98 { 99 return (String )getValue("A_Name"); 100 } 101 public void setA_State (String A_State) 102 { 103 setValue ("A_State", A_State); 104 } 105 public String getA_State() 106 { 107 return (String )getValue("A_State"); 108 } 109 public void setA_Street (String A_Street) 110 { 111 setValue ("A_Street", A_Street); 112 } 113 public String getA_Street() 114 { 115 return (String )getValue("A_Street"); 116 } 117 public void setA_Zip (String A_Zip) 118 { 119 setValue ("A_Zip", A_Zip); 120 } 121 public String getA_Zip() 122 { 123 return (String )getValue("A_Zip"); 124 } 125 public void setAccountNo (String AccountNo) 126 { 127 setValue ("AccountNo", AccountNo); 128 } 129 public String getAccountNo() 130 { 131 return (String )getValue("AccountNo"); 132 } 133 public void setBPartnerValue (String BPartnerValue) 134 { 135 setValue ("BPartnerValue", BPartnerValue); 136 } 137 public String getBPartnerValue() 138 { 139 return (String )getValue("BPartnerValue"); 140 } 141 public void setBankAccountNo (String BankAccountNo) 142 { 143 if (BankAccountNo == null) throw new IllegalArgumentException ("BankAccountNo is mandatory"); 144 setValue ("BankAccountNo", BankAccountNo); 145 } 146 public String getBankAccountNo() 147 { 148 return (String )getValue("BankAccountNo"); 149 } 150 public void setC_BPartner_ID (int C_BPartner_ID) 151 { 152 if (C_BPartner_ID == 0) setValue ("C_BPartner_ID", null); 153 else 154 setValue ("C_BPartner_ID", new Integer (C_BPartner_ID)); 155 } 156 public int getC_BPartner_ID() 157 { 158 Integer ii = (Integer )getValue("C_BPartner_ID"); 159 if (ii == null) return 0; 160 return ii.intValue(); 161 } 162 public void setC_BankAccount_ID (int C_BankAccount_ID) 163 { 164 if (C_BankAccount_ID == 0) setValue ("C_BankAccount_ID", null); 165 else 166 setValue ("C_BankAccount_ID", new Integer (C_BankAccount_ID)); 167 } 168 public int getC_BankAccount_ID() 169 { 170 Integer ii = (Integer )getValue("C_BankAccount_ID"); 171 if (ii == null) return 0; 172 return ii.intValue(); 173 } 174 public void setC_Charge_ID (int C_Charge_ID) 175 { 176 if (C_Charge_ID == 0) setValue ("C_Charge_ID", null); 177 else 178 setValue ("C_Charge_ID", new Integer (C_Charge_ID)); 179 } 180 public int getC_Charge_ID() 181 { 182 Integer ii = (Integer )getValue("C_Charge_ID"); 183 if (ii == null) return 0; 184 return ii.intValue(); 185 } 186 public void setC_Currency_ID (int C_Currency_ID) 187 { 188 setValue ("C_Currency_ID", new Integer (C_Currency_ID)); 189 } 190 public int getC_Currency_ID() 191 { 192 Integer ii = (Integer )getValue("C_Currency_ID"); 193 if (ii == null) return 0; 194 return ii.intValue(); 195 } 196 public void setC_DocType_ID (int C_DocType_ID) 197 { 198 if (C_DocType_ID == 0) setValue ("C_DocType_ID", null); 199 else 200 setValue ("C_DocType_ID", new Integer (C_DocType_ID)); 201 } 202 public int getC_DocType_ID() 203 { 204 Integer ii = (Integer )getValue("C_DocType_ID"); 205 if (ii == null) return 0; 206 return ii.intValue(); 207 } 208 public void setC_Invoice_ID (int C_Invoice_ID) 209 { 210 if (C_Invoice_ID == 0) setValue ("C_Invoice_ID", null); 211 else 212 setValue ("C_Invoice_ID", new Integer (C_Invoice_ID)); 213 } 214 public int getC_Invoice_ID() 215 { 216 Integer ii = (Integer )getValue("C_Invoice_ID"); 217 if (ii == null) return 0; 218 return ii.intValue(); 219 } 220 public void setC_Payment_ID (int C_Payment_ID) 221 { 222 if (C_Payment_ID == 0) setValue ("C_Payment_ID", null); 223 else 224 setValue ("C_Payment_ID", new Integer (C_Payment_ID)); 225 } 226 public int getC_Payment_ID() 227 { 228 Integer ii = (Integer )getValue("C_Payment_ID"); 229 if (ii == null) return 0; 230 return ii.intValue(); 231 } 232 public void setChargeAmt (BigDecimal ChargeAmt) 233 { 234 setValue ("ChargeAmt", ChargeAmt); 235 } 236 public BigDecimal getChargeAmt() 237 { 238 BigDecimal bd = (BigDecimal)getValue("ChargeAmt"); 239 if (bd == null) return Env.ZERO; 240 return bd; 241 } 242 public void setChargeName (String ChargeName) 243 { 244 setValue ("ChargeName", ChargeName); 245 } 246 public String getChargeName() 247 { 248 return (String )getValue("ChargeName"); 249 } 250 public void setCheckNo (String CheckNo) 251 { 252 setValue ("CheckNo", CheckNo); 253 } 254 public String getCheckNo() 255 { 256 return (String )getValue("CheckNo"); 257 } 258 public void setCreditCardExpMM (int CreditCardExpMM) 259 { 260 setValue ("CreditCardExpMM", new Integer (CreditCardExpMM)); 261 } 262 public int getCreditCardExpMM() 263 { 264 Integer ii = (Integer )getValue("CreditCardExpMM"); 265 if (ii == null) return 0; 266 return ii.intValue(); 267 } 268 public void setCreditCardExpYY (int CreditCardExpYY) 269 { 270 setValue ("CreditCardExpYY", new Integer (CreditCardExpYY)); 271 } 272 public int getCreditCardExpYY() 273 { 274 Integer ii = (Integer )getValue("CreditCardExpYY"); 275 if (ii == null) return 0; 276 return ii.intValue(); 277 } 278 public void setCreditCardNumber (String CreditCardNumber) 279 { 280 setValue ("CreditCardNumber", CreditCardNumber); 281 } 282 public String getCreditCardNumber() 283 { 284 return (String )getValue("CreditCardNumber"); 285 } 286 public static final String CREDITCARDTYPE_Diners = "D"; 287 public static final String CREDITCARDTYPE_Discover = "N"; 288 public static final String CREDITCARDTYPE_PurchaseCard = "P"; 289 public static final String CREDITCARDTYPE_Amex = "A"; 290 public static final String CREDITCARDTYPE_MasterCard = "M"; 291 public static final String CREDITCARDTYPE_Visa = "V"; 292 public static final String CREDITCARDTYPE_ATM = "C"; 293 public void setCreditCardType (String CreditCardType) 294 { 295 if (CreditCardType.equals("D") || CreditCardType.equals("N") || CreditCardType.equals("P") || CreditCardType.equals("A") || CreditCardType.equals("M") || CreditCardType.equals("V") || CreditCardType.equals("C")); 296 else throw new IllegalArgumentException ("CreditCardType Invalid value - Reference_ID=149 - D - N - P - A - M - V - C"); 297 setValue ("CreditCardType", CreditCardType); 298 } 299 public String getCreditCardType() 300 { 301 return (String )getValue("CreditCardType"); 302 } 303 public void setCreditCardVV (String CreditCardVV) 304 { 305 setValue ("CreditCardVV", CreditCardVV); 306 } 307 public String getCreditCardVV() 308 { 309 return (String )getValue("CreditCardVV"); 310 } 311 public void setDateTrx (Timestamp DateTrx) 312 { 313 if (DateTrx == null) throw new IllegalArgumentException ("DateTrx is mandatory"); 314 setValue ("DateTrx", DateTrx); 315 } 316 public Timestamp getDateTrx() 317 { 318 return (Timestamp)getValue("DateTrx"); 319 } 320 public void setDiscountAmt (BigDecimal DiscountAmt) 321 { 322 setValue ("DiscountAmt", DiscountAmt); 323 } 324 public BigDecimal getDiscountAmt() 325 { 326 BigDecimal bd = (BigDecimal)getValue("DiscountAmt"); 327 if (bd == null) return Env.ZERO; 328 return bd; 329 } 330 public void setDocTypeName (String DocTypeName) 331 { 332 setValue ("DocTypeName", DocTypeName); 333 } 334 public String getDocTypeName() 335 { 336 return (String )getValue("DocTypeName"); 337 } 338 public void setDocumentNo (String DocumentNo) 339 { 340 if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory"); 341 setValue ("DocumentNo", DocumentNo); 342 } 343 public String getDocumentNo() 344 { 345 return (String )getValue("DocumentNo"); 346 } 347 public void setI_ErrorMsg (String I_ErrorMsg) 348 { 349 setValue ("I_ErrorMsg", I_ErrorMsg); 350 } 351 public String getI_ErrorMsg() 352 { 353 return (String )getValue("I_ErrorMsg"); 354 } 355 public void setI_IsImported (boolean I_IsImported) 356 { 357 setValue ("I_IsImported", new Boolean (I_IsImported)); 358 } 359 public boolean isI_IsImported() 360 { 361 Boolean bb = (Boolean )getValue("I_IsImported"); 362 if (bb != null) return bb.booleanValue(); 363 return false; 364 } 365 void setI_Payment_ID (int I_Payment_ID) 366 { 367 setValueNoCheck ("I_Payment_ID", new Integer (I_Payment_ID)); 368 } 369 public int getI_Payment_ID() 370 { 371 Integer ii = (Integer )getValue("I_Payment_ID"); 372 if (ii == null) return 0; 373 return ii.intValue(); 374 } 375 public void setInvoiceDocumentNo (String InvoiceDocumentNo) 376 { 377 setValue ("InvoiceDocumentNo", InvoiceDocumentNo); 378 } 379 public String getInvoiceDocumentNo() 380 { 381 return (String )getValue("InvoiceDocumentNo"); 382 } 383 public void setIsApproved (boolean IsApproved) 384 { 385 setValue ("IsApproved", new Boolean (IsApproved)); 386 } 387 public boolean isApproved() 388 { 389 Boolean bb = (Boolean )getValue("IsApproved"); 390 if (bb != null) return bb.booleanValue(); 391 return false; 392 } 393 public void setIsDelayedCapture (boolean IsDelayedCapture) 394 { 395 setValue ("IsDelayedCapture", new Boolean (IsDelayedCapture)); 396 } 397 public boolean isDelayedCapture() 398 { 399 Boolean bb = (Boolean )getValue("IsDelayedCapture"); 400 if (bb != null) return bb.booleanValue(); 401 return false; 402 } 403 public void setIsOverUnderPayment (boolean IsOverUnderPayment) 404 { 405 setValue ("IsOverUnderPayment", new Boolean (IsOverUnderPayment)); 406 } 407 public boolean isOverUnderPayment() 408 { 409 Boolean bb = (Boolean )getValue("IsOverUnderPayment"); 410 if (bb != null) return bb.booleanValue(); 411 return false; 412 } 413 public void setIsReceipt (boolean IsReceipt) 414 { 415 setValue ("IsReceipt", new Boolean (IsReceipt)); 416 } 417 public boolean isReceipt() 418 { 419 Boolean bb = (Boolean )getValue("IsReceipt"); 420 if (bb != null) return bb.booleanValue(); 421 return false; 422 } 423 public void setIsSelfService (boolean IsSelfService) 424 { 425 setValue ("IsSelfService", new Boolean (IsSelfService)); 426 } 427 public boolean isSelfService() 428 { 429 Boolean bb = (Boolean )getValue("IsSelfService"); 430 if (bb != null) return bb.booleanValue(); 431 return false; 432 } 433 public void setMicr (String Micr) 434 { 435 setValue ("Micr", Micr); 436 } 437 public String getMicr() 438 { 439 return (String )getValue("Micr"); 440 } 441 public void setOrig_TrxID (String Orig_TrxID) 442 { 443 setValue ("Orig_TrxID", Orig_TrxID); 444 } 445 public String getOrig_TrxID() 446 { 447 return (String )getValue("Orig_TrxID"); 448 } 449 public void setOverUnderAmt (BigDecimal OverUnderAmt) 450 { 451 setValue ("OverUnderAmt", OverUnderAmt); 452 } 453 public BigDecimal getOverUnderAmt() 454 { 455 BigDecimal bd = (BigDecimal)getValue("OverUnderAmt"); 456 if (bd == null) return Env.ZERO; 457 return bd; 458 } 459 public void setPONum (String PONum) 460 { 461 setValue ("PONum", PONum); 462 } 463 public String getPONum() 464 { 465 return (String )getValue("PONum"); 466 } 467 public void setPayAmt (BigDecimal PayAmt) 468 { 469 if (PayAmt == null) throw new IllegalArgumentException ("PayAmt is mandatory"); 470 setValue ("PayAmt", PayAmt); 471 } 472 public BigDecimal getPayAmt() 473 { 474 BigDecimal bd = (BigDecimal)getValue("PayAmt"); 475 if (bd == null) return Env.ZERO; 476 return bd; 477 } 478 public void setProcessed (boolean Processed) 479 { 480 setValue ("Processed", new Boolean (Processed)); 481 } 482 public boolean isProcessed() 483 { 484 Boolean bb = (Boolean )getValue("Processed"); 485 if (bb != null) return bb.booleanValue(); 486 return false; 487 } 488 public void setR_AuthCode (String R_AuthCode) 489 { 490 setValue ("R_AuthCode", R_AuthCode); 491 } 492 public String getR_AuthCode() 493 { 494 return (String )getValue("R_AuthCode"); 495 } 496 public void setR_Info (String R_Info) 497 { 498 setValue ("R_Info", R_Info); 499 } 500 public String getR_Info() 501 { 502 return (String )getValue("R_Info"); 503 } 504 public void setR_PnRef (String R_PnRef) 505 { 506 setValue ("R_PnRef", R_PnRef); 507 } 508 public String getR_PnRef() 509 { 510 return (String )getValue("R_PnRef"); 511 } 512 public void setR_RespMsg (String R_RespMsg) 513 { 514 setValue ("R_RespMsg", R_RespMsg); 515 } 516 public String getR_RespMsg() 517 { 518 return (String )getValue("R_RespMsg"); 519 } 520 public void setR_Result (String R_Result) 521 { 522 setValue ("R_Result", R_Result); 523 } 524 public String getR_Result() 525 { 526 return (String )getValue("R_Result"); 527 } 528 public void setRoutingNo (String RoutingNo) 529 { 530 setValue ("RoutingNo", RoutingNo); 531 } 532 public String getRoutingNo() 533 { 534 return (String )getValue("RoutingNo"); 535 } 536 public void setSwipe (String Swipe) 537 { 538 setValue ("Swipe", Swipe); 539 } 540 public String getSwipe() 541 { 542 return (String )getValue("Swipe"); 543 } 544 public void setTaxAmt (BigDecimal TaxAmt) 545 { 546 setValue ("TaxAmt", TaxAmt); 547 } 548 public BigDecimal getTaxAmt() 549 { 550 BigDecimal bd = (BigDecimal)getValue("TaxAmt"); 551 if (bd == null) return Env.ZERO; 552 return bd; 553 } 554 public static final String TENDERTYPE_CreditCard = "C"; 555 public static final String TENDERTYPE_Check = "K"; 556 public static final String TENDERTYPE_ACH = "A"; 557 public void setTenderType (String TenderType) 558 { 559 if (TenderType.equals("C") || TenderType.equals("K") || TenderType.equals("A")); 560 else throw new IllegalArgumentException ("TenderType Invalid value - Reference_ID=214 - C - K - A"); 561 if (TenderType == null) throw new IllegalArgumentException ("TenderType is mandatory"); 562 setValue ("TenderType", TenderType); 563 } 564 public String getTenderType() 565 { 566 return (String )getValue("TenderType"); 567 } 568 public static final String TRXTYPE_Sales = "S"; 569 public static final String TRXTYPE_DelayedCapture = "D"; 570 public static final String TRXTYPE_CreditPayment = "C"; 571 public static final String TRXTYPE_VoiceAuthorization = "F"; 572 public static final String TRXTYPE_Authorization = "A"; 573 public static final String TRXTYPE_Void = "V"; 574 public void setTrxType (String TrxType) 575 { 576 if (TrxType.equals("S") || TrxType.equals("D") || TrxType.equals("C") || TrxType.equals("F") || TrxType.equals("A") || TrxType.equals("V")); 577 else throw new IllegalArgumentException ("TrxType Invalid value - Reference_ID=215 - S - D - C - F - A - V"); 578 if (TrxType == null) throw new IllegalArgumentException ("TrxType is mandatory"); 579 setValue ("TrxType", TrxType); 580 } 581 public String getTrxType() 582 { 583 return (String )getValue("TrxType"); 584 } 585 public void setVoiceAuthCode (String VoiceAuthCode) 586 { 587 setValue ("VoiceAuthCode", VoiceAuthCode); 588 } 589 public String getVoiceAuthCode() 590 { 591 return (String )getValue("VoiceAuthCode"); 592 } 593 public void setWriteOffAmt (BigDecimal WriteOffAmt) 594 { 595 setValue ("WriteOffAmt", WriteOffAmt); 596 } 597 public BigDecimal getWriteOffAmt() 598 { 599 BigDecimal bd = (BigDecimal)getValue("WriteOffAmt"); 600 if (bd == null) return Env.ZERO; 601 return bd; 602 } 603 } 604 | Popular Tags |