| 27877 |
amit.gupta |
1 |
package com.spice.profitmandi.dao.model;
|
|
|
2 |
|
| 30651 |
amit.gupta |
3 |
import com.spice.profitmandi.dao.enumuration.catalog.AchievementType;
|
|
|
4 |
import com.spice.profitmandi.dao.enumuration.catalog.AmountType;
|
|
|
5 |
|
| 27877 |
amit.gupta |
6 |
import java.util.List;
|
| 30651 |
amit.gupta |
7 |
import java.util.Objects;
|
| 27877 |
amit.gupta |
8 |
|
| 30651 |
amit.gupta |
9 |
public class OfferRowModel {
|
|
|
10 |
private String storeName;
|
|
|
11 |
private int fofoId;
|
|
|
12 |
private int maxBrandSharePercentage;
|
|
|
13 |
private double payoutPurchaseValue;
|
|
|
14 |
private double totalBasePurchaseValue;
|
|
|
15 |
private double eligibleSaleDp;
|
|
|
16 |
private String baseCriteria;
|
|
|
17 |
private double totalSale;
|
|
|
18 |
private double eligibleSale;
|
|
|
19 |
private List<String> eligibleImeis;
|
|
|
20 |
private double achievedTarget;
|
|
|
21 |
private double nextTarget;
|
|
|
22 |
private int soldValue;
|
|
|
23 |
private AchievementType targetType;
|
|
|
24 |
private int currentPayoutTarget;
|
|
|
25 |
private int payoutTargetAchieved;
|
|
|
26 |
private float payoutValue;
|
|
|
27 |
private float payoutValueDp;
|
|
|
28 |
private String payoutCriteria;
|
|
|
29 |
private double payout;
|
|
|
30 |
private double finalPayout;
|
|
|
31 |
private AmountType payoutType;
|
| 27877 |
amit.gupta |
32 |
|
| 30651 |
amit.gupta |
33 |
public double getPayoutPurchaseValue() {
|
|
|
34 |
return payoutPurchaseValue;
|
| 27877 |
amit.gupta |
35 |
}
|
|
|
36 |
|
| 30651 |
amit.gupta |
37 |
public void setPayoutPurchaseValue(double payoutPurchaseValue) {
|
|
|
38 |
this.payoutPurchaseValue = payoutPurchaseValue;
|
| 27877 |
amit.gupta |
39 |
}
|
|
|
40 |
|
| 30651 |
amit.gupta |
41 |
@Override
|
|
|
42 |
public String toString() {
|
|
|
43 |
return "OfferRowModel{" +
|
|
|
44 |
"storeName='" + storeName + '\'' +
|
|
|
45 |
", fofoId=" + fofoId +
|
|
|
46 |
", maxBrandSharePercentage=" + maxBrandSharePercentage +
|
|
|
47 |
", payoutPurchaseValue=" + payoutPurchaseValue +
|
|
|
48 |
", totalBasePurchaseValue=" + totalBasePurchaseValue +
|
|
|
49 |
", eligibleSaleDp=" + eligibleSaleDp +
|
|
|
50 |
", baseCriteria='" + baseCriteria + '\'' +
|
|
|
51 |
", totalSale=" + totalSale +
|
|
|
52 |
", eligibleSale=" + eligibleSale +
|
|
|
53 |
", eligibleImeis=" + eligibleImeis +
|
|
|
54 |
", achievedTarget=" + achievedTarget +
|
|
|
55 |
", nextTarget=" + nextTarget +
|
|
|
56 |
", soldValue=" + soldValue +
|
|
|
57 |
", targetType=" + targetType +
|
|
|
58 |
", currentPayoutTarget=" + currentPayoutTarget +
|
|
|
59 |
", payoutTargetAchieved=" + payoutTargetAchieved +
|
|
|
60 |
", payoutValue=" + payoutValue +
|
|
|
61 |
", payoutValueDp=" + payoutValueDp +
|
|
|
62 |
", payoutCriteria='" + payoutCriteria + '\'' +
|
|
|
63 |
", payout='" + payout + '\'' +
|
|
|
64 |
", finalPayout=" + finalPayout +
|
|
|
65 |
", payoutType=" + payoutType +
|
|
|
66 |
'}';
|
|
|
67 |
}
|
| 27877 |
amit.gupta |
68 |
|
| 30651 |
amit.gupta |
69 |
public List<String> getEligibleImeis() {
|
|
|
70 |
return eligibleImeis;
|
|
|
71 |
}
|
|
|
72 |
|
|
|
73 |
public void setEligibleImeis(List<String> eligibleImeis) {
|
|
|
74 |
this.eligibleImeis = eligibleImeis;
|
|
|
75 |
}
|
|
|
76 |
|
|
|
77 |
public String getPayoutCriteria() {
|
|
|
78 |
return payoutCriteria;
|
|
|
79 |
}
|
|
|
80 |
|
|
|
81 |
public void setPayoutValueDp(float payoutValueDp) {
|
|
|
82 |
this.payoutValueDp = payoutValueDp;
|
|
|
83 |
}
|
|
|
84 |
|
|
|
85 |
public void setPayoutCriteria(String payoutCriteria) {
|
|
|
86 |
this.payoutCriteria = payoutCriteria;
|
|
|
87 |
}
|
|
|
88 |
|
| 27877 |
amit.gupta |
89 |
public void setCurrentPayoutTarget(int currentPayoutTarget) {
|
|
|
90 |
this.currentPayoutTarget = currentPayoutTarget;
|
|
|
91 |
}
|
|
|
92 |
|
| 30651 |
amit.gupta |
93 |
public float getPayoutValueDp() {
|
|
|
94 |
return payoutValueDp;
|
| 27877 |
amit.gupta |
95 |
}
|
|
|
96 |
|
| 30651 |
amit.gupta |
97 |
public int getCurrentPayoutTarget() {
|
|
|
98 |
return currentPayoutTarget;
|
| 27877 |
amit.gupta |
99 |
}
|
|
|
100 |
|
|
|
101 |
public int getSoldValue() {
|
|
|
102 |
return soldValue;
|
|
|
103 |
}
|
|
|
104 |
|
|
|
105 |
public void setSoldValue(int soldValue) {
|
|
|
106 |
this.soldValue = soldValue;
|
|
|
107 |
}
|
|
|
108 |
|
| 27918 |
amit.gupta |
109 |
public AchievementType getTargetType() {
|
| 27877 |
amit.gupta |
110 |
return targetType;
|
|
|
111 |
}
|
|
|
112 |
|
| 27918 |
amit.gupta |
113 |
public void setTargetType(AchievementType targetType) {
|
| 27877 |
amit.gupta |
114 |
this.targetType = targetType;
|
|
|
115 |
}
|
|
|
116 |
|
| 30651 |
amit.gupta |
117 |
public List<String> getPendingImeis() {
|
|
|
118 |
return eligibleImeis;
|
| 27877 |
amit.gupta |
119 |
}
|
|
|
120 |
|
| 30651 |
amit.gupta |
121 |
public double setPayout(double payout) {
|
|
|
122 |
return this.payout = payout;
|
| 27877 |
amit.gupta |
123 |
}
|
|
|
124 |
|
|
|
125 |
public int getPayoutTargetAchieved() {
|
|
|
126 |
return payoutTargetAchieved;
|
|
|
127 |
}
|
|
|
128 |
|
|
|
129 |
public void setPayoutTargetAchieved(int payoutTargetAchieved) {
|
|
|
130 |
this.payoutTargetAchieved = payoutTargetAchieved;
|
|
|
131 |
}
|
|
|
132 |
|
|
|
133 |
public float getPayoutValue() {
|
|
|
134 |
return payoutValue;
|
|
|
135 |
}
|
|
|
136 |
|
|
|
137 |
public void setPayoutValue(float payoutValue) {
|
|
|
138 |
this.payoutValue = payoutValue;
|
|
|
139 |
}
|
|
|
140 |
|
|
|
141 |
public double getFinalPayout() {
|
|
|
142 |
return finalPayout;
|
|
|
143 |
}
|
|
|
144 |
|
|
|
145 |
public void setFinalPayout(double finalPayout) {
|
|
|
146 |
this.finalPayout = finalPayout;
|
|
|
147 |
}
|
|
|
148 |
|
| 30651 |
amit.gupta |
149 |
public double getPayout() {
|
|
|
150 |
return this.payout;
|
|
|
151 |
}
|
|
|
152 |
|
| 27877 |
amit.gupta |
153 |
public double getEligibleSaleDp() {
|
| 30651 |
amit.gupta |
154 |
return eligibleSaleDp;
|
|
|
155 |
}
|
| 27877 |
amit.gupta |
156 |
|
| 30651 |
amit.gupta |
157 |
public void setEligibleSaleDp(double eligibleSaleDp) {
|
|
|
158 |
this.eligibleSaleDp = eligibleSaleDp;
|
| 27877 |
amit.gupta |
159 |
}
|
|
|
160 |
|
| 30651 |
amit.gupta |
161 |
public double getTotalSale() {
|
|
|
162 |
return totalSale;
|
| 27877 |
amit.gupta |
163 |
}
|
|
|
164 |
|
| 30651 |
amit.gupta |
165 |
public void setTotalSale(double totalSale) {
|
|
|
166 |
this.totalSale = totalSale;
|
| 27877 |
amit.gupta |
167 |
}
|
|
|
168 |
|
| 30651 |
amit.gupta |
169 |
public String getStoreName() {
|
|
|
170 |
return storeName;
|
|
|
171 |
}
|
| 27877 |
amit.gupta |
172 |
|
| 30651 |
amit.gupta |
173 |
public void setStoreName(String storeName) {
|
|
|
174 |
this.storeName = storeName;
|
|
|
175 |
}
|
| 27877 |
amit.gupta |
176 |
|
| 30651 |
amit.gupta |
177 |
public int getFofoId() {
|
|
|
178 |
return fofoId;
|
|
|
179 |
}
|
| 27877 |
amit.gupta |
180 |
|
| 30651 |
amit.gupta |
181 |
public void setFofoId(int fofoId) {
|
|
|
182 |
this.fofoId = fofoId;
|
|
|
183 |
}
|
| 27877 |
amit.gupta |
184 |
|
| 30651 |
amit.gupta |
185 |
public int getMaxBrandSharePercentage() {
|
|
|
186 |
return maxBrandSharePercentage;
|
|
|
187 |
}
|
| 27877 |
amit.gupta |
188 |
|
| 30651 |
amit.gupta |
189 |
public void setMaxBrandSharePercentage(int maxBrandSharePercentage) {
|
|
|
190 |
this.maxBrandSharePercentage = maxBrandSharePercentage;
|
|
|
191 |
}
|
| 27877 |
amit.gupta |
192 |
|
| 30651 |
amit.gupta |
193 |
public double getEligibleSale() {
|
|
|
194 |
return eligibleSale;
|
|
|
195 |
}
|
| 27877 |
amit.gupta |
196 |
|
| 30651 |
amit.gupta |
197 |
public void setEligibleSale(double eligibleSale) {
|
|
|
198 |
this.eligibleSale = eligibleSale;
|
|
|
199 |
}
|
| 27877 |
amit.gupta |
200 |
|
| 30651 |
amit.gupta |
201 |
public double getAchievedTarget() {
|
|
|
202 |
return achievedTarget;
|
|
|
203 |
}
|
| 27877 |
amit.gupta |
204 |
|
| 30651 |
amit.gupta |
205 |
public void setAchievedTarget(double achievedTarget) {
|
|
|
206 |
this.achievedTarget = achievedTarget;
|
|
|
207 |
}
|
| 27877 |
amit.gupta |
208 |
|
| 30651 |
amit.gupta |
209 |
public double getNextTarget() {
|
|
|
210 |
return nextTarget;
|
|
|
211 |
}
|
| 27877 |
amit.gupta |
212 |
|
| 30651 |
amit.gupta |
213 |
public void setNextTarget(double nextTarget) {
|
|
|
214 |
this.nextTarget = nextTarget;
|
|
|
215 |
}
|
| 27877 |
amit.gupta |
216 |
|
| 30651 |
amit.gupta |
217 |
public String getBaseCriteria() {
|
|
|
218 |
return baseCriteria;
|
|
|
219 |
}
|
| 27877 |
amit.gupta |
220 |
|
| 30651 |
amit.gupta |
221 |
public void setBaseCriteria(String baseCriteria) {
|
|
|
222 |
this.baseCriteria = baseCriteria;
|
|
|
223 |
}
|
| 27877 |
amit.gupta |
224 |
|
| 30651 |
amit.gupta |
225 |
public AmountType getPayoutType() {
|
|
|
226 |
return payoutType;
|
|
|
227 |
}
|
| 27877 |
amit.gupta |
228 |
|
| 30651 |
amit.gupta |
229 |
public void setPayoutType(AmountType payoutType) {
|
|
|
230 |
this.payoutType = payoutType;
|
|
|
231 |
}
|
| 27877 |
amit.gupta |
232 |
|
| 30651 |
amit.gupta |
233 |
public double getTotalBasePurchaseValue() {
|
|
|
234 |
return totalBasePurchaseValue;
|
|
|
235 |
}
|
| 27877 |
amit.gupta |
236 |
|
| 30651 |
amit.gupta |
237 |
public void setTotalBasePurchaseValue(double totalBasePurchaseValue) {
|
|
|
238 |
this.totalBasePurchaseValue = totalBasePurchaseValue;
|
|
|
239 |
}
|
| 31778 |
amit.gupta |
240 |
|
|
|
241 |
private List<String> billingPendingImeis;
|
|
|
242 |
|
|
|
243 |
public List<String> getBillingPendingImeis() {
|
|
|
244 |
return billingPendingImeis;
|
|
|
245 |
}
|
|
|
246 |
|
|
|
247 |
public void setBillingPendingImeis(List<String> billingPendingImeis) {
|
|
|
248 |
this.billingPendingImeis = billingPendingImeis;
|
|
|
249 |
}
|
|
|
250 |
|
|
|
251 |
@Override
|
|
|
252 |
public boolean equals(Object o) {
|
|
|
253 |
if (this == o) return true;
|
|
|
254 |
if (o == null || getClass() != o.getClass()) return false;
|
|
|
255 |
OfferRowModel that = (OfferRowModel) o;
|
|
|
256 |
return fofoId == that.fofoId && maxBrandSharePercentage == that.maxBrandSharePercentage && Double.compare(that.payoutPurchaseValue, payoutPurchaseValue) == 0 && Double.compare(that.totalBasePurchaseValue, totalBasePurchaseValue) == 0 && Double.compare(that.eligibleSaleDp, eligibleSaleDp) == 0 && Double.compare(that.totalSale, totalSale) == 0 && Double.compare(that.eligibleSale, eligibleSale) == 0 && Double.compare(that.achievedTarget, achievedTarget) == 0 && Double.compare(that.nextTarget, nextTarget) == 0 && soldValue == that.soldValue && currentPayoutTarget == that.currentPayoutTarget && payoutTargetAchieved == that.payoutTargetAchieved && Float.compare(that.payoutValue, payoutValue) == 0 && Float.compare(that.payoutValueDp, payoutValueDp) == 0 && Double.compare(that.payout, payout) == 0 && Double.compare(that.finalPayout, finalPayout) == 0 && Objects.equals(storeName, that.storeName) && Objects.equals(baseCriteria, that.baseCriteria) && Objects.equals(eligibleImeis, that.eligibleImeis) && targetType == that.targetType && Objects.equals(payoutCriteria, that.payoutCriteria) && payoutType == that.payoutType && Objects.equals(billingPendingImeis, that.billingPendingImeis);
|
|
|
257 |
}
|
|
|
258 |
|
|
|
259 |
@Override
|
|
|
260 |
public int hashCode() {
|
|
|
261 |
return Objects.hash(storeName, fofoId, maxBrandSharePercentage, payoutPurchaseValue, totalBasePurchaseValue, eligibleSaleDp, baseCriteria, totalSale, eligibleSale, eligibleImeis, achievedTarget, nextTarget, soldValue, targetType, currentPayoutTarget, payoutTargetAchieved, payoutValue, payoutValueDp, payoutCriteria, payout, finalPayout, payoutType, billingPendingImeis);
|
|
|
262 |
}
|
| 30651 |
amit.gupta |
263 |
}
|
| 27877 |
amit.gupta |
264 |
|