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_PaymentProcessor extends PO 11 { 12 13 public X_C_PaymentProcessor (Properties ctx, int C_PaymentProcessor_ID) 14 { 15 super (ctx, C_PaymentProcessor_ID); 16 39 } 40 41 public X_C_PaymentProcessor (Properties ctx, ResultSet rs) 42 { 43 super (ctx, rs); 44 } 45 46 protected POInfo initPO (Properties ctx) 47 { 48 int AD_Table_ID = 398; 49 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 50 return poi; 51 } 52 public String toString() 53 { 54 StringBuffer sb = new StringBuffer ("X_C_PaymentProcessor[").append(getID()).append("]"); 55 return sb.toString(); 56 } 57 public void setAD_Sequence_ID (int AD_Sequence_ID) 58 { 59 if (AD_Sequence_ID == 0) setValue ("AD_Sequence_ID", null); 60 else 61 setValue ("AD_Sequence_ID", new Integer (AD_Sequence_ID)); 62 } 63 public int getAD_Sequence_ID() 64 { 65 Integer ii = (Integer )getValue("AD_Sequence_ID"); 66 if (ii == null) return 0; 67 return ii.intValue(); 68 } 69 public void setAcceptACH (boolean AcceptACH) 70 { 71 setValue ("AcceptACH", new Boolean (AcceptACH)); 72 } 73 public boolean isAcceptACH() 74 { 75 Boolean bb = (Boolean )getValue("AcceptACH"); 76 if (bb != null) return bb.booleanValue(); 77 return false; 78 } 79 public void setAcceptAMEX (boolean AcceptAMEX) 80 { 81 setValue ("AcceptAMEX", new Boolean (AcceptAMEX)); 82 } 83 public boolean isAcceptAMEX() 84 { 85 Boolean bb = (Boolean )getValue("AcceptAMEX"); 86 if (bb != null) return bb.booleanValue(); 87 return false; 88 } 89 public void setAcceptATM (boolean AcceptATM) 90 { 91 setValue ("AcceptATM", new Boolean (AcceptATM)); 92 } 93 public boolean isAcceptATM() 94 { 95 Boolean bb = (Boolean )getValue("AcceptATM"); 96 if (bb != null) return bb.booleanValue(); 97 return false; 98 } 99 public void setAcceptCheck (boolean AcceptCheck) 100 { 101 setValue ("AcceptCheck", new Boolean (AcceptCheck)); 102 } 103 public boolean isAcceptCheck() 104 { 105 Boolean bb = (Boolean )getValue("AcceptCheck"); 106 if (bb != null) return bb.booleanValue(); 107 return false; 108 } 109 public void setAcceptCorporate (boolean AcceptCorporate) 110 { 111 setValue ("AcceptCorporate", new Boolean (AcceptCorporate)); 112 } 113 public boolean isAcceptCorporate() 114 { 115 Boolean bb = (Boolean )getValue("AcceptCorporate"); 116 if (bb != null) return bb.booleanValue(); 117 return false; 118 } 119 public void setAcceptDiners (boolean AcceptDiners) 120 { 121 setValue ("AcceptDiners", new Boolean (AcceptDiners)); 122 } 123 public boolean isAcceptDiners() 124 { 125 Boolean bb = (Boolean )getValue("AcceptDiners"); 126 if (bb != null) return bb.booleanValue(); 127 return false; 128 } 129 public void setAcceptDiscover (boolean AcceptDiscover) 130 { 131 setValue ("AcceptDiscover", new Boolean (AcceptDiscover)); 132 } 133 public boolean isAcceptDiscover() 134 { 135 Boolean bb = (Boolean )getValue("AcceptDiscover"); 136 if (bb != null) return bb.booleanValue(); 137 return false; 138 } 139 public void setAcceptMC (boolean AcceptMC) 140 { 141 setValue ("AcceptMC", new Boolean (AcceptMC)); 142 } 143 public boolean isAcceptMC() 144 { 145 Boolean bb = (Boolean )getValue("AcceptMC"); 146 if (bb != null) return bb.booleanValue(); 147 return false; 148 } 149 public void setAcceptVisa (boolean AcceptVisa) 150 { 151 setValue ("AcceptVisa", new Boolean (AcceptVisa)); 152 } 153 public boolean isAcceptVisa() 154 { 155 Boolean bb = (Boolean )getValue("AcceptVisa"); 156 if (bb != null) return bb.booleanValue(); 157 return false; 158 } 159 void setC_BankAccount_ID (int C_BankAccount_ID) 160 { 161 setValueNoCheck ("C_BankAccount_ID", new Integer (C_BankAccount_ID)); 162 } 163 public int getC_BankAccount_ID() 164 { 165 Integer ii = (Integer )getValue("C_BankAccount_ID"); 166 if (ii == null) return 0; 167 return ii.intValue(); 168 } 169 public void setC_Currency_ID (int C_Currency_ID) 170 { 171 if (C_Currency_ID == 0) setValue ("C_Currency_ID", null); 172 else 173 setValue ("C_Currency_ID", new Integer (C_Currency_ID)); 174 } 175 public int getC_Currency_ID() 176 { 177 Integer ii = (Integer )getValue("C_Currency_ID"); 178 if (ii == null) return 0; 179 return ii.intValue(); 180 } 181 void setC_PaymentProcessor_ID (int C_PaymentProcessor_ID) 182 { 183 setValueNoCheck ("C_PaymentProcessor_ID", new Integer (C_PaymentProcessor_ID)); 184 } 185 public int getC_PaymentProcessor_ID() 186 { 187 Integer ii = (Integer )getValue("C_PaymentProcessor_ID"); 188 if (ii == null) return 0; 189 return ii.intValue(); 190 } 191 public void setCommission (BigDecimal Commission) 192 { 193 if (Commission == null) throw new IllegalArgumentException ("Commission is mandatory"); 194 setValue ("Commission", Commission); 195 } 196 public BigDecimal getCommission() 197 { 198 BigDecimal bd = (BigDecimal)getValue("Commission"); 199 if (bd == null) return Env.ZERO; 200 return bd; 201 } 202 public void setCostPerTrx (BigDecimal CostPerTrx) 203 { 204 if (CostPerTrx == null) throw new IllegalArgumentException ("CostPerTrx is mandatory"); 205 setValue ("CostPerTrx", CostPerTrx); 206 } 207 public BigDecimal getCostPerTrx() 208 { 209 BigDecimal bd = (BigDecimal)getValue("CostPerTrx"); 210 if (bd == null) return Env.ZERO; 211 return bd; 212 } 213 public void setDescription (String Description) 214 { 215 setValue ("Description", Description); 216 } 217 public String getDescription() 218 { 219 return (String )getValue("Description"); 220 } 221 public void setHostAddress (String HostAddress) 222 { 223 if (HostAddress == null) throw new IllegalArgumentException ("HostAddress is mandatory"); 224 setValue ("HostAddress", HostAddress); 225 } 226 public String getHostAddress() 227 { 228 return (String )getValue("HostAddress"); 229 } 230 public void setHostPort (int HostPort) 231 { 232 setValue ("HostPort", new Integer (HostPort)); 233 } 234 public int getHostPort() 235 { 236 Integer ii = (Integer )getValue("HostPort"); 237 if (ii == null) return 0; 238 return ii.intValue(); 239 } 240 public void setMinimumAmt (BigDecimal MinimumAmt) 241 { 242 setValue ("MinimumAmt", MinimumAmt); 243 } 244 public BigDecimal getMinimumAmt() 245 { 246 BigDecimal bd = (BigDecimal)getValue("MinimumAmt"); 247 if (bd == null) return Env.ZERO; 248 return bd; 249 } 250 public void setName (String Name) 251 { 252 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 253 setValue ("Name", Name); 254 } 255 public String getName() 256 { 257 return (String )getValue("Name"); 258 } 259 public void setPartnerID (String PartnerID) 260 { 261 setValue ("PartnerID", PartnerID); 262 } 263 public String getPartnerID() 264 { 265 return (String )getValue("PartnerID"); 266 } 267 public void setPassword (String Password) 268 { 269 if (Password == null) throw new IllegalArgumentException ("Password is mandatory"); 270 setValue ("Password", Password); 271 } 272 public String getPassword() 273 { 274 return (String )getValue("Password"); 275 } 276 public void setPayProcessorClass (String PayProcessorClass) 277 { 278 setValue ("PayProcessorClass", PayProcessorClass); 279 } 280 public String getPayProcessorClass() 281 { 282 return (String )getValue("PayProcessorClass"); 283 } 284 public void setProxyAddress (String ProxyAddress) 285 { 286 setValue ("ProxyAddress", ProxyAddress); 287 } 288 public String getProxyAddress() 289 { 290 return (String )getValue("ProxyAddress"); 291 } 292 public void setProxyLogon (String ProxyLogon) 293 { 294 setValue ("ProxyLogon", ProxyLogon); 295 } 296 public String getProxyLogon() 297 { 298 return (String )getValue("ProxyLogon"); 299 } 300 public void setProxyPassword (String ProxyPassword) 301 { 302 setValue ("ProxyPassword", ProxyPassword); 303 } 304 public String getProxyPassword() 305 { 306 return (String )getValue("ProxyPassword"); 307 } 308 public void setProxyPort (int ProxyPort) 309 { 310 setValue ("ProxyPort", new Integer (ProxyPort)); 311 } 312 public int getProxyPort() 313 { 314 Integer ii = (Integer )getValue("ProxyPort"); 315 if (ii == null) return 0; 316 return ii.intValue(); 317 } 318 public void setRequireVV (boolean RequireVV) 319 { 320 setValue ("RequireVV", new Boolean (RequireVV)); 321 } 322 public boolean isRequireVV() 323 { 324 Boolean bb = (Boolean )getValue("RequireVV"); 325 if (bb != null) return bb.booleanValue(); 326 return false; 327 } 328 public void setUserID (String UserID) 329 { 330 if (UserID == null) throw new IllegalArgumentException ("UserID is mandatory"); 331 setValue ("UserID", UserID); 332 } 333 public String getUserID() 334 { 335 return (String )getValue("UserID"); 336 } 337 public void setVendorID (String VendorID) 338 { 339 setValue ("VendorID", VendorID); 340 } 341 public String getVendorID() 342 { 343 return (String )getValue("VendorID"); 344 } 345 } 346 | Popular Tags |