Subversion Repositories SmartDukaan

Rev

Rev 37149 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37149 Rev 37206
Line 1... Line 1...
1
package com.spice.profitmandi.dao.model.external;
1
package com.spice.profitmandi.dao.model.external;
2
 
2
 
3
/**
3
/**
4
 * Per-store stock + consumer price for one SKU. Exposes mop/mrp ONLY —
4
 * Per-store stock + consumer price for one SKU, with item identity fields.
-
 
5
 * title is always derived from catalog.catalog. Exposes mop/mrp ONLY —
5
 * sellingPrice (dealer price) must never be added here.
6
 * sellingPrice (dealer price) must never be added here.
6
 */
7
 */
7
public class StoreSkuModel {
8
public class StoreSkuModel {
8
 
9
 
9
    private int storeId;
10
    private int storeId;
10
    private int itemId;
11
    private int itemId;
-
 
12
    private String title;
-
 
13
    private String brand;
-
 
14
    private String modelName;
-
 
15
    private String modelNumber;
-
 
16
    private String color;
-
 
17
    private String brandIdentifier;
11
    private int availability;
18
    private int availability;
12
    private Float mop;
19
    private Float mop;
13
    private Float mrp;
20
    private Float mrp;
14
    private boolean active;
21
    private boolean active;
15
    private Long updatedAt;
22
    private Long updatedAt;
16
 
23
 
17
    public StoreSkuModel() {
24
    public StoreSkuModel() {
18
    }
25
    }
19
 
26
 
-
 
27
    public StoreSkuModel(int storeId, int itemId, String title, String brand, String modelName, String modelNumber,
20
    public StoreSkuModel(int storeId, int itemId, int availability, Float mop, Float mrp, boolean active,
28
            String color, String brandIdentifier, int availability, Float mop, Float mrp, boolean active,
21
            Long updatedAt) {
29
            Long updatedAt) {
22
        this.storeId = storeId;
30
        this.storeId = storeId;
23
        this.itemId = itemId;
31
        this.itemId = itemId;
-
 
32
        this.title = title;
-
 
33
        this.brand = brand;
-
 
34
        this.modelName = modelName;
-
 
35
        this.modelNumber = modelNumber;
-
 
36
        this.color = color;
-
 
37
        this.brandIdentifier = brandIdentifier;
24
        this.availability = availability;
38
        this.availability = availability;
25
        this.mop = mop;
39
        this.mop = mop;
26
        this.mrp = mrp;
40
        this.mrp = mrp;
27
        this.active = active;
41
        this.active = active;
28
        this.updatedAt = updatedAt;
42
        this.updatedAt = updatedAt;
Line 42... Line 56...
42
 
56
 
43
    public void setItemId(int itemId) {
57
    public void setItemId(int itemId) {
44
        this.itemId = itemId;
58
        this.itemId = itemId;
45
    }
59
    }
46
 
60
 
-
 
61
    public String getTitle() {
-
 
62
        return title;
-
 
63
    }
-
 
64
 
-
 
65
    public void setTitle(String title) {
-
 
66
        this.title = title;
-
 
67
    }
-
 
68
 
-
 
69
    public String getBrand() {
-
 
70
        return brand;
-
 
71
    }
-
 
72
 
-
 
73
    public void setBrand(String brand) {
-
 
74
        this.brand = brand;
-
 
75
    }
-
 
76
 
-
 
77
    public String getModelName() {
-
 
78
        return modelName;
-
 
79
    }
-
 
80
 
-
 
81
    public void setModelName(String modelName) {
-
 
82
        this.modelName = modelName;
-
 
83
    }
-
 
84
 
-
 
85
    public String getModelNumber() {
-
 
86
        return modelNumber;
-
 
87
    }
-
 
88
 
-
 
89
    public void setModelNumber(String modelNumber) {
-
 
90
        this.modelNumber = modelNumber;
-
 
91
    }
-
 
92
 
-
 
93
    public String getColor() {
-
 
94
        return color;
-
 
95
    }
-
 
96
 
-
 
97
    public void setColor(String color) {
-
 
98
        this.color = color;
-
 
99
    }
-
 
100
 
-
 
101
    public String getBrandIdentifier() {
-
 
102
        return brandIdentifier;
-
 
103
    }
-
 
104
 
-
 
105
    public void setBrandIdentifier(String brandIdentifier) {
-
 
106
        this.brandIdentifier = brandIdentifier;
-
 
107
    }
-
 
108
 
47
    public int getAvailability() {
109
    public int getAvailability() {
48
        return availability;
110
        return availability;
49
    }
111
    }
50
 
112
 
51
    public void setAvailability(int availability) {
113
    public void setAvailability(int availability) {