Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | 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;
179
 
180
        public Integer getId() {
181
            return id;
182
        }
183
 
184
        public void setId(Integer id) {
185
            this.id = id;
186
        }
187
 
188
        public String getName() {
189
            return name;
190
        }
191
 
192
        public void setName(String name) {
193
            this.name = name;
194
        }
195
 
196
        public String getThumbnailUrl() {
197
            return thumbnailUrl;
198
        }
199
 
200
        public void setThumbnailUrl(String thumbnailUrl) {
201
            this.thumbnailUrl = thumbnailUrl;
202
        }
203
 
204
 
205
        public Double getMinCartValue() {
206
            return minCartValue;
207
        }
208
 
209
        public void setMinCartValue(Double minCartValue) {
210
            this.minCartValue = minCartValue;
211
        }
212
 
213
        public Integer getMaxRedemptions() {
214
            return maxRedemptions;
215
        }
216
 
217
        public void setMaxRedemptions(Integer maxRedemptions) {
218
            this.maxRedemptions = maxRedemptions;
219
        }
220
 
221
        public String getProductCategory() {
222
            return productCategory;
223
        }
224
 
225
        public void setProductCategory(String productCategory) {
226
            this.productCategory = productCategory;
227
        }
228
 
229
        public String getFofoStore() {
230
            return fofoStore;
231
        }
232
 
233
        public void setFofoStore(String fofoStore) {
234
            this.fofoStore = fofoStore;
235
        }
236
 
237
        public Double getMaxCartValue() {
238
            return maxCartValue;
239
        }
240
 
241
        public void setMaxCartValue(Double maxCartValue) {
242
            this.maxCartValue = maxCartValue;
243
        }
244
 
245
 
246
    }
247
}