1 package com.dotmarketing.portlets.order_manager.model; 2 3 import com.dotmarketing.beans.Inode; 4 import com.dotmarketing.beans.UserProxy; 5 import com.dotmarketing.cms.factories.PublicUserFactory; 6 import com.dotmarketing.factories.UserProxyFactory; 7 import com.dotmarketing.util.UtilMethods; 8 import com.liferay.portal.model.User; 9 10 public class Order extends Inode { 11 12 private static final long serialVersionUID = 1L; 13 private long inode; private long userInode; private int orderStatus; private int paymentStatus; private java.util.Date datePosted; private java.util.Date lastModDate; private String billingAddress1; private String billingAddress2; private String billingCity; private String billingState; private String billingZip; private String billingCountry; private String billingPhone; private String billingFax; private String billingContactName; private String billingContactPhone; private String billingContactEmail; private String shippingAddress1; private String shippingLabel; private String shippingAddress2; private String shippingCity; private String shippingState; private String shippingZip; private String shippingCountry; private String shippingPhone; private String shippingFax; private String paymentType; private String nameOnCard; private String cardType; private String cardNumber; private int cardExpMonth; private int cardExpYear; private String cardVerificationValue; private float orderSubTotal; private float orderShipping; private int orderShipType; private float orderTax; private String taxExemptNumber; private String discountCodes; private float orderTotal; private float orderTotalPaid; private float orderTotalDue; private float orderDiscount; private String invoiceNumber; private java.util.Date invoiceDate; private String checkNumber; private String checkBankName; private String poNumber; private String trackingNumber; private boolean modified_QB; private boolean modified_FH; private String backendUser; 66 public Order() { 67 setType("ecom_order"); 68 this.modified_QB = true; 69 this.modified_FH = true; 70 } 71 72 public long getInode() { 73 return this.inode; 74 } 75 76 public void setInode(long inode) { 77 this.inode = inode; 78 } 79 public long getUserInode() { 80 return this.userInode; 81 } 82 83 public void setUserInode(long userInode) { 84 this.userInode = userInode; 85 } 86 public int getOrderStatus() { 87 return this.orderStatus; 88 } 89 90 public void setOrderStatus(int orderStatus) { 91 this.orderStatus = orderStatus; 92 } 93 public int getPaymentStatus() { 94 return this.paymentStatus; 95 } 96 97 public void setPaymentStatus(int paymentStatus) { 98 this.paymentStatus = paymentStatus; 99 } 100 public java.util.Date getDatePosted() { 101 return this.datePosted; 102 } 103 104 public void setDatePosted(java.util.Date datePosted) { 105 this.datePosted = datePosted; 106 } 107 public java.util.Date getLastModDate() { 108 return this.lastModDate; 109 } 110 111 public void setLastModDate(java.util.Date lastModDate) { 112 this.lastModDate = lastModDate; 113 } 114 public String getBillingAddress1() { 115 return this.billingAddress1; 116 } 117 118 public void setBillingAddress1(String billingAddress1) { 119 this.billingAddress1 = billingAddress1; 120 } 121 public String getBillingAddress2() { 122 return this.billingAddress2; 123 } 124 125 public void setBillingAddress2(String billingAddress2) { 126 this.billingAddress2 = billingAddress2; 127 } 128 public String getBillingCity() { 129 return this.billingCity; 130 } 131 132 public void setBillingCity(String billingCity) { 133 this.billingCity = billingCity; 134 } 135 public String getBillingState() { 136 return this.billingState; 137 } 138 139 public void setBillingState(String billingState) { 140 this.billingState = billingState; 141 } 142 public String getBillingZip() { 143 return this.billingZip; 144 } 145 146 public void setBillingZip(String billingZip) { 147 this.billingZip = billingZip; 148 } 149 public String getBillingCountry() { 150 return this.billingCountry; 151 } 152 153 public void setBillingCountry(String billingCountry) { 154 this.billingCountry = billingCountry; 155 } 156 public String getBillingPhone() { 157 return this.billingPhone; 158 } 159 160 public void setBillingPhone(String billingPhone) { 161 this.billingPhone = billingPhone; 162 } 163 public String getBillingFax() { 164 return this.billingFax; 165 } 166 167 public void setBillingFax(String billingFax) { 168 this.billingFax = billingFax; 169 } 170 public String getBillingContactName() { 171 return this.billingContactName; 172 } 173 174 public void setBillingContactName(String billingContactName) { 175 this.billingContactName = billingContactName; 176 } 177 public String getBillingContactPhone() { 178 return this.billingContactPhone; 179 } 180 181 public void setBillingContactPhone(String billingContactPhone) { 182 this.billingContactPhone = billingContactPhone; 183 } 184 public String getBillingContactEmail() { 185 return this.billingContactEmail; 186 } 187 188 public void setBillingContactEmail(String billingContactEmail) { 189 this.billingContactEmail = billingContactEmail; 190 } 191 public String getShippingAddress1() { 192 return this.shippingAddress1; 193 } 194 195 public void setShippingAddress1(String shippingAddress1) { 196 this.shippingAddress1 = shippingAddress1; 197 } 198 public String getShippingAddress2() { 199 return this.shippingAddress2; 200 } 201 202 public void setShippingAddress2(String shippingAddress2) { 203 this.shippingAddress2 = shippingAddress2; 204 } 205 public String getShippingCity() { 206 return this.shippingCity; 207 } 208 209 public void setShippingCity(String shippingCity) { 210 this.shippingCity = shippingCity; 211 } 212 public String getShippingState() { 213 return this.shippingState; 214 } 215 216 public void setShippingState(String shippingState) { 217 this.shippingState = shippingState; 218 } 219 public String getShippingZip() { 220 return this.shippingZip; 221 } 222 223 public void setShippingZip(String shippingZip) { 224 this.shippingZip = shippingZip; 225 } 226 public String getShippingCountry() { 227 return this.shippingCountry; 228 } 229 230 public void setShippingCountry(String shippingCountry) { 231 this.shippingCountry = shippingCountry; 232 } 233 public String getShippingPhone() { 234 return this.shippingPhone; 235 } 236 237 public void setShippingPhone(String shippingPhone) { 238 this.shippingPhone = shippingPhone; 239 } 240 public String getShippingFax() { 241 return this.shippingFax; 242 } 243 244 public void setShippingFax(String shippingFax) { 245 this.shippingFax = shippingFax; 246 } 247 public String getPaymentType() { 248 return this.paymentType; 249 } 250 251 public void setPaymentType(String paymentType) { 252 this.paymentType = paymentType; 253 } 254 public String getNameOnCard() { 255 return this.nameOnCard; 256 } 257 258 public void setNameOnCard(String nameOnCard) { 259 this.nameOnCard = nameOnCard; 260 } 261 public String getCardType() { 262 return this.cardType; 263 } 264 265 public void setCardType(String cardType) { 266 this.cardType = cardType; 267 } 268 public String getCardNumber() { 269 return this.cardNumber; 270 } 271 272 public void setCardNumber(String cardNumber) { 273 this.cardNumber = cardNumber; 274 } 275 public int getCardExpMonth() { 276 return this.cardExpMonth; 277 } 278 279 public void setCardExpMonth(int cardExpMonth) { 280 this.cardExpMonth = cardExpMonth; 281 } 282 public int getCardExpYear() { 283 return this.cardExpYear; 284 } 285 286 public void setCardExpYear(int cardExpYear) { 287 this.cardExpYear = cardExpYear; 288 } 289 public String getCardVerificationValue() { 290 return this.cardVerificationValue; 291 } 292 293 public void setCardVerificationValue(String cardVerificationValue) { 294 this.cardVerificationValue = cardVerificationValue; 295 } 296 public float getOrderSubTotal() { 297 return this.orderSubTotal; 298 } 299 300 public void setOrderSubTotal(float orderSubTotal) { 301 this.orderSubTotal = orderSubTotal; 302 } 303 public float getOrderShipping() { 304 return this.orderShipping; 305 } 306 307 public void setOrderShipping(float orderShipping) { 308 this.orderShipping = orderShipping; 309 } 310 public int getOrderShipType() { 311 return this.orderShipType; 312 } 313 314 public void setOrderShipType(int orderShipType) { 315 this.orderShipType = orderShipType; 316 } 317 public float getOrderTax() { 318 return this.orderTax; 319 } 320 321 public void setOrderTax(float orderTax) { 322 this.orderTax = orderTax; 323 } 324 public String getTaxExemptNumber() { 325 return this.taxExemptNumber; 326 } 327 328 public void setTaxExemptNumber(String taxExemptNumber) { 329 this.taxExemptNumber = taxExemptNumber; 330 } 331 public String getDiscountCodes() { 332 return this.discountCodes; 333 } 334 335 public void setDiscountCodes(String discountCodes) { 336 this.discountCodes = discountCodes; 337 } 338 public float getOrderTotal() { 339 return this.orderTotal; 340 } 341 342 public void setOrderTotal(float orderTotal) { 343 this.orderTotal = orderTotal; 344 } 345 public float getOrderTotalPaid() { 346 return this.orderTotalPaid; 347 } 348 349 public void setOrderTotalPaid(float orderTotalPaid) { 350 this.orderTotalPaid = orderTotalPaid; 351 } 352 public float getOrderTotalDue() { 353 return this.orderTotalDue; 354 } 355 356 public void setOrderTotalDue(float orderTotalDue) { 357 this.orderTotalDue = orderTotalDue; 358 } 359 public String getInvoiceNumber() { 360 return this.invoiceNumber; 361 } 362 363 public void setInvoiceNumber(String invoiceNumber) { 364 this.invoiceNumber = invoiceNumber; 365 } 366 public java.util.Date getInvoiceDate() { 367 return this.invoiceDate; 368 } 369 370 public void setInvoiceDate(java.util.Date invoiceDate) { 371 this.invoiceDate = invoiceDate; 372 } 373 public String getCheckNumber() { 374 return this.checkNumber; 375 } 376 377 public void setCheckNumber(String checkNumber) { 378 this.checkNumber = checkNumber; 379 } 380 public String getCheckBankName() { 381 return this.checkBankName; 382 } 383 384 public void setCheckBankName(String checkBankName) { 385 this.checkBankName = checkBankName; 386 } 387 public String getPoNumber() { 388 return this.poNumber; 389 } 390 391 public void setPoNumber(String poNumber) { 392 this.poNumber = poNumber; 393 } 394 public float getOrderDiscount() { 395 return orderDiscount; 396 } 397 public void setOrderDiscount(float orderDiscount) { 398 this.orderDiscount = orderDiscount; 399 } 400 401 public String getTrackingNumber() { 402 return trackingNumber; 403 } 404 405 public void setTrackingNumber(String trackingNumber) { 406 this.trackingNumber = trackingNumber; 407 } 408 409 public User getUser() 410 { 411 User user = PublicUserFactory.getDefaultUser(); 412 UserProxy userProxy = UserProxyFactory.getUserProxy(userInode); 413 String userId = userProxy.getUserId(); 414 if (UtilMethods.isSet(userId)) 415 { 416 user = PublicUserFactory.getUserByUserId(userId); 417 } 418 return user; 419 } 420 423 public boolean isModified_QB() { 424 return modified_QB; 425 } 426 427 431 public void setModified_QB(boolean modified_QB) { 432 this.modified_QB = modified_QB; 433 } 434 435 438 public boolean isModified_FH() { 439 return modified_FH; 440 } 441 442 446 public void setModified_FH(boolean modified_FH) { 447 this.modified_FH = modified_FH; 448 } 449 450 public String getBackendUser() { 451 return backendUser; 452 } 453 454 public void setBackendUser(String backendUser) { 455 this.backendUser = backendUser; 456 } 457 458 public String getShippingLabel() { 459 return shippingLabel; 460 } 461 462 public void setShippingLabel(String shippingLabel) { 463 this.shippingLabel = shippingLabel; 464 } 465 466 } 467 | Popular Tags |