Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
37089 amit 1
package com.spice.profitmandi.dao.model;
2
 
3
/**
4
 * Month-bucketed, per-brand collapse of the offer-payout query. The per-IMEI detail of
5
 * {@code OfferPayoutImeiIncomeModel} is only ever reduced to brand-wise purchase/sale payout sums by
6
 * the earnings computation, so a single range query can return per-(yyyymm, brand) sums directly
7
 * instead of one per-IMEI query per month. Sums are identical to grouping per-IMEI then per-brand.
8
 */
9
public class MonthlyOfferPayoutModel {
10
 
11
    private int yearMonth;
12
    private String brand;
13
    private double purchasePayout;
14
    private double salePayout;
15
 
16
    public MonthlyOfferPayoutModel(int yearMonth, String brand, double purchasePayout, double salePayout) {
17
        this.yearMonth = yearMonth;
18
        this.brand = brand;
19
        this.purchasePayout = purchasePayout;
20
        this.salePayout = salePayout;
21
    }
22
 
23
    public int getYearMonth() {
24
        return yearMonth;
25
    }
26
 
27
    public String getBrand() {
28
        return brand;
29
    }
30
 
31
    public double getPurchasePayout() {
32
        return purchasePayout;
33
    }
34
 
35
    public double getSalePayout() {
36
        return salePayout;
37
    }
38
}