Subversion Repositories SmartDukaan

Rev

Rev 34474 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
34474 aman.kumar 1
package com.spice.profitmandi.dao.entity.scratch;
2
 
3
import javax.persistence.Column;
4
import java.time.LocalDate;
5
import java.util.List;
6
 
7
// ScratchRequest.java
8
public class ScratchRequest {
9
    // Offer Fields
10
    private int id;
11
    private String name;
12
    private String description;
13
    private String offerImage;
14
    private String offerType;
15
    private LocalDate startDate;
16
    private LocalDate endDate;
17
    private String termsCondition;
18
    private Integer userLimit;
19
    private Integer scratchValidity;
20
    private String productCategory;
21
    private String paymentMethod;
22
    private String classification;
23
    // Gift Fields (nested list)
24
    private List<GiftData> gifts;
25
    @Column(name = "isActive")
26
    private boolean active;
27
 
28
    public int getId() {
29
        return id;
30
    }
31
 
32
    public void setId(int id) {
33
        this.id = id;
34
    }
35
 
36
    public String getName() {
37
        return name;
38
    }
39
 
40
    public void setName(String name) {
41
        this.name = name;
42
    }
43
 
44
    public String getDescription() {
45
        return description;
46
    }
47
 
48
    public void setDescription(String description) {
49
        this.description = description;
50
    }
51
 
52
    public String getOfferImage() {
53
        return offerImage;
54
    }
55
 
56
    public void setOfferImage(String offerImage) {
57
        this.offerImage = offerImage;
58
    }
59
 
60
    public LocalDate getStartDate() {
61
        return startDate;
62
    }
63
 
64
    public void setStartDate(LocalDate startDate) {
65
        this.startDate = startDate;
66
    }
67
 
68
    public LocalDate getEndDate() {
69
        return endDate;
70
    }
71
 
72
    public void setEndDate(LocalDate endDate) {
73
        this.endDate = endDate;
74
    }
75
 
76
    public String getTermsCondition() {
77
        return termsCondition;
78
    }
79
 
80
    public void setTermsCondition(String termsCondition) {
81
        this.termsCondition = termsCondition;
82
    }
83
 
84
    public Integer getUserLimit() {
85
        return userLimit;
86
    }
87
 
88
    public void setUserLimit(Integer userLimit) {
89
        this.userLimit = userLimit;
90
    }
91
 
92
    public Integer getScratchValidity() {
93
        return scratchValidity;
94
    }
95
 
96
    public void setScratchValidity(Integer scratchValidity) {
97
        this.scratchValidity = scratchValidity;
98
    }
99
 
100
    public String getProductCategory() {
101
        return productCategory;
102
    }
103
 
104
    public void setProductCategory(String productCategory) {
105
        this.productCategory = productCategory;
106
    }
107
 
108
    public String getPaymentMethod() {
109
        return paymentMethod;
110
    }
111
 
112
    public void setPaymentMethod(String paymentMethod) {
113
        this.paymentMethod = paymentMethod;
114
    }
115
 
116
    public List<GiftData> getGifts() {
117
        return gifts;
118
    }
119
 
120
    public void setGifts(List<GiftData> gifts) {
121
        this.gifts = gifts;
122
    }
123
 
124
    public String getOfferType() {
125
        return offerType;
126
    }
127
 
128
    public void setOfferType(String offerType) {
129
        this.offerType = offerType;
130
    }
131
 
132
    public boolean isActive() {
133
        return active;
134
    }
135
 
136
    public void setActive(boolean active) {
137
        this.active = active;
138
    }
139
 
140
    public String getClassification() {
141
        return classification;
142
    }
143
 
144
    public void setClassification(String classification) {
145
        this.classification = classification;
146
    }
147
 
148
    @Override
149
    public String toString() {
150
        return "ScratchRequest{" +
151
                "id=" + id +
152
                ", name='" + name + '\'' +
153
                ", description='" + description + '\'' +
154
                ", offerImage='" + offerImage + '\'' +
155
                ", offerType='" + offerType + '\'' +
156
                ", startDate=" + startDate +
157
                ", endDate=" + endDate +
158
                ", termsCondition='" + termsCondition + '\'' +
159
                ", userLimit=" + userLimit +
160
                ", scratchValidity=" + scratchValidity +
161
                ", productCategory='" + productCategory + '\'' +
162
                ", paymentMethod='" + paymentMethod + '\'' +
163
                ", gifts=" + gifts +
164
                ", active=" + active +
165
                ", classification=" + classification +
166
                '}';
167
    }
168
 
169
    // Inner class for Gift data
170
    public static class GiftData {
171
        private Integer id;
172
        private String name;
173
        private String thumbnailUrl;
174
        private Double minCartValue;
175
        private Integer maxRedemptions;
176
        private String productCategory;
177
        private String fofoStore;
178
        private Double maxCartValue;
35253 aman 179
        private Boolean isDefault;
34474 aman.kumar 180
 
35253 aman 181
 
34474 aman.kumar 182
        public Integer getId() {
183
            return id;
184
        }
185
 
186
        public void setId(Integer id) {
187
            this.id = id;
188
        }
189
 
190
        public String getName() {
191
            return name;
192
        }
193
 
194
        public void setName(String name) {
195
            this.name = name;
196
        }
197
 
198
        public String getThumbnailUrl() {
199
            return thumbnailUrl;
200
        }
201
 
202
        public void setThumbnailUrl(String thumbnailUrl) {
203
            this.thumbnailUrl = thumbnailUrl;
204
        }
205
 
206
 
207
        public Double getMinCartValue() {
208
            return minCartValue;
209
        }
210
 
211
        public void setMinCartValue(Double minCartValue) {
212
            this.minCartValue = minCartValue;
213
        }
214
 
215
        public Integer getMaxRedemptions() {
216
            return maxRedemptions;
217
        }
218
 
219
        public void setMaxRedemptions(Integer maxRedemptions) {
220
            this.maxRedemptions = maxRedemptions;
221
        }
222
 
223
        public String getProductCategory() {
224
            return productCategory;
225
        }
226
 
227
        public void setProductCategory(String productCategory) {
228
            this.productCategory = productCategory;
229
        }
230
 
231
        public String getFofoStore() {
232
            return fofoStore;
233
        }
234
 
235
        public void setFofoStore(String fofoStore) {
236
            this.fofoStore = fofoStore;
237
        }
238
 
239
        public Double getMaxCartValue() {
240
            return maxCartValue;
241
        }
242
 
243
        public void setMaxCartValue(Double maxCartValue) {
244
            this.maxCartValue = maxCartValue;
245
        }
246
 
35253 aman 247
        public Boolean isDefault() {
248
            return isDefault;
249
        }
34474 aman.kumar 250
 
35253 aman 251
        public void setIsDefault(Boolean aDefault) {
252
            isDefault = aDefault;
253
        }
34474 aman.kumar 254
    }
255
}