Subversion Repositories SmartDukaan

Rev

Rev 37206 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37206 Rev 37295
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, with item identity fields.
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
 * title is always derived from catalog.catalog. Color is deliberately NOT
-
 
6
 * exposed on the external API (client decision 2026-08-12). Exposes mop/mrp
6
 * sellingPrice (dealer price) must never be added here.
7
 * ONLY — sellingPrice (dealer price) must never be added here.
7
 */
8
 */
8
public class StoreSkuModel {
9
public class StoreSkuModel {
9
 
10
 
10
    private int storeId;
11
    private int storeId;
11
    private int itemId;
12
    private int itemId;
12
    private String title;
13
    private String title;
13
    private String brand;
14
    private String brand;
14
    private String modelName;
15
    private String modelName;
15
    private String modelNumber;
16
    private String modelNumber;
16
    private String color;
-
 
17
    private String brandIdentifier;
17
    private String brandIdentifier;
18
    private int availability;
18
    private int availability;
19
    private Float mop;
19
    private Float mop;
20
    private Float mrp;
20
    private Float mrp;
21
    private boolean active;
21
    private boolean active;
Line 23... Line 23...
23
 
23
 
24
    public StoreSkuModel() {
24
    public StoreSkuModel() {
25
    }
25
    }
26
 
26
 
27
    public StoreSkuModel(int storeId, int itemId, String title, String brand, String modelName, String modelNumber,
27
    public StoreSkuModel(int storeId, int itemId, String title, String brand, String modelName, String modelNumber,
28
            String color, String brandIdentifier, int availability, Float mop, Float mrp, boolean active,
28
            String brandIdentifier, int availability, Float mop, Float mrp, boolean active,
29
            Long updatedAt) {
29
            Long updatedAt) {
30
        this.storeId = storeId;
30
        this.storeId = storeId;
31
        this.itemId = itemId;
31
        this.itemId = itemId;
32
        this.title = title;
32
        this.title = title;
33
        this.brand = brand;
33
        this.brand = brand;
34
        this.modelName = modelName;
34
        this.modelName = modelName;
35
        this.modelNumber = modelNumber;
35
        this.modelNumber = modelNumber;
36
        this.color = color;
-
 
37
        this.brandIdentifier = brandIdentifier;
36
        this.brandIdentifier = brandIdentifier;
38
        this.availability = availability;
37
        this.availability = availability;
39
        this.mop = mop;
38
        this.mop = mop;
40
        this.mrp = mrp;
39
        this.mrp = mrp;
41
        this.active = active;
40
        this.active = active;
Line 88... Line 87...
88
 
87
 
89
    public void setModelNumber(String modelNumber) {
88
    public void setModelNumber(String modelNumber) {
90
        this.modelNumber = modelNumber;
89
        this.modelNumber = modelNumber;
91
    }
90
    }
92
 
91
 
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() {
92
    public String getBrandIdentifier() {
102
        return brandIdentifier;
93
        return brandIdentifier;
103
    }
94
    }
104
 
95
 
105
    public void setBrandIdentifier(String brandIdentifier) {
96
    public void setBrandIdentifier(String brandIdentifier) {