Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
32213 amit.gupta 1
package com.smartdukaan.cron.scheduled.amazon.shop;
2
 
3
import java.util.Objects;
4
 
5
public class OrderSummary {
6
 
7
    private boolean gst;
8
    private boolean noCostEmi;
9
    private boolean prepaid;
10
    private String asin;
11
    private int purchasePrice;
12
    private int qtyPerOrder;
13
 
14
    public boolean isGst() {
15
        return gst;
16
    }
17
 
18
    public void setGst(boolean gst) {
19
        this.gst = gst;
20
    }
21
 
22
    public boolean isNoCostEmi() {
23
        return noCostEmi;
24
    }
25
 
26
    public void setNoCostEmi(boolean noCostEmi) {
27
        this.noCostEmi = noCostEmi;
28
    }
29
 
30
    public boolean isPrepaid() {
31
        return prepaid;
32
    }
33
 
34
    public void setPrepaid(boolean prepaid) {
35
        this.prepaid = prepaid;
36
    }
37
 
38
    public String getAsin() {
39
        return asin;
40
    }
41
 
42
    public void setAsin(String asin) {
43
        this.asin = asin;
44
    }
45
 
46
    public int getPurchasePrice() {
47
        return purchasePrice;
48
    }
49
 
50
    public void setPurchasePrice(int purchasePrice) {
51
        this.purchasePrice = purchasePrice;
52
    }
53
 
54
    public int getQtyPerOrder() {
55
        return qtyPerOrder;
56
    }
57
 
58
    public void setQtyPerOrder(int qtyPerOrder) {
59
        this.qtyPerOrder = qtyPerOrder;
60
    }
61
 
62
    @Override
63
    public boolean equals(Object o) {
64
        if (this == o) return true;
65
        if (o == null || getClass() != o.getClass()) return false;
66
        OrderSummary that = (OrderSummary) o;
67
        return gst == that.gst && noCostEmi == that.noCostEmi && prepaid == that.prepaid && purchasePrice == that.purchasePrice && qtyPerOrder == that.qtyPerOrder && Objects.equals(asin, that.asin);
68
    }
69
 
70
    @Override
71
    public int hashCode() {
72
        return Objects.hash(gst, noCostEmi, prepaid, asin, purchasePrice, qtyPerOrder);
73
    }
74
}