| 30158 |
manish |
1 |
package com.spice.profitmandi.dao.model;
|
|
|
2 |
|
|
|
3 |
import java.time.LocalDateTime;
|
|
|
4 |
|
|
|
5 |
import com.spice.profitmandi.dao.enumuration.dtr.PaymentOptionReferenceType;
|
|
|
6 |
|
|
|
7 |
public class CollectionSummary {
|
|
|
8 |
|
|
|
9 |
private LocalDateTime date;
|
|
|
10 |
private PaymentOptionReferenceType referenceType;
|
|
|
11 |
private long cash;
|
|
|
12 |
private long pinelabs;
|
|
|
13 |
private long bajajFinserv;
|
|
|
14 |
private long homeCredit;
|
|
|
15 |
private long paytm;
|
|
|
16 |
private long capitalFirst;
|
|
|
17 |
private long zestMoney;
|
|
|
18 |
private long samsungSure;
|
|
|
19 |
private long totalAmount;
|
|
|
20 |
|
|
|
21 |
public CollectionSummary(LocalDateTime date, PaymentOptionReferenceType referenceType, long cash, long pinelabs,
|
|
|
22 |
long bajajFinserv, long homeCredit, long paytm, long capitalFirst, long zestMoney, long samsungSure,
|
|
|
23 |
long totalAmount) {
|
|
|
24 |
super();
|
|
|
25 |
this.date = date;
|
|
|
26 |
this.referenceType = referenceType;
|
|
|
27 |
this.cash = cash;
|
|
|
28 |
this.pinelabs = pinelabs;
|
|
|
29 |
this.bajajFinserv = bajajFinserv;
|
|
|
30 |
this.homeCredit = homeCredit;
|
|
|
31 |
this.paytm = paytm;
|
|
|
32 |
this.capitalFirst = capitalFirst;
|
|
|
33 |
this.zestMoney = zestMoney;
|
|
|
34 |
this.samsungSure = samsungSure;
|
|
|
35 |
this.totalAmount = totalAmount;
|
|
|
36 |
}
|
|
|
37 |
|
|
|
38 |
public LocalDateTime getDate() {
|
|
|
39 |
return date;
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
public void setDate(LocalDateTime date) {
|
|
|
43 |
date = date;
|
|
|
44 |
}
|
|
|
45 |
|
|
|
46 |
public PaymentOptionReferenceType getReferenceType() {
|
|
|
47 |
return referenceType;
|
|
|
48 |
}
|
|
|
49 |
|
|
|
50 |
public void setReferenceType(PaymentOptionReferenceType referenceType) {
|
|
|
51 |
this.referenceType = referenceType;
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
public long getCash() {
|
|
|
55 |
return cash;
|
|
|
56 |
}
|
|
|
57 |
|
|
|
58 |
public void setCash(long cash) {
|
|
|
59 |
this.cash = cash;
|
|
|
60 |
}
|
|
|
61 |
|
|
|
62 |
public long getPinelabs() {
|
|
|
63 |
return pinelabs;
|
|
|
64 |
}
|
|
|
65 |
|
|
|
66 |
public void setPinelabs(long pinelabs) {
|
|
|
67 |
this.pinelabs = pinelabs;
|
|
|
68 |
}
|
|
|
69 |
|
|
|
70 |
public long getBajajFinserv() {
|
|
|
71 |
return bajajFinserv;
|
|
|
72 |
}
|
|
|
73 |
|
|
|
74 |
public void setBajajFinserv(long bajajFinserv) {
|
|
|
75 |
this.bajajFinserv = bajajFinserv;
|
|
|
76 |
}
|
|
|
77 |
|
|
|
78 |
public long getHomeCredit() {
|
|
|
79 |
return homeCredit;
|
|
|
80 |
}
|
|
|
81 |
|
|
|
82 |
public void setHomeCredit(long homeCredit) {
|
|
|
83 |
this.homeCredit = homeCredit;
|
|
|
84 |
}
|
|
|
85 |
|
|
|
86 |
public long getPaytm() {
|
|
|
87 |
return paytm;
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
public void setPaytm(long paytm) {
|
|
|
91 |
this.paytm = paytm;
|
|
|
92 |
}
|
|
|
93 |
|
|
|
94 |
public long getCapitalFirst() {
|
|
|
95 |
return capitalFirst;
|
|
|
96 |
}
|
|
|
97 |
|
|
|
98 |
public void setCapitalFirst(long capitalFirst) {
|
|
|
99 |
this.capitalFirst = capitalFirst;
|
|
|
100 |
}
|
|
|
101 |
|
|
|
102 |
public long getZestMoney() {
|
|
|
103 |
return zestMoney;
|
|
|
104 |
}
|
|
|
105 |
|
|
|
106 |
public void setZestMoney(long zestMoney) {
|
|
|
107 |
this.zestMoney = zestMoney;
|
|
|
108 |
}
|
|
|
109 |
|
|
|
110 |
public long getTotalAmount() {
|
|
|
111 |
return totalAmount;
|
|
|
112 |
}
|
|
|
113 |
|
|
|
114 |
public void setTotalAmount(long totalAmount) {
|
|
|
115 |
this.totalAmount = totalAmount;
|
|
|
116 |
}
|
|
|
117 |
|
|
|
118 |
public long getSamsungSure() {
|
|
|
119 |
return samsungSure;
|
|
|
120 |
}
|
|
|
121 |
|
|
|
122 |
public void setSamsungSure(long samsungSure) {
|
|
|
123 |
this.samsungSure = samsungSure;
|
|
|
124 |
}
|
|
|
125 |
|
|
|
126 |
@Override
|
|
|
127 |
public int hashCode() {
|
|
|
128 |
final int prime = 31;
|
|
|
129 |
int result = 1;
|
|
|
130 |
result = prime * result + (int) (bajajFinserv ^ (bajajFinserv >>> 32));
|
|
|
131 |
result = prime * result + (int) (capitalFirst ^ (capitalFirst >>> 32));
|
|
|
132 |
result = prime * result + (int) (cash ^ (cash >>> 32));
|
|
|
133 |
result = prime * result + ((date == null) ? 0 : date.hashCode());
|
|
|
134 |
result = prime * result + (int) (homeCredit ^ (homeCredit >>> 32));
|
|
|
135 |
result = prime * result + (int) (paytm ^ (paytm >>> 32));
|
|
|
136 |
result = prime * result + (int) (pinelabs ^ (pinelabs >>> 32));
|
|
|
137 |
result = prime * result + ((referenceType == null) ? 0 : referenceType.hashCode());
|
|
|
138 |
result = prime * result + (int) (samsungSure ^ (samsungSure >>> 32));
|
|
|
139 |
result = prime * result + (int) (totalAmount ^ (totalAmount >>> 32));
|
|
|
140 |
result = prime * result + (int) (zestMoney ^ (zestMoney >>> 32));
|
|
|
141 |
return result;
|
|
|
142 |
}
|
|
|
143 |
|
|
|
144 |
@Override
|
|
|
145 |
public boolean equals(Object obj) {
|
|
|
146 |
if (this == obj)
|
|
|
147 |
return true;
|
|
|
148 |
if (obj == null)
|
|
|
149 |
return false;
|
|
|
150 |
if (getClass() != obj.getClass())
|
|
|
151 |
return false;
|
|
|
152 |
CollectionSummary other = (CollectionSummary) obj;
|
|
|
153 |
if (bajajFinserv != other.bajajFinserv)
|
|
|
154 |
return false;
|
|
|
155 |
if (capitalFirst != other.capitalFirst)
|
|
|
156 |
return false;
|
|
|
157 |
if (cash != other.cash)
|
|
|
158 |
return false;
|
|
|
159 |
if (date == null) {
|
|
|
160 |
if (other.date != null)
|
|
|
161 |
return false;
|
|
|
162 |
} else if (!date.equals(other.date))
|
|
|
163 |
return false;
|
|
|
164 |
if (homeCredit != other.homeCredit)
|
|
|
165 |
return false;
|
|
|
166 |
if (paytm != other.paytm)
|
|
|
167 |
return false;
|
|
|
168 |
if (pinelabs != other.pinelabs)
|
|
|
169 |
return false;
|
|
|
170 |
if (referenceType != other.referenceType)
|
|
|
171 |
return false;
|
|
|
172 |
if (samsungSure != other.samsungSure)
|
|
|
173 |
return false;
|
|
|
174 |
if (totalAmount != other.totalAmount)
|
|
|
175 |
return false;
|
|
|
176 |
if (zestMoney != other.zestMoney)
|
|
|
177 |
return false;
|
|
|
178 |
return true;
|
|
|
179 |
}
|
|
|
180 |
|
|
|
181 |
@Override
|
|
|
182 |
public String toString() {
|
|
|
183 |
return "CollectionSummary [date=" + date + ", referenceType=" + referenceType + ", cash=" + cash + ", pinelabs="
|
|
|
184 |
+ pinelabs + ", bajajFinserv=" + bajajFinserv + ", homeCredit=" + homeCredit + ", paytm=" + paytm
|
|
|
185 |
+ ", capitalFirst=" + capitalFirst + ", zestMoney=" + zestMoney + ", totalAmount=" + totalAmount
|
|
|
186 |
+ ", samsungSure=" + samsungSure + "]";
|
|
|
187 |
}
|
|
|
188 |
|
|
|
189 |
}
|