Subversion Repositories SmartDukaan

Rev

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