Subversion Repositories SmartDukaan

Rev

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