| 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 |
@Override
|
|
|
70 |
public boolean equals(Object o) {
|
|
|
71 |
if (this == o) return true;
|
|
|
72 |
if (o == null || getClass() != o.getClass()) return false;
|
|
|
73 |
OfferRowModel that = (OfferRowModel) o;
|
|
|
74 |
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.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) && Objects.equals(payout, that.payout) && payoutType == that.payoutType;
|
|
|
75 |
}
|
| 27877 |
amit.gupta |
76 |
|
| 30651 |
amit.gupta |
77 |
@Override
|
|
|
78 |
public int hashCode() {
|
|
|
79 |
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);
|
| 27877 |
amit.gupta |
80 |
}
|
|
|
81 |
|
| 30651 |
amit.gupta |
82 |
public List<String> getEligibleImeis() {
|
|
|
83 |
return eligibleImeis;
|
|
|
84 |
}
|
|
|
85 |
|
|
|
86 |
public void setEligibleImeis(List<String> eligibleImeis) {
|
|
|
87 |
this.eligibleImeis = eligibleImeis;
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
public String getPayoutCriteria() {
|
|
|
91 |
return payoutCriteria;
|
|
|
92 |
}
|
|
|
93 |
|
|
|
94 |
public void setPayoutValueDp(float payoutValueDp) {
|
|
|
95 |
this.payoutValueDp = payoutValueDp;
|
|
|
96 |
}
|
|
|
97 |
|
|
|
98 |
public void setPayoutCriteria(String payoutCriteria) {
|
|
|
99 |
this.payoutCriteria = payoutCriteria;
|
|
|
100 |
}
|
|
|
101 |
|
| 27877 |
amit.gupta |
102 |
public void setCurrentPayoutTarget(int currentPayoutTarget) {
|
|
|
103 |
this.currentPayoutTarget = currentPayoutTarget;
|
|
|
104 |
}
|
|
|
105 |
|
| 30651 |
amit.gupta |
106 |
public float getPayoutValueDp() {
|
|
|
107 |
return payoutValueDp;
|
| 27877 |
amit.gupta |
108 |
}
|
|
|
109 |
|
| 30651 |
amit.gupta |
110 |
public int getCurrentPayoutTarget() {
|
|
|
111 |
return currentPayoutTarget;
|
| 27877 |
amit.gupta |
112 |
}
|
|
|
113 |
|
|
|
114 |
public int getSoldValue() {
|
|
|
115 |
return soldValue;
|
|
|
116 |
}
|
|
|
117 |
|
|
|
118 |
public void setSoldValue(int soldValue) {
|
|
|
119 |
this.soldValue = soldValue;
|
|
|
120 |
}
|
|
|
121 |
|
| 27918 |
amit.gupta |
122 |
public AchievementType getTargetType() {
|
| 27877 |
amit.gupta |
123 |
return targetType;
|
|
|
124 |
}
|
|
|
125 |
|
| 27918 |
amit.gupta |
126 |
public void setTargetType(AchievementType targetType) {
|
| 27877 |
amit.gupta |
127 |
this.targetType = targetType;
|
|
|
128 |
}
|
|
|
129 |
|
| 30651 |
amit.gupta |
130 |
public List<String> getPendingImeis() {
|
|
|
131 |
return eligibleImeis;
|
| 27877 |
amit.gupta |
132 |
}
|
|
|
133 |
|
| 30651 |
amit.gupta |
134 |
public double setPayout(double payout) {
|
|
|
135 |
return this.payout = payout;
|
| 27877 |
amit.gupta |
136 |
}
|
|
|
137 |
|
|
|
138 |
public int getPayoutTargetAchieved() {
|
|
|
139 |
return payoutTargetAchieved;
|
|
|
140 |
}
|
|
|
141 |
|
|
|
142 |
public void setPayoutTargetAchieved(int payoutTargetAchieved) {
|
|
|
143 |
this.payoutTargetAchieved = payoutTargetAchieved;
|
|
|
144 |
}
|
|
|
145 |
|
|
|
146 |
public float getPayoutValue() {
|
|
|
147 |
return payoutValue;
|
|
|
148 |
}
|
|
|
149 |
|
|
|
150 |
public void setPayoutValue(float payoutValue) {
|
|
|
151 |
this.payoutValue = payoutValue;
|
|
|
152 |
}
|
|
|
153 |
|
|
|
154 |
public double getFinalPayout() {
|
|
|
155 |
return finalPayout;
|
|
|
156 |
}
|
|
|
157 |
|
|
|
158 |
public void setFinalPayout(double finalPayout) {
|
|
|
159 |
this.finalPayout = finalPayout;
|
|
|
160 |
}
|
|
|
161 |
|
| 30651 |
amit.gupta |
162 |
public double getPayout() {
|
|
|
163 |
return this.payout;
|
|
|
164 |
}
|
|
|
165 |
|
| 27877 |
amit.gupta |
166 |
public double getEligibleSaleDp() {
|
| 30651 |
amit.gupta |
167 |
return eligibleSaleDp;
|
|
|
168 |
}
|
| 27877 |
amit.gupta |
169 |
|
| 30651 |
amit.gupta |
170 |
public void setEligibleSaleDp(double eligibleSaleDp) {
|
|
|
171 |
this.eligibleSaleDp = eligibleSaleDp;
|
| 27877 |
amit.gupta |
172 |
}
|
|
|
173 |
|
| 30651 |
amit.gupta |
174 |
public double getTotalSale() {
|
|
|
175 |
return totalSale;
|
| 27877 |
amit.gupta |
176 |
}
|
|
|
177 |
|
| 30651 |
amit.gupta |
178 |
public void setTotalSale(double totalSale) {
|
|
|
179 |
this.totalSale = totalSale;
|
| 27877 |
amit.gupta |
180 |
}
|
|
|
181 |
|
| 30651 |
amit.gupta |
182 |
public String getStoreName() {
|
|
|
183 |
return storeName;
|
|
|
184 |
}
|
| 27877 |
amit.gupta |
185 |
|
| 30651 |
amit.gupta |
186 |
public void setStoreName(String storeName) {
|
|
|
187 |
this.storeName = storeName;
|
|
|
188 |
}
|
| 27877 |
amit.gupta |
189 |
|
| 30651 |
amit.gupta |
190 |
public int getFofoId() {
|
|
|
191 |
return fofoId;
|
|
|
192 |
}
|
| 27877 |
amit.gupta |
193 |
|
| 30651 |
amit.gupta |
194 |
public void setFofoId(int fofoId) {
|
|
|
195 |
this.fofoId = fofoId;
|
|
|
196 |
}
|
| 27877 |
amit.gupta |
197 |
|
| 30651 |
amit.gupta |
198 |
public int getMaxBrandSharePercentage() {
|
|
|
199 |
return maxBrandSharePercentage;
|
|
|
200 |
}
|
| 27877 |
amit.gupta |
201 |
|
| 30651 |
amit.gupta |
202 |
public void setMaxBrandSharePercentage(int maxBrandSharePercentage) {
|
|
|
203 |
this.maxBrandSharePercentage = maxBrandSharePercentage;
|
|
|
204 |
}
|
| 27877 |
amit.gupta |
205 |
|
| 30651 |
amit.gupta |
206 |
public double getEligibleSale() {
|
|
|
207 |
return eligibleSale;
|
|
|
208 |
}
|
| 27877 |
amit.gupta |
209 |
|
| 30651 |
amit.gupta |
210 |
public void setEligibleSale(double eligibleSale) {
|
|
|
211 |
this.eligibleSale = eligibleSale;
|
|
|
212 |
}
|
| 27877 |
amit.gupta |
213 |
|
| 30651 |
amit.gupta |
214 |
public double getAchievedTarget() {
|
|
|
215 |
return achievedTarget;
|
|
|
216 |
}
|
| 27877 |
amit.gupta |
217 |
|
| 30651 |
amit.gupta |
218 |
public void setAchievedTarget(double achievedTarget) {
|
|
|
219 |
this.achievedTarget = achievedTarget;
|
|
|
220 |
}
|
| 27877 |
amit.gupta |
221 |
|
| 30651 |
amit.gupta |
222 |
public double getNextTarget() {
|
|
|
223 |
return nextTarget;
|
|
|
224 |
}
|
| 27877 |
amit.gupta |
225 |
|
| 30651 |
amit.gupta |
226 |
public void setNextTarget(double nextTarget) {
|
|
|
227 |
this.nextTarget = nextTarget;
|
|
|
228 |
}
|
| 27877 |
amit.gupta |
229 |
|
| 30651 |
amit.gupta |
230 |
public String getBaseCriteria() {
|
|
|
231 |
return baseCriteria;
|
|
|
232 |
}
|
| 27877 |
amit.gupta |
233 |
|
| 30651 |
amit.gupta |
234 |
public void setBaseCriteria(String baseCriteria) {
|
|
|
235 |
this.baseCriteria = baseCriteria;
|
|
|
236 |
}
|
| 27877 |
amit.gupta |
237 |
|
| 30651 |
amit.gupta |
238 |
public AmountType getPayoutType() {
|
|
|
239 |
return payoutType;
|
|
|
240 |
}
|
| 27877 |
amit.gupta |
241 |
|
| 30651 |
amit.gupta |
242 |
public void setPayoutType(AmountType payoutType) {
|
|
|
243 |
this.payoutType = payoutType;
|
|
|
244 |
}
|
| 27877 |
amit.gupta |
245 |
|
| 30651 |
amit.gupta |
246 |
public double getTotalBasePurchaseValue() {
|
|
|
247 |
return totalBasePurchaseValue;
|
|
|
248 |
}
|
| 27877 |
amit.gupta |
249 |
|
| 30651 |
amit.gupta |
250 |
public void setTotalBasePurchaseValue(double totalBasePurchaseValue) {
|
|
|
251 |
this.totalBasePurchaseValue = totalBasePurchaseValue;
|
|
|
252 |
}
|
|
|
253 |
}
|
| 27877 |
amit.gupta |
254 |
|