Subversion Repositories SmartDukaan

Rev

Rev 34117 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
34111 ranu 1
package com.spice.profitmandi.dao.model;
2
 
3
import java.util.Objects;
4
 
5
public class UpsellingReportModel {
6
    int agentId;
7
    String agentEmail;
8
    int orderId;
9
    String customerNumber;
10
    String callingDate;
11
    String paymentStatus;
12
    String insuranceStatus;
13
    float policySoldAmount;
14
    String invoiceNumber;
15
    String serialNumber;
16
 
17
    public UpsellingReportModel(int agentId, String agentEmail, int orderId, String customerNumber, String callingDate, String paymentStatus, String insuranceStatus, float policySoldAmount, String invoiceNumber, String serialNumber) {
18
        this.agentId = agentId;
19
        this.agentEmail = agentEmail;
20
        this.orderId = orderId;
21
        this.customerNumber = customerNumber;
22
        this.callingDate = callingDate;
23
        this.paymentStatus = paymentStatus;
24
        this.insuranceStatus = insuranceStatus;
25
        this.policySoldAmount = policySoldAmount;
26
        this.invoiceNumber = invoiceNumber;
27
        this.serialNumber = serialNumber;
28
    }
29
 
30
    public int getAgentId() {
31
        return agentId;
32
    }
33
 
34
    public void setAgentId(int agentId) {
35
        this.agentId = agentId;
36
    }
37
 
38
    public String getAgentEmail() {
39
        return agentEmail;
40
    }
41
 
42
    public void setAgentEmail(String agentEmail) {
43
        this.agentEmail = agentEmail;
44
    }
45
 
46
    public int getOrderId() {
47
        return orderId;
48
    }
49
 
50
    public void setOrderId(int orderId) {
51
        this.orderId = orderId;
52
    }
53
 
54
    public String getCustomerNumber() {
55
        return customerNumber;
56
    }
57
 
58
    public void setCustomerNumber(String customerNumber) {
59
        this.customerNumber = customerNumber;
60
    }
61
 
62
    public String getCallingDate() {
63
        return callingDate;
64
    }
65
 
66
    public void setCallingDate(String callingDate) {
67
        this.callingDate = callingDate;
68
    }
69
 
70
    public String getPaymentStatus() {
71
        return paymentStatus;
72
    }
73
 
74
    public void setPaymentStatus(String paymentStatus) {
75
        this.paymentStatus = paymentStatus;
76
    }
77
 
78
    public String getInsuranceStatus() {
79
        return insuranceStatus;
80
    }
81
 
82
    public void setInsuranceStatus(String insuranceStatus) {
83
        this.insuranceStatus = insuranceStatus;
84
    }
85
 
86
    public float getPolicySoldAmount() {
87
        return policySoldAmount;
88
    }
89
 
90
    public void setPolicySoldAmount(float policySoldAmount) {
91
        this.policySoldAmount = policySoldAmount;
92
    }
93
 
94
    public String getInvoiceNumber() {
95
        return invoiceNumber;
96
    }
97
 
98
    public void setInvoiceNumber(String invoiceNumber) {
99
        this.invoiceNumber = invoiceNumber;
100
    }
101
 
102
    public String getSerialNumber() {
103
        return serialNumber;
104
    }
105
 
106
    public void setSerialNumber(String serialNumber) {
107
        this.serialNumber = serialNumber;
108
    }
109
 
110
    @Override
111
    public String toString() {
112
        return "UpsellingReportModel{" +
113
                "agentId=" + agentId +
114
                ", agentEmail='" + agentEmail + '\'' +
115
                ", orderId=" + orderId +
116
                ", customerNumber='" + customerNumber + '\'' +
117
                ", callingDate=" + callingDate +
118
                ", paymentStatus='" + paymentStatus + '\'' +
119
                ", insuranceStatus='" + insuranceStatus + '\'' +
120
                ", policySoldAmount=" + policySoldAmount +
121
                ", invoiceNumber='" + invoiceNumber + '\'' +
122
                ", serialNumber='" + serialNumber + '\'' +
123
                '}';
124
    }
125
 
126
    @Override
127
    public boolean equals(Object o) {
128
        if (this == o) return true;
129
        if (o == null || getClass() != o.getClass()) return false;
130
        UpsellingReportModel that = (UpsellingReportModel) o;
131
        return agentId == that.agentId && orderId == that.orderId && Float.compare(policySoldAmount, that.policySoldAmount) == 0 && Objects.equals(agentEmail, that.agentEmail) && Objects.equals(customerNumber, that.customerNumber) && Objects.equals(callingDate, that.callingDate) && Objects.equals(paymentStatus, that.paymentStatus) && Objects.equals(insuranceStatus, that.insuranceStatus) && Objects.equals(invoiceNumber, that.invoiceNumber) && Objects.equals(serialNumber, that.serialNumber);
132
    }
133
 
134
    @Override
135
    public int hashCode() {
136
        return Objects.hash(agentId, agentEmail, orderId, customerNumber, callingDate, paymentStatus, insuranceStatus, policySoldAmount, invoiceNumber, serialNumber);
137
    }
138
}