| Line 20... |
Line 20... |
| 20 |
private boolean baseCriteria;
|
20 |
private boolean baseCriteria;
|
| 21 |
private String name;
|
21 |
private String name;
|
| 22 |
private boolean booster;
|
22 |
private boolean booster;
|
| 23 |
private LocalDateTime startDate;
|
23 |
private LocalDateTime startDate;
|
| 24 |
private LocalDateTime endDate;
|
24 |
private LocalDateTime endDate;
|
| - |
|
25 |
private LocalDateTime processTimestamp;
|
| 25 |
private String offerNotes;
|
26 |
private String offerNotes;
|
| 26 |
private String terms;
|
27 |
private String terms;
|
| 27 |
private AchievementType targetType;
|
28 |
private AchievementType targetType;
|
| 28 |
private AchievementType payoutType;
|
29 |
private AchievementType payoutType;
|
| 29 |
private String activationBrands;
|
30 |
private String activationBrands;
|
| 30 |
private OfferSchemeType schemeType;
|
31 |
private OfferSchemeType schemeType;
|
| 31 |
private double sellinPercentage;
|
32 |
private double sellinPercentage;
|
| 32 |
|
33 |
|
| - |
|
34 |
private double brandShareTerms;
|
| - |
|
35 |
private ItemCriteria itemCriteria;
|
| - |
|
36 |
private String itemCriteriaString;
|
| - |
|
37 |
private LocalDateTime createdOn;
|
| - |
|
38 |
private List<TargetSlab> targetSlabs;
|
| - |
|
39 |
private PartnerCriteria partnerCriteria;
|
| - |
|
40 |
private String partnerCriteriaString;
|
| - |
|
41 |
|
| - |
|
42 |
|
| - |
|
43 |
public LocalDateTime getProcessTimestamp() {
|
| - |
|
44 |
return processTimestamp;
|
| - |
|
45 |
}
|
| - |
|
46 |
|
| - |
|
47 |
public void setProcessTimestamp(LocalDateTime processTimestamp) {
|
| - |
|
48 |
this.processTimestamp = processTimestamp;
|
| - |
|
49 |
}
|
| - |
|
50 |
|
| 33 |
@Override
|
51 |
@Override
|
| 34 |
public String toString() {
|
52 |
public String toString() {
|
| 35 |
return "CreateOfferRequest{" +
|
53 |
return "CreateOfferRequest{" +
|
| 36 |
"id=" + id +
|
54 |
"id=" + id +
|
| 37 |
", active=" + active +
|
55 |
", active=" + active +
|
| 38 |
", baseCriteria=" + baseCriteria +
|
56 |
", baseCriteria=" + baseCriteria +
|
| 39 |
", name='" + name + '\'' +
|
57 |
", name='" + name + '\'' +
|
| 40 |
", booster=" + booster +
|
58 |
", booster=" + booster +
|
| 41 |
", startDate=" + startDate +
|
59 |
", startDate=" + startDate +
|
| 42 |
", endDate=" + endDate +
|
60 |
", endDate=" + endDate +
|
| - |
|
61 |
", processTimestamp=" + processTimestamp +
|
| 43 |
", offerNotes='" + offerNotes + '\'' +
|
62 |
", offerNotes='" + offerNotes + '\'' +
|
| 44 |
", terms='" + terms + '\'' +
|
63 |
", terms='" + terms + '\'' +
|
| 45 |
", targetType=" + targetType +
|
64 |
", targetType=" + targetType +
|
| 46 |
", payoutType=" + payoutType +
|
65 |
", payoutType=" + payoutType +
|
| 47 |
", activationBrands='" + activationBrands + '\'' +
|
66 |
", activationBrands='" + activationBrands + '\'' +
|
| Line 65... |
Line 84... |
| 65 |
@Override
|
84 |
@Override
|
| 66 |
public boolean equals(Object o) {
|
85 |
public boolean equals(Object o) {
|
| 67 |
if (this == o) return true;
|
86 |
if (this == o) return true;
|
| 68 |
if (o == null || getClass() != o.getClass()) return false;
|
87 |
if (o == null || getClass() != o.getClass()) return false;
|
| 69 |
CreateOfferRequest that = (CreateOfferRequest) o;
|
88 |
CreateOfferRequest that = (CreateOfferRequest) o;
|
| 70 |
return id == that.id && active == that.active && baseCriteria == that.baseCriteria && booster == that.booster && Double.compare(that.sellinPercentage, sellinPercentage) == 0 && Double.compare(that.brandShareTerms, brandShareTerms) == 0 && eligibleSale == that.eligibleSale && Objects.equals(name, that.name) && Objects.equals(startDate, that.startDate) && Objects.equals(endDate, that.endDate) && Objects.equals(offerNotes, that.offerNotes) && Objects.equals(terms, that.terms) && targetType == that.targetType && payoutType == that.payoutType && Objects.equals(activationBrands, that.activationBrands) && schemeType == that.schemeType && Objects.equals(itemCriteria, that.itemCriteria) && Objects.equals(itemCriteriaString, that.itemCriteriaString) && Objects.equals(createdOn, that.createdOn) && Objects.equals(targetSlabs, that.targetSlabs) && Objects.equals(partnerCriteria, that.partnerCriteria) && Objects.equals(partnerCriteriaString, that.partnerCriteriaString) && Objects.equals(nextTargetSlab, that.nextTargetSlab) && Objects.equals(currentTargetSlab, that.currentTargetSlab) && Objects.equals(currentTarget, that.currentTarget) && Objects.equals(nextTarget, that.nextTarget);
|
89 |
return id == that.id && active == that.active && baseCriteria == that.baseCriteria && booster == that.booster && Double.compare(that.sellinPercentage, sellinPercentage) == 0 && Double.compare(that.brandShareTerms, brandShareTerms) == 0 && eligibleSale == that.eligibleSale && Objects.equals(name, that.name) && Objects.equals(startDate, that.startDate) && Objects.equals(endDate, that.endDate) && Objects.equals(processTimestamp, that.processTimestamp) && Objects.equals(offerNotes, that.offerNotes) && Objects.equals(terms, that.terms) && targetType == that.targetType && payoutType == that.payoutType && Objects.equals(activationBrands, that.activationBrands) && schemeType == that.schemeType && Objects.equals(itemCriteria, that.itemCriteria) && Objects.equals(itemCriteriaString, that.itemCriteriaString) && Objects.equals(createdOn, that.createdOn) && Objects.equals(targetSlabs, that.targetSlabs) && Objects.equals(partnerCriteria, that.partnerCriteria) && Objects.equals(partnerCriteriaString, that.partnerCriteriaString) && Objects.equals(nextTargetSlab, that.nextTargetSlab) && Objects.equals(currentTargetSlab, that.currentTargetSlab) && Objects.equals(currentTarget, that.currentTarget) && Objects.equals(nextTarget, that.nextTarget);
|
| 71 |
}
|
90 |
}
|
| 72 |
|
91 |
|
| 73 |
@Override
|
92 |
@Override
|
| 74 |
public int hashCode() {
|
93 |
public int hashCode() {
|
| 75 |
return Objects.hash(id, active, baseCriteria, name, booster, startDate, endDate, offerNotes, terms, targetType, payoutType, activationBrands, schemeType, sellinPercentage, brandShareTerms, itemCriteria, itemCriteriaString, createdOn, targetSlabs, partnerCriteria, partnerCriteriaString, eligibleSale, nextTargetSlab, currentTargetSlab, currentTarget, nextTarget);
|
94 |
return Objects.hash(id, active, baseCriteria, name, booster, startDate, endDate, processTimestamp, offerNotes, terms, targetType, payoutType, activationBrands, schemeType, sellinPercentage, brandShareTerms, itemCriteria, itemCriteriaString, createdOn, targetSlabs, partnerCriteria, partnerCriteriaString, eligibleSale, nextTargetSlab, currentTargetSlab, currentTarget, nextTarget);
|
| 76 |
}
|
95 |
}
|
| 77 |
|
96 |
|
| 78 |
private double brandShareTerms;
|
- |
|
| 79 |
private ItemCriteria itemCriteria;
|
- |
|
| 80 |
private String itemCriteriaString;
|
- |
|
| 81 |
private LocalDateTime createdOn;
|
- |
|
| 82 |
private List<TargetSlab> targetSlabs;
|
- |
|
| 83 |
private PartnerCriteria partnerCriteria;
|
- |
|
| 84 |
private String partnerCriteriaString;
|
- |
|
| 85 |
|
- |
|
| 86 |
private static final Logger LOGGER = LogManager.getLogger(CreateOfferRequest.class);
|
97 |
private static final Logger LOGGER = LogManager.getLogger(CreateOfferRequest.class);
|
| 87 |
|
98 |
|
| 88 |
public int getEligibleSale() {
|
99 |
public int getEligibleSale() {
|
| 89 |
return eligibleSale;
|
100 |
return eligibleSale;
|
| 90 |
}
|
101 |
}
|