Subversion Repositories SmartDukaan

Rev

Rev 35284 | Rev 35297 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
22653 ashik.ali 1
package com.spice.profitmandi.dao.entity.fofo;
22418 ashik.ali 2
 
30046 tejbeer 3
import com.spice.profitmandi.common.enumuration.ActivationType;
29936 amit.gupta 4
import com.spice.profitmandi.common.enumuration.CounterSize;
5
import com.spice.profitmandi.common.enumuration.FofoType;
6
import com.spice.profitmandi.dao.entity.user.Address;
7
 
8
import javax.persistence.*;
22418 ashik.ali 9
import java.io.Serializable;
24349 amit.gupta 10
import java.time.LocalDate;
28166 tejbeer 11
import java.time.LocalDateTime;
35079 vikas 12
import java.util.Objects;
22418 ashik.ali 13
 
14
/**
15
 * This class basically contains store code details
32615 raveendra. 16
 *
22418 ashik.ali 17
 * @author ashikali
18
 */
19
@Entity
31730 tejbeer 20
@Table(name = "fofo.fofo_store")
27556 tejbeer 21
 
22
@NamedQueries({
23
 
32615 raveendra. 24
        @NamedQuery(name = "FofoStore.selectAllDtrUserIds", query = "select ua.userId from FofoStore fs join UserAccount ua on fs.id=ua.accountKey "
25
                + "where ua.type='saholic' and fs.internal=false and fs.active=true"),
29926 amit.gupta 26
 
32615 raveendra. 27
        @NamedQuery(name = "FofoStore.selectGroupByBrandWarehousePartnerSale", query = "select new com.spice.profitmandi.dao.model.BrandWisePartnerSaleModel(foi.brand, "
28
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then CAST(foi.quantity*foi.mop  AS integer ) else 0 end),"
29
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then foi.quantity  else 0 end),"
30
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then CAST(foi.quantity*foi.mop  AS integer ) else 0 end),"
31
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then foi.quantity else 0 end), "
32
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate  then CAST(foi.quantity*foi.mop  AS int) else 0 end), "
33
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate then foi.quantity else 0 end))"
34
                + " from FofoStore fs join FofoOrder fo on fs.id = fo.fofoId join FofoOrderItem foi on foi.orderId = fo.id  join Item i on i.id = foi.itemId  where fo.cancelledTimestamp is null and fs.active = true "
35
                + "and foi.createTimestamp >= :lmtdStartDate and i.categoryId = :categoryId and fs.id in :fofoId"
36
                + " group by foi.brand"),
35284 aman 37
        @NamedQuery(name = "FofoStore.selectGroupByBrandWarehousePartnerAccessoriesSale", query = "select new com.spice.profitmandi.dao.model.BrandWisePartnerSaleModel(foi.brand, "
38
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then CAST(foi.quantity*foi.mop  AS integer ) else 0 end),"
39
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then foi.quantity  else 0 end),"
40
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then CAST(foi.quantity*foi.mop  AS integer ) else 0 end),"
41
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then foi.quantity else 0 end), "
42
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate  then CAST(foi.quantity*foi.mop  AS int) else 0 end), "
43
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate then foi.quantity else 0 end))"
44
                + " from FofoStore fs join FofoOrder fo on fs.id = fo.fofoId join FofoOrderItem foi on foi.orderId = fo.id  join Item i on i.id = foi.itemId  where fo.cancelledTimestamp is null and fs.active = true "
45
                + "and foi.createTimestamp >= :lmtdStartDate and i.categoryId != :categoryId and fs.id in :fofoId"),
27594 tejbeer 46
 
32615 raveendra. 47
        @NamedQuery(name = "FofoStore.selectGroupByWarehouseBrandWisePartnerSale", query = "select new com.spice.profitmandi.dao.model.WarehouseWiseBrandSaleModel("
48
                + "(case when a.city in ('Noida', 'Ghaziabad')  and foi.brand = 'Vivo' then 7573 else fs.warehouseId end) AS col_0_0_,"
49
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then CAST(foi.quantity*foi.mop  AS int) else 0 end),"
50
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then foi.quantity  else 0 end),"
51
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then CAST(foi.quantity*foi.mop  AS int) else 0 end),"
52
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then foi.quantity else 0 end), "
53
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate  then CAST(foi.quantity*foi.mop  AS int) else 0 end), "
54
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate then foi.quantity else 0 end))"
55
                + " from FofoStore fs join FofoOrder fo on fs.id = fo.fofoId join FofoOrderItem foi on foi.orderId = fo.id  join Item i on i.id = foi.itemId"
56
                + " join com.spice.profitmandi.dao.entity.user.User u on u.id = fs.id join Address a on a.id = u.addressId"
57
                + " where fo.cancelledTimestamp is null and fs.active = true"
58
                + " and foi.createTimestamp >= :lmtdStartDate and foi.brand = :brand and i.categoryId = :categoryId and fs.id in :fofoId"
59
                + " group by col_0_0_"),
27556 tejbeer 60
 
32615 raveendra. 61
        @NamedQuery(name = "FofoStore.selectWarehouseBrandItemSale", query = "select new com.spice.profitmandi.dao.model.WarehouseBrandWiseItemSaleModel(fs.warehouseId,i.id, i.brand, i.modelName, i.modelNumber,i.color,"
62
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then CAST(foi.quantity*foi.mop  AS int) else 0 end),"
63
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then foi.quantity  else 0 end),"
64
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then CAST(foi.quantity*foi.mop  AS int) else 0 end),"
65
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then foi.quantity else 0 end), "
66
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate  then CAST(foi.quantity*foi.mop  AS int) else 0 end), "
67
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate then foi.quantity else 0 end))"
68
                + " from FofoStore fs join FofoOrder fo on fs.id = fo.fofoId join FofoOrderItem foi on foi.orderId = fo.id  join Item i on i.id = foi.itemId  where fo.cancelledTimestamp is null and fs.active = true"
69
                + " and  foi.createTimestamp >= :lmtdStartDate and fs.warehouseId in :warehouseId and i.brand = :brand and i.categoryId = :categoryId and fs.id in :fofoId group by i.id"),
27594 tejbeer 70
 
32615 raveendra. 71
        @NamedQuery(name = "FofoStore.selectGroupByBrandAccesoriesWarehousePartnerSale", query = "select new com.spice.profitmandi.dao.model.BrandWisePartnerSaleModel(foi.brand, "
72
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then CAST(foi.quantity*foi.mop  AS int) else 0 end),"
73
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then foi.quantity  else 0 end),"
74
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then CAST(foi.quantity*foi.mop  AS int) else 0 end),"
75
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then foi.quantity else 0 end), "
76
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate  then CAST(foi.quantity*foi.mop  AS int) else 0 end), "
77
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate then foi.quantity else 0 end))"
78
                + " from FofoStore fs join FofoOrder fo on fs.id = fo.fofoId join FofoOrderItem foi on foi.orderId = fo.id  join Item i on i.id = foi.itemId  where fo.cancelledTimestamp is null and fs.active = true "
79
                + "and foi.createTimestamp >= :lmtdStartDate and i.categoryId != :categoryId and fs.id in :fofoId"
80
                + " group by foi.brand"),
27556 tejbeer 81
 
32615 raveendra. 82
        @NamedQuery(name = "FofoStore.selectGroupByWarehouseAccesoriesBrandWisePartnerSale", query = "select new com.spice.profitmandi.dao.model.WarehouseWiseBrandSaleModel(fs.warehouseId,"
83
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then CAST(foi.quantity*foi.mop  AS int) else 0 end),"
84
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then foi.quantity  else 0 end),"
85
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then CAST(foi.quantity*foi.mop  AS int) else 0 end),"
86
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then foi.quantity else 0 end), "
87
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate  then CAST(foi.quantity*foi.mop  AS int) else 0 end), "
88
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate then foi.quantity else 0 end))"
89
                + " from FofoStore fs join FofoOrder fo on fs.id = fo.fofoId join FofoOrderItem foi on foi.orderId = fo.id  join Item i on i.id = foi.itemId  where fo.cancelledTimestamp is null and fs.active = true"
90
                + " and foi.createTimestamp >= :lmtdStartDate and foi.brand = :brand and i.categoryId != :categoryId and fs.id in :fofoId"
91
                + " group by fs.warehouseId"),
27592 tejbeer 92
 
32615 raveendra. 93
        @NamedQuery(name = "FofoStore.selectWarehouseAccesoriesBrandItemSale", query = "select new com.spice.profitmandi.dao.model.WarehouseBrandWiseItemSaleModel(fs.warehouseId,i.id, i.brand, i.modelName, i.modelNumber,i.color,"
94
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then CAST(foi.quantity*foi.mop  AS int) else 0 end),"
95
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :lms then foi.quantity  else 0 end),"
96
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then CAST(foi.quantity*foi.mop  AS int) else 0 end),"
97
                + "sum(case when concat(year(foi.createTimestamp), month(foi.createTimestamp))= :mtd  then foi.quantity else 0 end), "
98
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate  then CAST(foi.quantity*foi.mop  AS int) else 0 end), "
99
                + "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate then foi.quantity else 0 end))"
100
                + " from FofoStore fs join FofoOrder fo on fs.id = fo.fofoId join FofoOrderItem foi on foi.orderId = fo.id  join Item i on i.id = foi.itemId  where fo.cancelledTimestamp is null and fs.active = true"
101
                + " and  foi.createTimestamp >= :lmtdStartDate and fs.warehouseId in :warehouseId and i.brand = :brand and i.categoryId != :categoryId  and fs.id in :fofoId group by i.id"),
27556 tejbeer 102
 
32615 raveendra. 103
        @NamedQuery(name = "FofoStore.selectPartnerPendingIndentItem", query = "select new com.spice.profitmandi.dao.model.PartnerPendingIndentItemModel(o.retailerName,"
104
                + " li.quantity, li.totalPrice)"
105
                + " from FofoStore fs join Order o on fs.id = o.retailerId join  LineItem li on li.orderId = o.id "
106
                + " where li.itemId = :itemId and fs.warehouseId = :warehouseId and o.status = 3"),
27599 tejbeer 107
 
32615 raveendra. 108
        @NamedQuery(name = "FofoStore.selectUnbilledActivateStockGroupByBrand", query = "select new com.spice.profitmandi.dao.model.BrandWiseUnbilledActivateStockModel(i.brand,"
109
                + "  sum(case when concat(year(ai.activationTimestamp), month(ai.activationTimestamp)) = :almtd then 1 else 0 end),"
110
                + "  sum(case when concat(year(ai.activationTimestamp), month(ai.activationTimestamp)) = :almtd then CAST(tl.sellingPrice  AS int) else 0 end))"
111
                + " from FofoStore fs join InventoryItem ii on fs.id = ii.fofoId join ActivatedImei ai on ai.serialNumber = ii.serialNumber join Item i on i.id = ii.itemId join TagListing tl on tl.itemId = i.id"
112
                + " where fs.active = true and ii.goodQuantity >= 1 and fs.id in :fofoId group by i.brand"),
27670 tejbeer 113
 
32615 raveendra. 114
        @NamedQuery(name = "FofoStore.selectUnbilledActivateStockGroupByWarehouse", query = "select new com.spice.profitmandi.dao.model.WarehouseWiseBrandUnbilledActivatedModel(fs.warehouseId,"
115
                + "  sum(case when concat(year(ai.activationTimestamp), month(ai.activationTimestamp)) = :almtd then 1 else 0 end),"
116
                + "  sum(case when concat(year(ai.activationTimestamp), month(ai.activationTimestamp)) = :almtd then CAST(tl.sellingPrice  AS int) else 0 end))"
117
                + " from FofoStore fs join InventoryItem ii on fs.id = ii.fofoId join ActivatedImei ai on ai.serialNumber = ii.serialNumber join Item i on i.id = ii.itemId join TagListing tl on tl.itemId = i.id"
118
                + " where fs.active = true and ii.goodQuantity >= 1 and i.brand = :brand and fs.id in :fofoId group by fs.warehouseId"),
27670 tejbeer 119
 
32615 raveendra. 120
        @NamedQuery(name = "FofoStore.selectWarehouseBrandItemUnbilledActivateStock", query = "select new com.spice.profitmandi.dao.model.WarehouseBrandItemUnbilledActivatedModel(fs.warehouseId,i.id, i.brand, i.modelName, i.modelNumber,i.color,"
121
                + "  sum(case when concat(year(ai.activationTimestamp), month(ai.activationTimestamp)) = :almtd then 1 else 0 end),"
122
                + "  sum(case when concat(year(ai.activationTimestamp), month(ai.activationTimestamp)) = :almtd then CAST(tl.sellingPrice  AS int) else 0 end))"
123
                + " from FofoStore fs join InventoryItem ii on fs.id = ii.fofoId join ActivatedImei ai on ai.serialNumber = ii.serialNumber join Item i on i.id = ii.itemId join TagListing tl on tl.itemId = i.id"
124
                + " where fs.active = true and ii.goodQuantity >= 1 and i.brand = :brand and fs.warehouseId in :warehouseId and fs.id in :fofoId  group by i.id"),
27670 tejbeer 125
 
32615 raveendra. 126
        @NamedQuery(name = "FofoStore.selectGroupByBrandLms", query = "select new com.spice.profitmandi.dao.model.BrandWiseModel(foi.brand, DATE_FORMAT(fo.createTimestamp, :groupParameter),sum(cast(foi.mop*foi.quantity As int)))"
127
                + " from FofoStore fs join FofoOrder fo on fs.id = fo.fofoId join FofoOrderItem foi on foi.orderId = fo.id  join Item i on i.id = foi.itemId  where fo.cancelledTimestamp is null and fs.active = true "
128
                + " and (foi.createTimestamp between :lmsStartDate and :endDate) and i.categoryId = :categoryId and fs.id in :fofoId and fs.warehouseId in :warehouseId"
129
                + " group by foi.brand,DATE_FORMAT(fo.createTimestamp, :groupParameter)"),})
27599 tejbeer 130
 
27556 tejbeer 131
public class FofoStore implements Serializable {
132
 
32615 raveendra. 133
    private static final long serialVersionUID = 1L;
134
    @Id
135
    @Column(name = "id", unique = true, updatable = false)
136
    private int id;
137
    private int codeInt;
138
    @Column(name = "code", unique = true)
139
    private String code;
140
    @Column(name = "latitude")
141
    private String latitude;
142
    @Column(name = "longitude")
143
    private String longitude;
144
    @Column(name = "counter_size")
145
    @Enumerated(EnumType.STRING)
146
    private CounterSize counterSize = CounterSize.TEN_LAC;
147
    @Column(name = "counter_potential")
148
    private float counterPotential;
149
    @Column(name = "warehouse_id")
150
    private int warehouseId;
151
    @Column(name = "minimum_investment")
152
    private float minimumInvestment;
153
    @Column(name = "grace_date")
154
    private LocalDate graceDate;
155
    @Column(name = "investment_ok")
156
    private boolean investmentOk;
157
    @Column
158
    private boolean active = true;
159
    @Column
160
    private String pan;
161
    @Transient
162
    private Address userAddress;
163
    @Column(name = "internal")
164
    private boolean internal;
165
    @Column(name = "bags_last_credited")
166
    private LocalDateTime bagsLastCredited;
167
    @Column(name = "fofo_type")
168
    @Enumerated(EnumType.STRING)
169
    private FofoType fofoType;
170
    @Column(name = "activation_type")
171
    @Enumerated(EnumType.STRING)
172
    private ActivationType activationType = ActivationType.BILLING_PENDING;
173
    @Column(name = "active_timestamp")
174
    private LocalDateTime activeTimeStamp;
175
    @Column(name = "target")
176
    private int target;
177
    @Column(name = "grace_count")
178
    private int graceCount;
33124 ranu 179
    @Column(name = "astId")
180
    private int astId;
35079 vikas 181
    @Column(name = "shopify_location_id")
182
    private String shopifyLocationId;
183
    @Column(name = "shopify_customer_id")
184
    private String shopifyCustomerId;
185
    @Column(name = "gst_number")
186
    private String gstNumber;
27556 tejbeer 187
 
35289 amit 188
    @Column(name = "trial")
189
    private boolean trial = false;
190
 
191
    @Column(name = "trial_start")
192
    private LocalDate trialStart;
193
 
194
    @Column(name = "trial_end")
195
    private LocalDate trialEnd;
196
 
32615 raveendra. 197
    public FofoStore() {
198
    }
27556 tejbeer 199
 
33124 ranu 200
    public int getAstId() {
201
        return astId;
202
    }
203
 
204
    public void setAstId(int astId) {
205
        this.astId = astId;
206
    }
207
 
32615 raveendra. 208
    public int getCodeInt() {
209
        return codeInt;
210
    }
27556 tejbeer 211
 
32615 raveendra. 212
    public void setCodeInt(int codeInt) {
213
        this.codeInt = codeInt;
214
    }
27556 tejbeer 215
 
32615 raveendra. 216
    public int getTarget() {
217
        return target;
218
    }
27556 tejbeer 219
 
32615 raveendra. 220
    public void setTarget(int target) {
221
        this.target = target;
222
    }
27556 tejbeer 223
 
32615 raveendra. 224
    public ActivationType getActivationType() {
225
        return activationType;
226
    }
27556 tejbeer 227
 
32615 raveendra. 228
    public void setActivationType(ActivationType activationType) {
229
        this.activationType = activationType;
230
    }
31730 tejbeer 231
 
32615 raveendra. 232
    public float getCounterPotential() {
233
        return counterPotential;
234
    }
27556 tejbeer 235
 
32615 raveendra. 236
    public void setCounterPotential(float counterPotential) {
237
        this.counterPotential = counterPotential;
238
    }
27556 tejbeer 239
 
32615 raveendra. 240
    public LocalDateTime getBagsLastCredited() {
241
        return bagsLastCredited;
242
    }
27556 tejbeer 243
 
32615 raveendra. 244
    public void setBagsLastCredited(LocalDateTime bagsLastCredited) {
245
        this.bagsLastCredited = bagsLastCredited;
246
    }
27556 tejbeer 247
 
32615 raveendra. 248
    public boolean isInternal() {
249
        return internal;
250
    }
27903 tejbeer 251
 
32615 raveendra. 252
    public void setInternal(boolean internal) {
253
        this.internal = internal;
254
    }
29497 amit.gupta 255
 
32615 raveendra. 256
    public int getWarehouseId() {
257
        return warehouseId;
258
    }
30046 tejbeer 259
 
32615 raveendra. 260
    public void setWarehouseId(int warehouseId) {
261
        this.warehouseId = warehouseId;
262
    }
27903 tejbeer 263
 
32615 raveendra. 264
    public boolean isInvestmentOk() {
265
        return investmentOk;
266
    }
28825 tejbeer 267
 
32615 raveendra. 268
    public void setInvestmentOk(boolean investmentOk) {
269
        this.investmentOk = investmentOk;
270
    }
28825 tejbeer 271
 
32615 raveendra. 272
    public String getPan() {
273
        return pan;
274
    }
30046 tejbeer 275
 
32615 raveendra. 276
    public void setPan(String pan) {
277
        this.pan = pan;
278
    }
28166 tejbeer 279
 
32615 raveendra. 280
    public int getGraceCount() {
281
        return graceCount;
282
    }
32308 amit.gupta 283
 
32615 raveendra. 284
    public void setGraceCount(int graceCount) {
285
        this.graceCount = graceCount;
286
    }
32308 amit.gupta 287
 
32615 raveendra. 288
    public boolean isActive() {
289
        return active;
290
    }
32308 amit.gupta 291
 
32615 raveendra. 292
    public void setActive(boolean active) {
293
        this.active = active;
294
    }
30046 tejbeer 295
 
32615 raveendra. 296
    public LocalDate getGraceDate() {
297
        return graceDate;
298
    }
31730 tejbeer 299
 
32615 raveendra. 300
    public void setGraceDate(LocalDate graceDate) {
301
        this.graceDate = graceDate;
302
    }
31730 tejbeer 303
 
32615 raveendra. 304
    public float getMinimumInvestment() {
305
        return minimumInvestment;
306
    }
30046 tejbeer 307
 
32615 raveendra. 308
    public void setMinimumInvestment(float minimumInvestment) {
309
        this.minimumInvestment = minimumInvestment;
310
    }
28166 tejbeer 311
 
32615 raveendra. 312
    /*
313
     * public int getCreditCycle() { return creditCycle; } public void
314
     * setCreditCycle(int creditCycle) { this.creditCycle = creditCycle; }
315
     */
316
    public CounterSize getCounterSize() {
317
        return counterSize;
318
    }
28166 tejbeer 319
 
32615 raveendra. 320
    public void setCounterSize(CounterSize counterSize) {
321
        this.counterSize = counterSize;
322
    }
27903 tejbeer 323
 
32615 raveendra. 324
    public int getId() {
325
        return id;
326
    }
27903 tejbeer 327
 
32615 raveendra. 328
    public void setId(int id) {
329
        this.id = id;
330
    }
27903 tejbeer 331
 
32615 raveendra. 332
    public String getCode() {
333
        return code;
334
    }
27903 tejbeer 335
 
32615 raveendra. 336
    public void setCode(String code) {
337
        this.code = code;
338
    }
27556 tejbeer 339
 
32615 raveendra. 340
    public String getLatitude() {
341
        return latitude;
342
    }
25276 amit.gupta 343
 
32615 raveendra. 344
    public void setLatitude(String latitude) {
345
        this.latitude = latitude;
346
    }
24843 govind 347
 
32615 raveendra. 348
    public String getLongitude() {
349
        return longitude;
350
    }
29497 amit.gupta 351
 
32615 raveendra. 352
    public void setLongitude(String longitude) {
353
        this.longitude = longitude;
354
    }
29497 amit.gupta 355
 
32615 raveendra. 356
    public Address getUserAddress() {
357
        return userAddress;
358
    }
27556 tejbeer 359
 
32615 raveendra. 360
    public void setUserAddress(Address userAddress) {
361
        this.userAddress = userAddress;
362
    }
27556 tejbeer 363
 
32615 raveendra. 364
    public LocalDateTime getActiveTimeStamp() {
365
        return activeTimeStamp;
366
    }
27556 tejbeer 367
 
32615 raveendra. 368
    public void setActiveTimeStamp(LocalDateTime activeTimeStamp) {
369
        this.activeTimeStamp = activeTimeStamp;
370
    }
27556 tejbeer 371
 
32615 raveendra. 372
    public FofoType getFofoType() {
373
        return fofoType;
374
    }
27556 tejbeer 375
 
32615 raveendra. 376
    public void setFofoType(FofoType fofoType) {
377
        this.fofoType = fofoType;
378
    }
27556 tejbeer 379
 
35079 vikas 380
    public String getShopifyLocationId() {
381
        return shopifyLocationId;
382
    }
383
 
384
    public void setShopifyLocationId(String shopifyLocationId) {
385
        this.shopifyLocationId = shopifyLocationId;
386
    }
387
 
388
    public String getShopifyCustomerId() {
389
        return shopifyCustomerId;
390
    }
391
 
392
    public void setShopifyCustomerId(String shopifyCustomerId) {
393
        this.shopifyCustomerId = shopifyCustomerId;
394
    }
395
 
396
    public String getGstNumber() {
397
        return gstNumber;
398
    }
399
 
400
    public void setGstNumber(String gstNumber) {
401
        this.gstNumber = gstNumber;
402
    }
403
 
35289 amit 404
    public boolean isTrial() {
405
        return trial;
406
    }
407
 
408
    public void setTrial(boolean trial) {
409
        this.trial = trial;
410
    }
411
 
412
    public LocalDate getTrialStart() {
413
        return trialStart;
414
    }
415
 
416
    public void setTrialStart(LocalDate trialStart) {
417
        this.trialStart = trialStart;
418
    }
419
 
420
    public LocalDate getTrialEnd() {
421
        return trialEnd;
422
    }
423
 
424
    public void setTrialEnd(LocalDate trialEnd) {
425
        this.trialEnd = trialEnd;
426
    }
427
 
32615 raveendra. 428
    @Override
35079 vikas 429
    public boolean equals(Object o) {
430
        if (!(o instanceof FofoStore)) return false;
431
        FofoStore fofoStore = (FofoStore) o;
432
        return id == fofoStore.id && codeInt == fofoStore.codeInt && Float.compare(counterPotential, fofoStore.counterPotential) == 0 && warehouseId == fofoStore.warehouseId && Float.compare(minimumInvestment, fofoStore.minimumInvestment) == 0 && investmentOk == fofoStore.investmentOk && active == fofoStore.active && internal == fofoStore.internal && target == fofoStore.target && graceCount == fofoStore.graceCount && astId == fofoStore.astId && Objects.equals(code, fofoStore.code) && Objects.equals(latitude, fofoStore.latitude) && Objects.equals(longitude, fofoStore.longitude) && counterSize == fofoStore.counterSize && Objects.equals(graceDate, fofoStore.graceDate) && Objects.equals(pan, fofoStore.pan) && Objects.equals(userAddress, fofoStore.userAddress) && Objects.equals(bagsLastCredited, fofoStore.bagsLastCredited) && fofoType == fofoStore.fofoType && activationType == fofoStore.activationType && Objects.equals(activeTimeStamp, fofoStore.activeTimeStamp) && Objects.equals(shopifyLocationId, fofoStore.shopifyLocationId) && Objects.equals(shopifyCustomerId, fofoStore.shopifyCustomerId) && Objects.equals(gstNumber, fofoStore.gstNumber);
32615 raveendra. 433
    }
27556 tejbeer 434
 
32615 raveendra. 435
    @Override
35079 vikas 436
    public int hashCode() {
437
        return Objects.hash(id, codeInt, code, latitude, longitude, counterSize, counterPotential, warehouseId, minimumInvestment, graceDate, investmentOk, active, pan, userAddress, internal, bagsLastCredited, fofoType, activationType, activeTimeStamp, target, graceCount, astId, shopifyLocationId, shopifyCustomerId, gstNumber);
32615 raveendra. 438
    }
23884 amit.gupta 439
 
32615 raveendra. 440
    @Override
441
    public String toString() {
35079 vikas 442
        return "FofoStore{" +
443
                "id=" + id +
444
                ", codeInt=" + codeInt +
445
                ", code='" + code + '\'' +
446
                ", latitude='" + latitude + '\'' +
447
                ", longitude='" + longitude + '\'' +
448
                ", counterSize=" + counterSize +
449
                ", counterPotential=" + counterPotential +
450
                ", warehouseId=" + warehouseId +
451
                ", minimumInvestment=" + minimumInvestment +
452
                ", graceDate=" + graceDate +
453
                ", investmentOk=" + investmentOk +
454
                ", active=" + active +
455
                ", pan='" + pan + '\'' +
456
                ", userAddress=" + userAddress +
457
                ", internal=" + internal +
458
                ", bagsLastCredited=" + bagsLastCredited +
459
                ", fofoType=" + fofoType +
460
                ", activationType=" + activationType +
461
                ", activeTimeStamp=" + activeTimeStamp +
462
                ", target=" + target +
463
                ", graceCount=" + graceCount +
464
                ", astId=" + astId +
465
                ", shopifyLocationId='" + shopifyLocationId + '\'' +
466
                ", shopifyCustomerId='" + shopifyCustomerId + '\'' +
467
                ", gstNumber='" + gstNumber + '\'' +
468
                '}';
32615 raveendra. 469
    }
22418 ashik.ali 470
}