Subversion Repositories SmartDukaan

Rev

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

Rev 37279 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
 * One SKU (catalog.item row = one color) of a catalog with its consumer
4
 * One SKU (catalog.item row) of a catalog with its consumer prices. title is
5
 * prices. title is always derived from catalog.catalog. Exposes mop/mrp
5
 * always derived from catalog.catalog. Color is deliberately NOT exposed on
-
 
6
 * the external API (client decision 2026-08-12: irrelevant to partners).
6
 * ONLY — sellingPrice (dealer price) must never be added here.
7
 * Exposes mop/mrp ONLY — sellingPrice (dealer price) must never be added here.
7
 */
8
 */
8
public class CatalogSkuModel {
9
public class CatalogSkuModel {
9
 
10
 
10
    private int catalogId;
11
    private int catalogId;
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 Float mop;
18
    private Float mop;
19
    private Float mrp;
19
    private Float mrp;
20
    private boolean active;
20
    private boolean active;
21
    private Long updatedAt;
21
    private Long updatedAt;
Line 23... Line 23...
23
 
23
 
24
    public CatalogSkuModel() {
24
    public CatalogSkuModel() {
25
    }
25
    }
26
 
26
 
27
    public CatalogSkuModel(int catalogId, int itemId, String title, String brand, String modelName,
27
    public CatalogSkuModel(int catalogId, int itemId, String title, String brand, String modelName,
28
            String modelNumber, String color, String brandIdentifier, Float mop, Float mrp, boolean active,
28
            String modelNumber, String brandIdentifier, Float mop, Float mrp, boolean active,
29
            Long updatedAt, Long addedOn) {
29
            Long updatedAt, Long addedOn) {
30
        this.catalogId = catalogId;
30
        this.catalogId = catalogId;
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.mop = mop;
37
        this.mop = mop;
39
        this.mrp = mrp;
38
        this.mrp = mrp;
40
        this.active = active;
39
        this.active = active;
41
        this.updatedAt = updatedAt;
40
        this.updatedAt = updatedAt;
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) {