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