Subversion Repositories SmartDukaan

Rev

Rev 36509 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
36509 ranu 1
package com.spice.profitmandi.dao.model;
2
 
3
/**
4
 * DTO for scheme-wise earnings summary (grouped by schemeId).
5
 * Used by the V2 scheme earnings endpoint.
6
 * rolledBack amounts are excluded at the query level (rolledBackTimestamp is null).
7
 */
8
public class SchemeEarningModel {
9
    private int schemeId;
10
    private String schemeName;
11
    private String schemeType;
12
    private String brand;
13
    private long unitCount;
14
    private double totalEarned;
15
 
16
    public SchemeEarningModel(int schemeId, String schemeName, String schemeType, String brand,
36525 ranu 17
                              Long unitCount, Double totalEarned) {
36509 ranu 18
        this.schemeId = schemeId;
19
        this.schemeName = schemeName;
20
        this.schemeType = schemeType;
21
        this.brand = brand;
36525 ranu 22
        this.unitCount = unitCount != null ? unitCount : 0L;
23
        this.totalEarned = totalEarned != null ? totalEarned : 0.0;
36509 ranu 24
    }
25
 
26
    public int getSchemeId() { return schemeId; }
27
    public void setSchemeId(int schemeId) { this.schemeId = schemeId; }
28
 
29
    public String getSchemeName() { return schemeName; }
30
    public void setSchemeName(String schemeName) { this.schemeName = schemeName; }
31
 
32
    public String getSchemeType() { return schemeType; }
33
    public void setSchemeType(String schemeType) { this.schemeType = schemeType; }
34
 
35
    public String getBrand() { return brand; }
36
    public void setBrand(String brand) { this.brand = brand; }
37
 
38
    public long getUnitCount() { return unitCount; }
39
    public void setUnitCount(long unitCount) { this.unitCount = unitCount; }
40
 
41
    public double getTotalEarned() { return totalEarned; }
42
    public void setTotalEarned(double totalEarned) { this.totalEarned = totalEarned; }
43
}