Subversion Repositories SmartDukaan

Rev

Rev 33189 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.common.model;

import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.springframework.cglib.core.Local;

public class GrnPendingDataModel implements ImeiDropSummaryModel {
        @JsonProperty("Code")
        private String partnerCode;

        public String getPartnerCode() {
                return partnerCode;
        }

        public void setPartnerCode(String partnerCode) {
                this.partnerCode = partnerCode;
        }

        @Override
        public String toString() {
                return "GrnPendingDataModel [partnerCode=" + partnerCode + ", storeName=" + storeName + ", retailerId="
                                + retailerId + ", email=" + email + ", phone=" + phone + ", invoiceNumber=" + invoiceNumber
                                + ", lastScanned=" + lastScanned + ", grnOn=" + grnOn + ", activationTimestamp=" + activationTimestamp
                                + ", activationAddedOn=" + activationAddedOn + ", vendorName=" + vendorName + ", itemId=" + itemId
                                + ", brand=" + brand + ", modelName=" + modelName + ", modelNumber=" + modelNumber + ", color=" + color
                                + ", unitPrice=" + unitPrice + ", serialNumber=" + serialNumber + "]";
        }

        @JsonProperty("Name")
        private String storeName;
        @JsonProperty("Partner Id")
        private int retailerId;
        public int getRetailerId() {
                return retailerId;
        }

        public void setRetailerId(int retailerId) {
                this.retailerId = retailerId;
        }

        @JsonProperty("Email")
        private String email;
        @JsonProperty("Phone")
        private String phone;
        @JsonProperty("Invoice Number")
        private String invoiceNumber;
        @JsonProperty("Billing Timestamp")
        private LocalDateTime lastScanned;
        
        @JsonProperty("Grn On")
        private LocalDateTime grnOn;
        
        @JsonProperty("Activation Timestamp")
        private LocalDateTime activationTimestamp;
        @JsonProperty("Activation Added On")
        private LocalDateTime activationAddedOn;

        @JsonProperty("Vendor Name")
        private String vendorName;
        
        public String getVendorName() {
                return vendorName;
        }

        public void setVendorName(String vendorName) {
                this.vendorName = vendorName;
        }

        @JsonProperty("Item Id")
        private int itemId;
        @JsonProperty("Brand")
        private String brand;
        @JsonProperty("Model Name")
        private String modelName;
        @JsonProperty("Model Number")
        private String modelNumber;
        @JsonProperty("Color")
        private String color;
        @JsonProperty("Unit Price")
        private float unitPrice;
        @JsonProperty("Serial Number")
        private String serialNumber;

        @Override
        public LocalDateTime getLastScanned() {
                return lastScanned;
        }

        public void setLastScanned(LocalDateTime lastScanned) {
                this.lastScanned = lastScanned;
        }

        public float getUnitPrice() {
                return unitPrice;
        }

        public void setUnitPrice(float unitPrice) {
                this.unitPrice = unitPrice;
        }

        @Override
        public String getStoreName() {
                return storeName;
        }
        
        

        public LocalDateTime getGrnOn() {
                return grnOn;
        }

        public void setGrnOn(LocalDateTime grnOn) {
                this.grnOn = grnOn;
        }

        public void setStoreName(String storeName) {
                this.storeName = storeName;
        }

        public String getEmail() {
                return email;
        }

        public void setEmail(String email) {
                this.email = email;
        }

        public String getPhone() {
                return phone;
        }

        public void setPhone(String phone) {
                this.phone = phone;
        }

        public String getInvoiceNumber() {
                return invoiceNumber;
        }

        public void setInvoiceNumber(String invoiceNumber) {
                this.invoiceNumber = invoiceNumber;
        }

        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 String getSerialNumber() {
                return serialNumber;
        }

        public void setSerialNumber(String serialNumber) {
                this.serialNumber = serialNumber;
        }

        @Override
        public int getItemId() {
                return itemId;
        }

        public LocalDateTime getActivationTimestamp() {
                return activationTimestamp;
        }

        public void setActivationTimestamp(LocalDateTime activationTimestamp) {
                this.activationTimestamp = activationTimestamp;
        }

        public LocalDateTime getActivationAddedOn() {
                return activationAddedOn;
        }

        public void setActivationAddedOn(LocalDateTime activationAddedOn) {
                this.activationAddedOn = activationAddedOn;
        }

        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + ((activationAddedOn == null) ? 0 : activationAddedOn.hashCode());
                result = prime * result + ((activationTimestamp == null) ? 0 : activationTimestamp.hashCode());
                result = prime * result + ((brand == null) ? 0 : brand.hashCode());
                result = prime * result + ((color == null) ? 0 : color.hashCode());
                result = prime * result + ((email == null) ? 0 : email.hashCode());
                result = prime * result + ((invoiceNumber == null) ? 0 : invoiceNumber.hashCode());
                result = prime * result + itemId;
                result = prime * result + ((lastScanned == null) ? 0 : lastScanned.hashCode());
                result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());
                result = prime * result + ((modelNumber == null) ? 0 : modelNumber.hashCode());
                result = prime * result + ((partnerCode == null) ? 0 : partnerCode.hashCode());
                result = prime * result + ((phone == null) ? 0 : phone.hashCode());
                result = prime * result + retailerId;
                result = prime * result + ((serialNumber == null) ? 0 : serialNumber.hashCode());
                result = prime * result + ((storeName == null) ? 0 : storeName.hashCode());
                result = prime * result + Float.floatToIntBits(unitPrice);
                result = prime * result + ((vendorName == null) ? 0 : vendorName.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;
                GrnPendingDataModel other = (GrnPendingDataModel) obj;
                if (activationAddedOn == null) {
                        if (other.activationAddedOn != null)
                                return false;
                } else if (!activationAddedOn.equals(other.activationAddedOn))
                        return false;
                if (activationTimestamp == null) {
                        if (other.activationTimestamp != null)
                                return false;
                } else if (!activationTimestamp.equals(other.activationTimestamp))
                        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 (email == null) {
                        if (other.email != null)
                                return false;
                } else if (!email.equals(other.email))
                        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 (lastScanned == null) {
                        if (other.lastScanned != null)
                                return false;
                } else if (!lastScanned.equals(other.lastScanned))
                        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 (partnerCode == null) {
                        if (other.partnerCode != null)
                                return false;
                } else if (!partnerCode.equals(other.partnerCode))
                        return false;
                if (phone == null) {
                        if (other.phone != null)
                                return false;
                } else if (!phone.equals(other.phone))
                        return false;
                if (retailerId != other.retailerId)
                        return false;
                if (serialNumber == null) {
                        if (other.serialNumber != null)
                                return false;
                } else if (!serialNumber.equals(other.serialNumber))
                        return false;
                if (storeName == null) {
                        if (other.storeName != null)
                                return false;
                } else if (!storeName.equals(other.storeName))
                        return false;
                if (Float.floatToIntBits(unitPrice) != Float.floatToIntBits(other.unitPrice))
                        return false;
                if (vendorName == null) {
                        if (other.vendorName != null)
                                return false;
                } else if (!vendorName.equals(other.vendorName))
                        return false;
                return true;
        }

        public GrnPendingDataModel(int retailerId, String partnerCode, String storeName, String invoiceNumber, LocalDateTime  billingTimestamp,
                                                           int itemId, String brand, String modelName, String modelNumber, String color, float unitPrice, String serialNumber,
                                                           String vendorName, LocalDateTime grnOn, LocalDateTime activationTimestamp, LocalDateTime activationAddedOn) {
                this.storeName = storeName;
                this.retailerId = retailerId;
                this.serialNumber = serialNumber;
                this.partnerCode = partnerCode;
                this.invoiceNumber = invoiceNumber;
                this.lastScanned = billingTimestamp;
                this.itemId = itemId;
                this.brand = brand;
                this.modelName = modelName;
                this.modelNumber = modelNumber;
                this.color = color;
                this.unitPrice = unitPrice;
                this.vendorName = vendorName;
                this.grnOn = grnOn;
                this.activationAddedOn = activationAddedOn;
                this.activationTimestamp = activationTimestamp;
        }

        public GrnPendingDataModel() {
        }
}