Subversion Repositories SmartDukaan

Rev

Rev 37149 | Rev 37279 | 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
 * One SKU (catalog.item row = one color) of a catalog with its consumer
4
 * One SKU (catalog.item row = one color) of a catalog with its consumer
5
 * prices. Exposes mop/mrp ONLY — sellingPrice (dealer price) must never be
5
 * prices. title is always derived from catalog.catalog. Exposes mop/mrp
6
 * added here.
6
 * ONLY — sellingPrice (dealer price) must never be added here.
7
 */
7
 */
8
public class CatalogSkuModel {
8
public class CatalogSkuModel {
9
 
9
 
10
    private int catalogId;
10
    private int catalogId;
11
    private int itemId;
11
    private int itemId;
-
 
12
    private String title;
12
    private String brand;
13
    private String brand;
13
    private String modelName;
14
    private String modelName;
14
    private String modelNumber;
15
    private String modelNumber;
15
    private String color;
16
    private String color;
-
 
17
    private String brandIdentifier;
16
    private Float mop;
18
    private Float mop;
17
    private Float mrp;
19
    private Float mrp;
18
    private boolean active;
20
    private boolean active;
19
    private Long updatedAt;
21
    private Long updatedAt;
20
 
22
 
21
    public CatalogSkuModel() {
23
    public CatalogSkuModel() {
22
    }
24
    }
23
 
25
 
24
    public CatalogSkuModel(int catalogId, int itemId, String brand, String modelName, String modelNumber,
26
    public CatalogSkuModel(int catalogId, int itemId, String title, String brand, String modelName,
25
            String color, Float mop, Float mrp, boolean active, Long updatedAt) {
27
            String modelNumber, String color, String brandIdentifier, Float mop, Float mrp, boolean active,
-
 
28
            Long updatedAt) {
26
        this.catalogId = catalogId;
29
        this.catalogId = catalogId;
27
        this.itemId = itemId;
30
        this.itemId = itemId;
-
 
31
        this.title = title;
28
        this.brand = brand;
32
        this.brand = brand;
29
        this.modelName = modelName;
33
        this.modelName = modelName;
30
        this.modelNumber = modelNumber;
34
        this.modelNumber = modelNumber;
31
        this.color = color;
35
        this.color = color;
-
 
36
        this.brandIdentifier = brandIdentifier;
32
        this.mop = mop;
37
        this.mop = mop;
33
        this.mrp = mrp;
38
        this.mrp = mrp;
34
        this.active = active;
39
        this.active = active;
35
        this.updatedAt = updatedAt;
40
        this.updatedAt = updatedAt;
36
    }
41
    }
Line 49... Line 54...
49
 
54
 
50
    public void setItemId(int itemId) {
55
    public void setItemId(int itemId) {
51
        this.itemId = itemId;
56
        this.itemId = itemId;
52
    }
57
    }
53
 
58
 
-
 
59
    public String getTitle() {
-
 
60
        return title;
-
 
61
    }
-
 
62
 
-
 
63
    public void setTitle(String title) {
-
 
64
        this.title = title;
-
 
65
    }
-
 
66
 
54
    public String getBrand() {
67
    public String getBrand() {
55
        return brand;
68
        return brand;
56
    }
69
    }
57
 
70
 
58
    public void setBrand(String brand) {
71
    public void setBrand(String brand) {
Line 81... Line 94...
81
 
94
 
82
    public void setColor(String color) {
95
    public void setColor(String color) {
83
        this.color = color;
96
        this.color = color;
84
    }
97
    }
85
 
98
 
-
 
99
    public String getBrandIdentifier() {
-
 
100
        return brandIdentifier;
-
 
101
    }
-
 
102
 
-
 
103
    public void setBrandIdentifier(String brandIdentifier) {
-
 
104
        this.brandIdentifier = brandIdentifier;
-
 
105
    }
-
 
106
 
86
    public Float getMop() {
107
    public Float getMop() {
87
        return mop;
108
        return mop;
88
    }
109
    }
89
 
110
 
90
    public void setMop(Float mop) {
111
    public void setMop(Float mop) {