Subversion Repositories SmartDukaan

Rev

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

package com.spice.profitmandi.dao.model;

import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;

import com.spice.profitmandi.common.model.PendingOrderItemPolicyPlan;
import com.spice.profitmandi.dao.cart.CartItemMessage;

import com.spice.profitmandi.service.inventory.BulkPricing;

public class CartItemResponseModel {
        private String imageUrl;
        private String dealText;
        private int itemId;
        private int maxQuantity;
        private int estimate;
        private int quantityStep;
        private int packQuantity;
        private int minBuyQuantity;
        private BulkPricing[] bulkPricing;
        private int categoryId;
        private String categoryName;
        private double sellingPrice;
        private PendingOrderItemPolicyPlan pendingOrderItemPolicyPlan;
        private String title;
        private List<CartItemMessage> cartItemMessages;
        private String color;
        private long quantity;
        private long catalogItemId;
        private LocalDateTime promiseDelivery;
        private int availability;
        private String smartSellerId;


        @Override
        public boolean equals(Object o) {
                if (this == o) return true;
                if (o == null || getClass() != o.getClass()) return false;
                CartItemResponseModel that = (CartItemResponseModel) o;
                return itemId == that.itemId && maxQuantity == that.maxQuantity && estimate == that.estimate && quantityStep == that.quantityStep && packQuantity == that.packQuantity && minBuyQuantity == that.minBuyQuantity && Double.compare(sellingPrice, that.sellingPrice) == 0 && quantity == that.quantity && catalogItemId == that.catalogItemId && availability == that.availability && Objects.equals(imageUrl, that.imageUrl) && Objects.equals(dealText, that.dealText) && Arrays.equals(bulkPricing, that.bulkPricing) && Objects.equals(categoryName, that.categoryName) && Objects.equals(pendingOrderItemPolicyPlan, that.pendingOrderItemPolicyPlan) && Objects.equals(title, that.title) && Objects.equals(cartItemMessages, that.cartItemMessages) && Objects.equals(color, that.color) && Objects.equals(promiseDelivery, that.promiseDelivery);
        }

        @Override
        public int hashCode() {
                int result = Objects.hash(imageUrl, dealText, itemId, maxQuantity, estimate, quantityStep, packQuantity, minBuyQuantity, categoryName, sellingPrice, pendingOrderItemPolicyPlan, title, cartItemMessages, color, quantity, catalogItemId, promiseDelivery, availability);
                result = 31 * result + Arrays.hashCode(bulkPricing);
                return result;
        }

        @Override
        public String toString() {
                return "CartItemResponseModel{" +
                                "imageUrl='" + imageUrl + '\'' +
                                ", dealText='" + dealText + '\'' +
                                ", itemId=" + itemId +
                                ", maxQuantity=" + maxQuantity +
                                ", estimate=" + estimate +
                                ", quantityStep=" + quantityStep +
                                ", packQuantity=" + packQuantity +
                                ", minBuyQuantity=" + minBuyQuantity +
                                ", bulkPricing=" + Arrays.toString(bulkPricing) +
                                ", categoryName='" + categoryName + '\'' +
                                ", sellingPrice=" + sellingPrice +
                                ", pendingOrderItemPolicyPlan=" + pendingOrderItemPolicyPlan +
                                ", title='" + title + '\'' +
                                ", cartItemMessages=" + cartItemMessages +
                                ", color='" + color + '\'' +
                                ", quantity=" + quantity +
                                ", catalogItemId=" + catalogItemId +
                                ", promiseDelivery=" + promiseDelivery +
                                ", availability=" + availability +
                                '}';
        }

        public int getAvailability() {
                return availability;
        }

        public void setAvailability(int availability) {
                this.availability = availability;
        }

        public LocalDateTime getPromiseDelivery() {
                return promiseDelivery;
        }

        public void setPromiseDelivery(LocalDateTime promiseDelivery) {
                this.promiseDelivery = promiseDelivery;
        }

        public String getImageUrl() {
                return imageUrl;
        }

        public void setImageUrl(String imageUrl) {
                this.imageUrl = imageUrl;
        }

        public String getDealText() {
                return dealText;
        }

        public void setDealText(String dealText) {
                this.dealText = dealText;
        }

        public int getItemId() {
                return itemId;
        }

        public void setItemId(int itemId) {
                this.itemId = itemId;
        }

        public int getMaxQuantity() {
                return maxQuantity;
        }

        public void setMaxQuantity(int maxQuantity) {
                this.maxQuantity = maxQuantity;
        }

        public int getEstimate() {
                return estimate;
        }

        public void setEstimate(int estimate) {
                this.estimate = estimate;
        }

        public int getQuantityStep() {
                return quantityStep;
        }

        public void setQuantityStep(int quantityStep) {
                this.quantityStep = quantityStep;
        }

        public int getPackQuantity() {
                return packQuantity;
        }

        public void setPackQuantity(int packQuantity) {
                this.packQuantity = packQuantity;
        }

        public int getMinBuyQuantity() {
                return minBuyQuantity;
        }

        public void setMinBuyQuantity(int minBuyQuantity) {
                this.minBuyQuantity = minBuyQuantity;
        }

        public BulkPricing[] getBulkPricing() {
                return bulkPricing;
        }

        public void setBulkPricing(BulkPricing[] bulkPricing) {
                this.bulkPricing = bulkPricing;
        }

        public String getCategoryName() {
                return categoryName;
        }

        public void setCategoryName(String categoryName) {
                this.categoryName = categoryName;
        }

        public int getCategoryId() {
                return categoryId;
        }

        public void setCategoryId(int categoryId) {
                this.categoryId = categoryId;
        }

        public double getSellingPrice() {
                return sellingPrice;
        }

        public void setSellingPrice(double sellingPrice) {
                this.sellingPrice = sellingPrice;
        }

        public String getTitle() {
                return title;
        }

        public void setTitle(String title) {
                this.title = title;
        }

        public List<CartItemMessage> getCartItemMessages() {
                return cartItemMessages;
        }

        public void setCartItemMessages(List<CartItemMessage> cartItemMessages) {
                this.cartItemMessages = cartItemMessages;
        }

        public String getColor() {
                return color;
        }

        public void setColor(String color) {
                this.color = color;
        }

        public long getQuantity() {
                return quantity;
        }

        public void setQuantity(long quantity) {
                this.quantity = quantity;
        }

        public long getCatalogItemId() {
                return catalogItemId;
        }

        public void setCatalogItemId(long catalogItemId) {
                this.catalogItemId = catalogItemId;
        }

        public PendingOrderItemPolicyPlan getPendingOrderItemPolicyPlan() {
                return pendingOrderItemPolicyPlan;
        }

        public void setPendingOrderItemPolicyPlan(PendingOrderItemPolicyPlan pendingOrderItemPolicyPlan) {
                this.pendingOrderItemPolicyPlan = pendingOrderItemPolicyPlan;
        }

        public String getSmartSellerId() {
                return smartSellerId;
        }

        public void setSmartSellerId(String smartSellerId) {
                this.smartSellerId = smartSellerId;
        }
}