Subversion Repositories SmartDukaan

Rev

Rev 34117 | Rev 34133 | Go to most recent revision | Details | Compare with Previous | 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;
34117 ranu 8
    String partnerName;
34111 ranu 9
    int orderId;
10
    String customerNumber;
11
    String callingDate;
34129 ranu 12
    String disposition;
13
    String remark;
34111 ranu 14
    String paymentStatus;
15
    String insuranceStatus;
16
    float policySoldAmount;
17
    String invoiceNumber;
18
    String serialNumber;
19
 
34129 ranu 20
    public UpsellingReportModel(int agentId, String agentEmail, String partnerName, int orderId, String customerNumber, String callingDate, String disposition, String remark, String paymentStatus, String insuranceStatus, float policySoldAmount, String invoiceNumber, String serialNumber) {
34111 ranu 21
        this.agentId = agentId;
22
        this.agentEmail = agentEmail;
34117 ranu 23
        this.partnerName = partnerName;
34111 ranu 24
        this.orderId = orderId;
25
        this.customerNumber = customerNumber;
26
        this.callingDate = callingDate;
34129 ranu 27
        this.disposition = disposition;
28
        this.remark = remark;
34111 ranu 29
        this.paymentStatus = paymentStatus;
30
        this.insuranceStatus = insuranceStatus;
31
        this.policySoldAmount = policySoldAmount;
32
        this.invoiceNumber = invoiceNumber;
33
        this.serialNumber = serialNumber;
34
    }
35
 
36
    public int getAgentId() {
37
        return agentId;
38
    }
39
 
40
    public void setAgentId(int agentId) {
41
        this.agentId = agentId;
42
    }
43
 
44
    public String getAgentEmail() {
45
        return agentEmail;
46
    }
47
 
48
    public void setAgentEmail(String agentEmail) {
49
        this.agentEmail = agentEmail;
50
    }
51
 
34117 ranu 52
    public String getPartnerName() {
53
        return partnerName;
54
    }
55
 
56
    public void setPartnerName(String partnerName) {
57
        this.partnerName = partnerName;
58
    }
59
 
34111 ranu 60
    public int getOrderId() {
61
        return orderId;
62
    }
63
 
64
    public void setOrderId(int orderId) {
65
        this.orderId = orderId;
66
    }
67
 
68
    public String getCustomerNumber() {
69
        return customerNumber;
70
    }
71
 
72
    public void setCustomerNumber(String customerNumber) {
73
        this.customerNumber = customerNumber;
74
    }
75
 
76
    public String getCallingDate() {
77
        return callingDate;
78
    }
79
 
80
    public void setCallingDate(String callingDate) {
81
        this.callingDate = callingDate;
82
    }
83
 
34129 ranu 84
    public String getDisposition() {
85
        return disposition;
86
    }
87
 
88
    public void setDisposition(String disposition) {
89
        this.disposition = disposition;
90
    }
91
 
92
    public String getRemark() {
93
        return remark;
94
    }
95
 
96
    public void setRemark(String remark) {
97
        this.remark = remark;
98
    }
99
 
34111 ranu 100
    public String getPaymentStatus() {
101
        return paymentStatus;
102
    }
103
 
104
    public void setPaymentStatus(String paymentStatus) {
105
        this.paymentStatus = paymentStatus;
106
    }
107
 
108
    public String getInsuranceStatus() {
109
        return insuranceStatus;
110
    }
111
 
112
    public void setInsuranceStatus(String insuranceStatus) {
113
        this.insuranceStatus = insuranceStatus;
114
    }
115
 
116
    public float getPolicySoldAmount() {
117
        return policySoldAmount;
118
    }
119
 
120
    public void setPolicySoldAmount(float policySoldAmount) {
121
        this.policySoldAmount = policySoldAmount;
122
    }
123
 
124
    public String getInvoiceNumber() {
125
        return invoiceNumber;
126
    }
127
 
128
    public void setInvoiceNumber(String invoiceNumber) {
129
        this.invoiceNumber = invoiceNumber;
130
    }
131
 
132
    public String getSerialNumber() {
133
        return serialNumber;
134
    }
135
 
136
    public void setSerialNumber(String serialNumber) {
137
        this.serialNumber = serialNumber;
138
    }
139
 
140
    @Override
141
    public String toString() {
142
        return "UpsellingReportModel{" +
143
                "agentId=" + agentId +
144
                ", agentEmail='" + agentEmail + '\'' +
34117 ranu 145
                ", partnerName='" + partnerName + '\'' +
34111 ranu 146
                ", orderId=" + orderId +
147
                ", customerNumber='" + customerNumber + '\'' +
34117 ranu 148
                ", callingDate='" + callingDate + '\'' +
34129 ranu 149
                ", disposition='" + disposition + '\'' +
150
                ", remark='" + remark + '\'' +
34111 ranu 151
                ", paymentStatus='" + paymentStatus + '\'' +
152
                ", insuranceStatus='" + insuranceStatus + '\'' +
153
                ", policySoldAmount=" + policySoldAmount +
154
                ", invoiceNumber='" + invoiceNumber + '\'' +
155
                ", serialNumber='" + serialNumber + '\'' +
156
                '}';
157
    }
158
 
34129 ranu 159
    @Override
160
    public boolean equals(Object o) {
161
        if (this == o) return true;
162
        if (o == null || getClass() != o.getClass()) return false;
163
        UpsellingReportModel that = (UpsellingReportModel) o;
164
        return agentId == that.agentId && orderId == that.orderId && Float.compare(policySoldAmount, that.policySoldAmount) == 0 && Objects.equals(agentEmail, that.agentEmail) && Objects.equals(partnerName, that.partnerName) && Objects.equals(customerNumber, that.customerNumber) && Objects.equals(callingDate, that.callingDate) && Objects.equals(disposition, that.disposition) && Objects.equals(remark, that.remark) && Objects.equals(paymentStatus, that.paymentStatus) && Objects.equals(insuranceStatus, that.insuranceStatus) && Objects.equals(invoiceNumber, that.invoiceNumber) && Objects.equals(serialNumber, that.serialNumber);
165
    }
166
 
167
    @Override
168
    public int hashCode() {
169
        return Objects.hash(agentId, agentEmail, partnerName, orderId, customerNumber, callingDate, disposition, remark, paymentStatus, insuranceStatus, policySoldAmount, invoiceNumber, serialNumber);
170
    }
34111 ranu 171
}