Subversion Repositories SmartDukaan

Rev

View as "text/plain" | Blame | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.model;
import in.shop2020.model.v1.order.OrderStatus;
import java.time.LocalDateTime;

public class PendingIndentReportModel { 
        
        
        private  int transactionId;
        private  int orderId;
        private  LocalDateTime creatTimestamp;
        private  int itemId;
        
        private  String brand;
        private  String modelName;
        private  String modelNumber;
        private  String color;
        
        private  int quantity;
        private Float unitPrice;
        private Float   walletAmount;
        private String status;
        
        private String invoiceNumber;
        private LocalDateTime billingTimestamp;
        public int getTransactionId() {
                return transactionId;
        }
        public void setTransactionId(int transactionId) {
                this.transactionId = transactionId;
        }
        public int getOrderId() {
                return orderId;
        }
        public void setOrderId(int orderId) {
                this.orderId = orderId;
        }
        public LocalDateTime getCreatTimestamp() {
                return creatTimestamp;
        }
        public void setCreatTimestamp(LocalDateTime creatTimestamp) {
                this.creatTimestamp = creatTimestamp;
        }
        public int getItemId() {
                return itemId;
        }
        public void setItemId(int itemId) {
                this.itemId = itemId;
        }
        public String getBrand() {
                return brand;
        }
        public void setBrand(String brand) {
                this.brand = brand;
        }
        public String getModelName() {
                return modelName;
        }
        public void setModelName(String modelName) {
                this.modelName = modelName;
        }
        public String getModelNumber() {
                return modelNumber;
        }
        public void setModelNumber(String modelNumber) {
                this.modelNumber = modelNumber;
        }
        public String getColor() {
                return color;
        }
        public void setColor(String color) {
                this.color = color;
        }
        public int getQuantity() {
                return quantity;
        }
        public void setQuantity(int quantity) {
                this.quantity = quantity;
        }
        public Float getUnitPrice() {
                return unitPrice;
        }
        public void setUnitPrice(Float unitPrice) {
                this.unitPrice = unitPrice;
        }
        public Float getWalletAmount() {
                return walletAmount;
        }
        public void setWalletAmount(Float walletAmount) {
                this.walletAmount = walletAmount;
        }
        public String getStatus() {
                return status;
        }
        public void setStatus(String status) {
                this.status = status;
        }
        public String getInvoiceNumber() {
                return invoiceNumber;
        }
        public void setInvoiceNumber(String invoiceNumber) {
                this.invoiceNumber = invoiceNumber;
        }
        public LocalDateTime getBillingTimestamp() {
                return billingTimestamp;
        }
        public void setBillingTimestamp(LocalDateTime billingTimestamp) {
                this.billingTimestamp = billingTimestamp;
        }
        
        
        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + ((billingTimestamp == null) ? 0 : billingTimestamp.hashCode());
                result = prime * result + ((brand == null) ? 0 : brand.hashCode());
                result = prime * result + ((color == null) ? 0 : color.hashCode());
                result = prime * result + ((creatTimestamp == null) ? 0 : creatTimestamp.hashCode());
                result = prime * result + ((invoiceNumber == null) ? 0 : invoiceNumber.hashCode());
                result = prime * result + itemId;
                result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());
                result = prime * result + ((modelNumber == null) ? 0 : modelNumber.hashCode());
                result = prime * result + orderId;
                result = prime * result + quantity;
                result = prime * result + ((status == null) ? 0 : status.hashCode());
                result = prime * result + transactionId;
                result = prime * result + ((unitPrice == null) ? 0 : unitPrice.hashCode());
                result = prime * result + ((walletAmount == null) ? 0 : walletAmount.hashCode());
                return result;
        }
        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                PendingIndentReportModel other = (PendingIndentReportModel) obj;
                if (billingTimestamp == null) {
                        if (other.billingTimestamp != null)
                                return false;
                } else if (!billingTimestamp.equals(other.billingTimestamp))
                        return false;
                if (brand == null) {
                        if (other.brand != null)
                                return false;
                } else if (!brand.equals(other.brand))
                        return false;
                if (color == null) {
                        if (other.color != null)
                                return false;
                } else if (!color.equals(other.color))
                        return false;
                if (creatTimestamp == null) {
                        if (other.creatTimestamp != null)
                                return false;
                } else if (!creatTimestamp.equals(other.creatTimestamp))
                        return false;
                if (invoiceNumber == null) {
                        if (other.invoiceNumber != null)
                                return false;
                } else if (!invoiceNumber.equals(other.invoiceNumber))
                        return false;
                if (itemId != other.itemId)
                        return false;
                if (modelName == null) {
                        if (other.modelName != null)
                                return false;
                } else if (!modelName.equals(other.modelName))
                        return false;
                if (modelNumber == null) {
                        if (other.modelNumber != null)
                                return false;
                } else if (!modelNumber.equals(other.modelNumber))
                        return false;
                if (orderId != other.orderId)
                        return false;
                if (quantity != other.quantity)
                        return false;
                if (status != other.status)
                        return false;
                if (transactionId != other.transactionId)
                        return false;
                if (unitPrice == null) {
                        if (other.unitPrice != null)
                                return false;
                } else if (!unitPrice.equals(other.unitPrice))
                        return false;
                if (walletAmount == null) {
                        if (other.walletAmount != null)
                                return false;
                } else if (!walletAmount.equals(other.walletAmount))
                        return false;
                return true;
        }
        @Override
        public String toString() {
                return "PendingIndentReportModel [transactionId=" + transactionId + ", orderId=" + orderId + ", creatTimestamp="
                                + creatTimestamp + ", itemId=" + itemId + ", brand=" + brand + ", modelName=" + modelName
                                + ", modelNumber=" + modelNumber + ", color=" + color + ", quantity=" + quantity + ", unitPrice="
                                + unitPrice + ", walletAmount=" + walletAmount + ", status=" + status + ", invoiceNumber="
                                + invoiceNumber + ", billingTimestamp=" + billingTimestamp + "]";
        }
        public PendingIndentReportModel(int transactionId, int orderId, LocalDateTime creatTimestamp, int itemId,
                        String brand, String modelName, String modelNumber, String color, int quantity, Float unitPrice,
                        Float walletAmount, String status, String invoiceNumber, LocalDateTime billingTimestamp) {
                super();
                this.transactionId = transactionId;
                this.orderId = orderId;
                this.creatTimestamp = creatTimestamp;
                this.itemId = itemId;
                this.brand = brand;
                this.modelName = modelName;
                this.modelNumber = modelNumber;
                this.color = color;
                this.quantity = quantity;
                this.unitPrice = unitPrice;
                this.walletAmount = walletAmount;
                this.status = status;
                this.invoiceNumber = invoiceNumber;
                this.billingTimestamp = billingTimestamp;
        }
        
        
        
        
}