| 21686 |
ashik.ali |
1 |
package com.spice.profitmandi.common.model;
|
|
|
2 |
|
| 31684 |
amit.gupta |
3 |
import com.spice.profitmandi.common.enumuration.ActivationType;
|
| 31180 |
tejbeer |
4 |
import com.spice.profitmandi.common.enumuration.CounterSize;
|
| 30219 |
tejbeer |
5 |
import com.spice.profitmandi.common.enumuration.FofoType;
|
|
|
6 |
|
| 31684 |
amit.gupta |
7 |
import java.util.Objects;
|
|
|
8 |
|
| 21686 |
ashik.ali |
9 |
public class CustomRetailer {
|
| 31743 |
tejbeer |
10 |
private int partnerId;
|
|
|
11 |
private String code;
|
| 33553 |
ranu |
12 |
private int astId;
|
| 30219 |
tejbeer |
13 |
|
| 31743 |
tejbeer |
14 |
public String getCode() {
|
|
|
15 |
return code;
|
|
|
16 |
}
|
| 30219 |
tejbeer |
17 |
|
| 31743 |
tejbeer |
18 |
public void setCode(String code) {
|
|
|
19 |
this.code = code;
|
|
|
20 |
}
|
| 30122 |
amit.gupta |
21 |
|
| 31743 |
tejbeer |
22 |
private int cartId;
|
|
|
23 |
private String businessName;
|
|
|
24 |
private CustomAddress address;
|
|
|
25 |
private String mobileNumber;
|
|
|
26 |
private String gstNumber;
|
|
|
27 |
private String email;
|
|
|
28 |
private String displayName;
|
|
|
29 |
private int warehouseId;
|
|
|
30 |
private String pan;
|
|
|
31 |
private FofoType fofoType;
|
|
|
32 |
private ActivationType activationType;
|
| 30122 |
amit.gupta |
33 |
|
| 31743 |
tejbeer |
34 |
private float counterPotential;
|
| 31861 |
tejbeer |
35 |
private String firstName;
|
|
|
36 |
private String lastName;
|
|
|
37 |
|
|
|
38 |
|
| 31684 |
amit.gupta |
39 |
|
| 31861 |
tejbeer |
40 |
public String getFirstName() {
|
|
|
41 |
return firstName;
|
|
|
42 |
}
|
|
|
43 |
|
|
|
44 |
public void setFirstName(String firstName) {
|
|
|
45 |
this.firstName = firstName;
|
|
|
46 |
}
|
|
|
47 |
|
|
|
48 |
public String getLastName() {
|
|
|
49 |
return lastName;
|
|
|
50 |
}
|
|
|
51 |
|
|
|
52 |
public void setLastName(String lastName) {
|
|
|
53 |
this.lastName = lastName;
|
|
|
54 |
}
|
|
|
55 |
|
| 33553 |
ranu |
56 |
public int getAstId() {
|
|
|
57 |
return astId;
|
|
|
58 |
}
|
|
|
59 |
|
|
|
60 |
public void setAstId(int astId) {
|
|
|
61 |
this.astId = astId;
|
|
|
62 |
}
|
|
|
63 |
|
| 31743 |
tejbeer |
64 |
@Override
|
|
|
65 |
public String toString() {
|
| 33553 |
ranu |
66 |
return "CustomRetailer [partnerId=" + partnerId + ", code=" + code + ", cartId=" + cartId + ",astId=" + astId + ", businessName=" + businessName + ", address=" + address + ", mobileNumber=" + mobileNumber + ", gstNumber=" + gstNumber + ", email=" + email + ", displayName=" + displayName + ", warehouseId=" + warehouseId + ", pan=" + pan + ", fofoType=" + fofoType + ", activationType=" + activationType + ", counterPotential=" + counterPotential + ", firstName=" + firstName + ", lastName=" + lastName + ", counterSize=" + counterSize + "]";
|
| 31743 |
tejbeer |
67 |
}
|
| 31684 |
amit.gupta |
68 |
|
| 31743 |
tejbeer |
69 |
@Override
|
|
|
70 |
public boolean equals(Object obj) {
|
|
|
71 |
if (this == obj) return true;
|
|
|
72 |
if (obj == null) return false;
|
|
|
73 |
if (getClass() != obj.getClass()) return false;
|
|
|
74 |
CustomRetailer other = (CustomRetailer) obj;
|
|
|
75 |
if (activationType != other.activationType) return false;
|
|
|
76 |
if (address == null) {
|
|
|
77 |
if (other.address != null) return false;
|
|
|
78 |
} else if (!address.equals(other.address)) return false;
|
|
|
79 |
if (businessName == null) {
|
|
|
80 |
if (other.businessName != null) return false;
|
|
|
81 |
} else if (!businessName.equals(other.businessName)) return false;
|
|
|
82 |
if (cartId != other.cartId) return false;
|
| 33553 |
ranu |
83 |
if (astId != other.astId) return false;
|
| 31743 |
tejbeer |
84 |
if (code == null) {
|
|
|
85 |
if (other.code != null) return false;
|
|
|
86 |
} else if (!code.equals(other.code)) return false;
|
| 33553 |
ranu |
87 |
|
| 31743 |
tejbeer |
88 |
if (Float.floatToIntBits(counterPotential) != Float.floatToIntBits(other.counterPotential)) return false;
|
|
|
89 |
if (counterSize != other.counterSize) return false;
|
|
|
90 |
if (displayName == null) {
|
|
|
91 |
if (other.displayName != null) return false;
|
|
|
92 |
} else if (!displayName.equals(other.displayName)) return false;
|
|
|
93 |
if (email == null) {
|
|
|
94 |
if (other.email != null) return false;
|
|
|
95 |
} else if (!email.equals(other.email)) return false;
|
| 31861 |
tejbeer |
96 |
if (firstName == null) {
|
|
|
97 |
if (other.firstName != null) return false;
|
|
|
98 |
} else if (!firstName.equals(other.firstName)) return false;
|
| 31743 |
tejbeer |
99 |
if (fofoType != other.fofoType) return false;
|
|
|
100 |
if (gstNumber == null) {
|
|
|
101 |
if (other.gstNumber != null) return false;
|
|
|
102 |
} else if (!gstNumber.equals(other.gstNumber)) return false;
|
| 31861 |
tejbeer |
103 |
if (lastName == null) {
|
|
|
104 |
if (other.lastName != null) return false;
|
|
|
105 |
} else if (!lastName.equals(other.lastName)) return false;
|
| 31743 |
tejbeer |
106 |
if (mobileNumber == null) {
|
|
|
107 |
if (other.mobileNumber != null) return false;
|
|
|
108 |
} else if (!mobileNumber.equals(other.mobileNumber)) return false;
|
|
|
109 |
if (pan == null) {
|
|
|
110 |
if (other.pan != null) return false;
|
|
|
111 |
} else if (!pan.equals(other.pan)) return false;
|
|
|
112 |
if (partnerId != other.partnerId) return false;
|
|
|
113 |
if (warehouseId != other.warehouseId) return false;
|
|
|
114 |
return true;
|
|
|
115 |
}
|
| 31684 |
amit.gupta |
116 |
|
| 31743 |
tejbeer |
117 |
@Override
|
|
|
118 |
public int hashCode() {
|
|
|
119 |
final int prime = 31;
|
|
|
120 |
int result = 1;
|
|
|
121 |
result = prime * result + ((activationType == null) ? 0 : activationType.hashCode());
|
|
|
122 |
result = prime * result + ((address == null) ? 0 : address.hashCode());
|
|
|
123 |
result = prime * result + ((businessName == null) ? 0 : businessName.hashCode());
|
|
|
124 |
result = prime * result + cartId;
|
| 33553 |
ranu |
125 |
result = prime * result + astId;
|
| 31743 |
tejbeer |
126 |
result = prime * result + ((code == null) ? 0 : code.hashCode());
|
|
|
127 |
result = prime * result + Float.floatToIntBits(counterPotential);
|
|
|
128 |
result = prime * result + ((counterSize == null) ? 0 : counterSize.hashCode());
|
|
|
129 |
result = prime * result + ((displayName == null) ? 0 : displayName.hashCode());
|
|
|
130 |
result = prime * result + ((email == null) ? 0 : email.hashCode());
|
| 31861 |
tejbeer |
131 |
result = prime * result + ((firstName == null) ? 0 : firstName.hashCode());
|
| 31743 |
tejbeer |
132 |
result = prime * result + ((fofoType == null) ? 0 : fofoType.hashCode());
|
|
|
133 |
result = prime * result + ((gstNumber == null) ? 0 : gstNumber.hashCode());
|
| 31861 |
tejbeer |
134 |
result = prime * result + ((lastName == null) ? 0 : lastName.hashCode());
|
| 31743 |
tejbeer |
135 |
result = prime * result + ((mobileNumber == null) ? 0 : mobileNumber.hashCode());
|
|
|
136 |
result = prime * result + ((pan == null) ? 0 : pan.hashCode());
|
|
|
137 |
result = prime * result + partnerId;
|
|
|
138 |
result = prime * result + warehouseId;
|
|
|
139 |
return result;
|
|
|
140 |
}
|
| 31684 |
amit.gupta |
141 |
|
| 31743 |
tejbeer |
142 |
public ActivationType getActivationType() {
|
|
|
143 |
return activationType;
|
|
|
144 |
}
|
| 31684 |
amit.gupta |
145 |
|
| 31743 |
tejbeer |
146 |
public void setActivationType(ActivationType activationType) {
|
|
|
147 |
this.activationType = activationType;
|
|
|
148 |
}
|
| 31684 |
amit.gupta |
149 |
|
| 31743 |
tejbeer |
150 |
private CounterSize counterSize;
|
| 31180 |
tejbeer |
151 |
|
| 31743 |
tejbeer |
152 |
// Derived fields to be set as required
|
| 30122 |
amit.gupta |
153 |
|
| 31743 |
tejbeer |
154 |
public CounterSize getCounterSize() {
|
|
|
155 |
return counterSize;
|
|
|
156 |
}
|
| 31180 |
tejbeer |
157 |
|
| 31743 |
tejbeer |
158 |
public void setCounterSize(CounterSize counterSize) {
|
|
|
159 |
this.counterSize = counterSize;
|
|
|
160 |
}
|
| 31180 |
tejbeer |
161 |
|
| 31743 |
tejbeer |
162 |
public String getPan() {
|
|
|
163 |
return pan;
|
|
|
164 |
}
|
| 30122 |
amit.gupta |
165 |
|
| 31743 |
tejbeer |
166 |
public FofoType getFofoType() {
|
|
|
167 |
return fofoType;
|
|
|
168 |
}
|
| 30219 |
tejbeer |
169 |
|
| 31743 |
tejbeer |
170 |
public void setFofoType(FofoType fofoType) {
|
|
|
171 |
this.fofoType = fofoType;
|
|
|
172 |
}
|
| 30219 |
tejbeer |
173 |
|
| 31743 |
tejbeer |
174 |
public void setPan(String pan) {
|
|
|
175 |
this.pan = pan;
|
|
|
176 |
}
|
| 30122 |
amit.gupta |
177 |
|
| 31743 |
tejbeer |
178 |
public int getWarehouseId() {
|
|
|
179 |
return warehouseId;
|
|
|
180 |
}
|
| 30219 |
tejbeer |
181 |
|
| 31743 |
tejbeer |
182 |
public void setWarehouseId(int warehouseId) {
|
|
|
183 |
this.warehouseId = warehouseId;
|
|
|
184 |
}
|
| 30219 |
tejbeer |
185 |
|
| 31743 |
tejbeer |
186 |
public String getDisplayName() {
|
|
|
187 |
return displayName;
|
|
|
188 |
}
|
| 30219 |
tejbeer |
189 |
|
| 31743 |
tejbeer |
190 |
public void setDisplayName(String displayName) {
|
|
|
191 |
this.displayName = displayName;
|
|
|
192 |
}
|
| 30219 |
tejbeer |
193 |
|
| 31743 |
tejbeer |
194 |
public String getBusinessName() {
|
|
|
195 |
return businessName;
|
|
|
196 |
}
|
| 30219 |
tejbeer |
197 |
|
| 31743 |
tejbeer |
198 |
public void setBusinessName(String businessName) {
|
|
|
199 |
this.businessName = businessName;
|
|
|
200 |
}
|
| 30219 |
tejbeer |
201 |
|
| 31743 |
tejbeer |
202 |
public CustomAddress getAddress() {
|
|
|
203 |
return address;
|
|
|
204 |
}
|
| 30219 |
tejbeer |
205 |
|
| 31743 |
tejbeer |
206 |
public void setAddress(CustomAddress address) {
|
|
|
207 |
this.address = address;
|
|
|
208 |
}
|
| 30219 |
tejbeer |
209 |
|
| 31743 |
tejbeer |
210 |
public String getMobileNumber() {
|
|
|
211 |
return mobileNumber;
|
|
|
212 |
}
|
| 30219 |
tejbeer |
213 |
|
| 31743 |
tejbeer |
214 |
public void setMobileNumber(String mobileNumber) {
|
|
|
215 |
this.mobileNumber = mobileNumber;
|
|
|
216 |
}
|
| 30219 |
tejbeer |
217 |
|
| 31743 |
tejbeer |
218 |
public String getGstNumber() {
|
|
|
219 |
return gstNumber;
|
|
|
220 |
}
|
| 30219 |
tejbeer |
221 |
|
| 31743 |
tejbeer |
222 |
public String getEmail() {
|
|
|
223 |
return email;
|
|
|
224 |
}
|
| 30219 |
tejbeer |
225 |
|
| 31743 |
tejbeer |
226 |
public void setEmail(String email) {
|
|
|
227 |
this.email = email;
|
|
|
228 |
}
|
| 30219 |
tejbeer |
229 |
|
| 31743 |
tejbeer |
230 |
public void setGstNumber(String gstNumber) {
|
|
|
231 |
this.gstNumber = gstNumber;
|
|
|
232 |
}
|
| 30219 |
tejbeer |
233 |
|
| 31743 |
tejbeer |
234 |
public int getCartId() {
|
|
|
235 |
return cartId;
|
|
|
236 |
}
|
| 30219 |
tejbeer |
237 |
|
| 31743 |
tejbeer |
238 |
public void setCartId(int cartId) {
|
|
|
239 |
this.cartId = cartId;
|
|
|
240 |
}
|
| 30219 |
tejbeer |
241 |
|
| 31743 |
tejbeer |
242 |
public int getPartnerId() {
|
|
|
243 |
return partnerId;
|
|
|
244 |
}
|
| 30219 |
tejbeer |
245 |
|
| 31743 |
tejbeer |
246 |
public void setPartnerId(int partnerId) {
|
|
|
247 |
this.partnerId = partnerId;
|
|
|
248 |
}
|
| 30219 |
tejbeer |
249 |
|
| 31743 |
tejbeer |
250 |
public float getCounterPotential() {
|
|
|
251 |
return counterPotential;
|
|
|
252 |
}
|
|
|
253 |
|
|
|
254 |
public void setCounterPotential(float counterPotential) {
|
|
|
255 |
this.counterPotential = counterPotential;
|
|
|
256 |
}
|
|
|
257 |
|
| 21686 |
ashik.ali |
258 |
}
|