| 36509 |
ranu |
1 |
package com.spice.profitmandi.dao.model;
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* DTO for offer-wise earnings summary (grouped by offerId).
|
|
|
5 |
* Used by the V2 offer earnings endpoint.
|
|
|
6 |
* Rejected payouts (rejectTimestamp IS NOT NULL) are excluded.
|
|
|
7 |
*/
|
|
|
8 |
public class OfferEarningModel {
|
|
|
9 |
private long offerId;
|
|
|
10 |
private String offerName;
|
|
|
11 |
private String schemeType;
|
|
|
12 |
private long unitCount;
|
|
|
13 |
private double totalEarned;
|
|
|
14 |
|
|
|
15 |
public OfferEarningModel(long offerId, String offerName, String schemeType,
|
|
|
16 |
long unitCount, double totalEarned) {
|
|
|
17 |
this.offerId = offerId;
|
|
|
18 |
this.offerName = offerName;
|
|
|
19 |
this.schemeType = schemeType;
|
|
|
20 |
this.unitCount = unitCount;
|
|
|
21 |
this.totalEarned = totalEarned;
|
|
|
22 |
}
|
|
|
23 |
|
|
|
24 |
public long getOfferId() { return offerId; }
|
|
|
25 |
public void setOfferId(long offerId) { this.offerId = offerId; }
|
|
|
26 |
|
|
|
27 |
public String getOfferName() { return offerName; }
|
|
|
28 |
public void setOfferName(String offerName) { this.offerName = offerName; }
|
|
|
29 |
|
|
|
30 |
public String getSchemeType() { return schemeType; }
|
|
|
31 |
public void setSchemeType(String schemeType) { this.schemeType = schemeType; }
|
|
|
32 |
|
|
|
33 |
public long getUnitCount() { return unitCount; }
|
|
|
34 |
public void setUnitCount(long unitCount) { this.unitCount = unitCount; }
|
|
|
35 |
|
|
|
36 |
public double getTotalEarned() { return totalEarned; }
|
|
|
37 |
public void setTotalEarned(double totalEarned) { this.totalEarned = totalEarned; }
|
|
|
38 |
}
|