Subversion Repositories SmartDukaan

Rev

Rev 31773 | Rev 33436 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
26607 amit.gupta 1
package com.spice.profitmandi.dao.model;
21378 kshitij.so 2
 
27026 tejbeer 3
import java.time.LocalDateTime;
31773 amit.gupta 4
import java.util.Arrays;
28653 amit.gupta 5
import java.util.List;
31773 amit.gupta 6
import java.util.Objects;
27026 tejbeer 7
 
26522 amit.gupta 8
import com.spice.profitmandi.dao.cart.CartItemMessage;
25880 amit.gupta 9
import com.spice.profitmandi.service.inventory.BulkPricing;
10
 
27026 tejbeer 11
public class CartItemResponseModel {
12
	private String imageUrl;
13
	private String dealText;
14
	private int itemId;
28653 amit.gupta 15
	private int maxQuantity;
27026 tejbeer 16
	private int estimate;
17
	private int quantityStep;
18
	private int packQuantity;
19
	private int minBuyQuantity;
20
	private BulkPricing[] bulkPricing;
21
	private String categoryName;
22
	private double sellingPrice;
33399 ranu 23
	private double extendedWarrantyPrice;
27026 tejbeer 24
	private String title;
28653 amit.gupta 25
	private List<CartItemMessage> cartItemMessages;
27026 tejbeer 26
	private String color;
27
	private long quantity;
28
	private long catalogItemId;
29
	private LocalDateTime promiseDelivery;
31773 amit.gupta 30
					private int availability;
27026 tejbeer 31
 
31773 amit.gupta 32
 
33
	@Override
34
	public boolean equals(Object o) {
35
		if (this == o) return true;
36
		if (o == null || getClass() != o.getClass()) return false;
37
		CartItemResponseModel that = (CartItemResponseModel) o;
33399 ranu 38
		return itemId == that.itemId && maxQuantity == that.maxQuantity && estimate == that.estimate && quantityStep == that.quantityStep && packQuantity == that.packQuantity && minBuyQuantity == that.minBuyQuantity && Double.compare(that.sellingPrice, sellingPrice) == 0 && Double.compare(that.extendedWarrantyPrice, extendedWarrantyPrice) == 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(title, that.title) && Objects.equals(cartItemMessages, that.cartItemMessages) && Objects.equals(color, that.color) && Objects.equals(promiseDelivery, that.promiseDelivery);
31773 amit.gupta 39
	}
40
 
41
	@Override
42
	public int hashCode() {
33399 ranu 43
		int result = Objects.hash(imageUrl, dealText, itemId, maxQuantity, estimate, quantityStep, packQuantity, minBuyQuantity, categoryName, sellingPrice, extendedWarrantyPrice, title, cartItemMessages, color, quantity, catalogItemId, promiseDelivery, availability);
31773 amit.gupta 44
		result = 31 * result + Arrays.hashCode(bulkPricing);
45
		return result;
46
	}
47
 
48
	@Override
49
	public String toString() {
50
		return "CartItemResponseModel{" +
51
				"imageUrl='" + imageUrl + '\'' +
52
				", dealText='" + dealText + '\'' +
53
				", itemId=" + itemId +
54
				", maxQuantity=" + maxQuantity +
55
				", estimate=" + estimate +
56
				", quantityStep=" + quantityStep +
57
				", packQuantity=" + packQuantity +
58
				", minBuyQuantity=" + minBuyQuantity +
59
				", bulkPricing=" + Arrays.toString(bulkPricing) +
60
				", categoryName='" + categoryName + '\'' +
61
				", sellingPrice=" + sellingPrice +
33399 ranu 62
				", extendedWarrantyPrice=" + extendedWarrantyPrice +
31773 amit.gupta 63
				", title='" + title + '\'' +
64
				", cartItemMessages=" + cartItemMessages +
65
				", color='" + color + '\'' +
66
				", quantity=" + quantity +
67
				", catalogItemId=" + catalogItemId +
68
				", promiseDelivery=" + promiseDelivery +
69
				", shortQty=" + availability +
70
				'}';
71
	}
72
 
73
	public int getAvailability() {
74
		return availability;
75
	}
76
 
77
	public void setAvailability(int availability) {
78
		this.availability = availability;
79
	}
80
 
27026 tejbeer 81
	public LocalDateTime getPromiseDelivery() {
82
		return promiseDelivery;
83
	}
84
 
85
	public void setPromiseDelivery(LocalDateTime promiseDelivery) {
86
		this.promiseDelivery = promiseDelivery;
87
	}
88
 
21380 kshitij.so 89
	public String getImageUrl() {
90
		return imageUrl;
91
	}
27026 tejbeer 92
 
21380 kshitij.so 93
	public void setImageUrl(String imageUrl) {
94
		this.imageUrl = imageUrl;
95
	}
27026 tejbeer 96
 
21380 kshitij.so 97
	public String getDealText() {
98
		return dealText;
99
	}
27026 tejbeer 100
 
21380 kshitij.so 101
	public void setDealText(String dealText) {
102
		this.dealText = dealText;
103
	}
27026 tejbeer 104
 
21380 kshitij.so 105
	public int getItemId() {
106
		return itemId;
107
	}
27026 tejbeer 108
 
21380 kshitij.so 109
	public void setItemId(int itemId) {
110
		this.itemId = itemId;
111
	}
27026 tejbeer 112
 
28653 amit.gupta 113
	public int getMaxQuantity() {
21380 kshitij.so 114
		return maxQuantity;
115
	}
27026 tejbeer 116
 
28653 amit.gupta 117
	public void setMaxQuantity(int maxQuantity) {
21380 kshitij.so 118
		this.maxQuantity = maxQuantity;
119
	}
27026 tejbeer 120
 
21380 kshitij.so 121
	public int getEstimate() {
122
		return estimate;
123
	}
27026 tejbeer 124
 
33399 ranu 125
	public double getExtendedWarrantyPrice() {
126
		return extendedWarrantyPrice;
127
	}
128
 
129
	public void setExtendedWarrantyPrice(double extendedWarrantyPrice) {
130
		this.extendedWarrantyPrice = extendedWarrantyPrice;
131
	}
132
 
21380 kshitij.so 133
	public void setEstimate(int estimate) {
134
		this.estimate = estimate;
135
	}
27026 tejbeer 136
 
21380 kshitij.so 137
	public int getQuantityStep() {
138
		return quantityStep;
139
	}
27026 tejbeer 140
 
21380 kshitij.so 141
	public void setQuantityStep(int quantityStep) {
142
		this.quantityStep = quantityStep;
143
	}
27026 tejbeer 144
 
21380 kshitij.so 145
	public int getPackQuantity() {
146
		return packQuantity;
147
	}
27026 tejbeer 148
 
21380 kshitij.so 149
	public void setPackQuantity(int packQuantity) {
150
		this.packQuantity = packQuantity;
151
	}
27026 tejbeer 152
 
21380 kshitij.so 153
	public int getMinBuyQuantity() {
154
		return minBuyQuantity;
155
	}
27026 tejbeer 156
 
21380 kshitij.so 157
	public void setMinBuyQuantity(int minBuyQuantity) {
158
		this.minBuyQuantity = minBuyQuantity;
159
	}
27026 tejbeer 160
 
21380 kshitij.so 161
	public BulkPricing[] getBulkPricing() {
162
		return bulkPricing;
163
	}
27026 tejbeer 164
 
21380 kshitij.so 165
	public void setBulkPricing(BulkPricing[] bulkPricing) {
166
		this.bulkPricing = bulkPricing;
167
	}
27026 tejbeer 168
 
21380 kshitij.so 169
	public String getCategoryName() {
170
		return categoryName;
171
	}
27026 tejbeer 172
 
21380 kshitij.so 173
	public void setCategoryName(String categoryName) {
174
		this.categoryName = categoryName;
175
	}
27026 tejbeer 176
 
21380 kshitij.so 177
	public double getSellingPrice() {
178
		return sellingPrice;
179
	}
27026 tejbeer 180
 
21380 kshitij.so 181
	public void setSellingPrice(double sellingPrice) {
182
		this.sellingPrice = sellingPrice;
183
	}
27026 tejbeer 184
 
21380 kshitij.so 185
	public String getTitle() {
186
		return title;
187
	}
27026 tejbeer 188
 
21380 kshitij.so 189
	public void setTitle(String title) {
190
		this.title = title;
191
	}
27026 tejbeer 192
 
28653 amit.gupta 193
	public List<CartItemMessage> getCartItemMessages() {
21380 kshitij.so 194
		return cartItemMessages;
195
	}
27026 tejbeer 196
 
28653 amit.gupta 197
	public void setCartItemMessages(List<CartItemMessage> cartItemMessages) {
21380 kshitij.so 198
		this.cartItemMessages = cartItemMessages;
199
	}
27026 tejbeer 200
 
21380 kshitij.so 201
	public String getColor() {
202
		return color;
203
	}
27026 tejbeer 204
 
21380 kshitij.so 205
	public void setColor(String color) {
206
		this.color = color;
207
	}
27026 tejbeer 208
 
21380 kshitij.so 209
	public long getQuantity() {
210
		return quantity;
211
	}
27026 tejbeer 212
 
21380 kshitij.so 213
	public void setQuantity(long quantity) {
214
		this.quantity = quantity;
215
	}
27026 tejbeer 216
 
21380 kshitij.so 217
	public long getCatalogItemId() {
218
		return catalogItemId;
219
	}
27026 tejbeer 220
 
21380 kshitij.so 221
	public void setCatalogItemId(long catalogItemId) {
222
		this.catalogItemId = catalogItemId;
223
	}
21378 kshitij.so 224
 
225
}