Subversion Repositories SmartDukaan

Rev

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