Subversion Repositories SmartDukaan

Rev

Rev 30158 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30158 Rev 36470
Line 14... Line 14...
14
	private long homeCredit;
14
	private long homeCredit;
15
	private long paytm;
15
	private long paytm;
16
	private long capitalFirst;
16
	private long capitalFirst;
17
	private long zestMoney;
17
	private long zestMoney;
18
	private long samsungSure;
18
	private long samsungSure;
-
 
19
	private long mobikwik;
-
 
20
	private long benow;
-
 
21
	private long razorPaySwp;
-
 
22
	private long idfcCf;
-
 
23
	private long hdb;
-
 
24
	private long upiPayment;
-
 
25
	private long accountTransfer;
-
 
26
	private long online;
-
 
27
	private long tvs;
-
 
28
	private long cleverpe;
-
 
29
	private long amazonPay;
-
 
30
	private long samsungUpgrade;
19
	private long totalAmount;
31
	private long totalAmount;
20
 
32
 
21
	public CollectionSummary(LocalDateTime date, PaymentOptionReferenceType referenceType, long cash, long pinelabs,
33
	public CollectionSummary(LocalDateTime date, PaymentOptionReferenceType referenceType, long cash, long pinelabs,
22
			long bajajFinserv, long homeCredit, long paytm, long capitalFirst, long zestMoney, long samsungSure,
34
			long bajajFinserv, long homeCredit, long paytm, long capitalFirst, long zestMoney, long samsungSure,
-
 
35
			long mobikwik, long benow, long razorPaySwp, long idfcCf, long hdb, long upiPayment,
-
 
36
			long accountTransfer, long online, long tvs, long cleverpe, long amazonPay, long samsungUpgrade,
23
			long totalAmount) {
37
			long totalAmount) {
24
		super();
38
		super();
25
		this.date = date;
39
		this.date = date;
26
		this.referenceType = referenceType;
40
		this.referenceType = referenceType;
27
		this.cash = cash;
41
		this.cash = cash;
Line 30... Line 44...
30
		this.homeCredit = homeCredit;
44
		this.homeCredit = homeCredit;
31
		this.paytm = paytm;
45
		this.paytm = paytm;
32
		this.capitalFirst = capitalFirst;
46
		this.capitalFirst = capitalFirst;
33
		this.zestMoney = zestMoney;
47
		this.zestMoney = zestMoney;
34
		this.samsungSure = samsungSure;
48
		this.samsungSure = samsungSure;
-
 
49
		this.mobikwik = mobikwik;
-
 
50
		this.benow = benow;
-
 
51
		this.razorPaySwp = razorPaySwp;
-
 
52
		this.idfcCf = idfcCf;
-
 
53
		this.hdb = hdb;
-
 
54
		this.upiPayment = upiPayment;
-
 
55
		this.accountTransfer = accountTransfer;
-
 
56
		this.online = online;
-
 
57
		this.tvs = tvs;
-
 
58
		this.cleverpe = cleverpe;
-
 
59
		this.amazonPay = amazonPay;
-
 
60
		this.samsungUpgrade = samsungUpgrade;
35
		this.totalAmount = totalAmount;
61
		this.totalAmount = totalAmount;
36
	}
62
	}
37
 
63
 
38
	public LocalDateTime getDate() {
64
	public LocalDateTime getDate() {
39
		return date;
65
		return date;
40
	}
66
	}
41
 
67
 
42
	public void setDate(LocalDateTime date) {
68
	public void setDate(LocalDateTime date) {
43
		date = date;
69
		this.date = date;
44
	}
70
	}
45
 
71
 
46
	public PaymentOptionReferenceType getReferenceType() {
72
	public PaymentOptionReferenceType getReferenceType() {
47
		return referenceType;
73
		return referenceType;
48
	}
74
	}
Line 105... Line 131...
105
 
131
 
106
	public void setZestMoney(long zestMoney) {
132
	public void setZestMoney(long zestMoney) {
107
		this.zestMoney = zestMoney;
133
		this.zestMoney = zestMoney;
108
	}
134
	}
109
 
135
 
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() {
136
	public long getSamsungSure() {
119
		return samsungSure;
137
		return samsungSure;
120
	}
138
	}
121
 
139
 
122
	public void setSamsungSure(long samsungSure) {
140
	public void setSamsungSure(long samsungSure) {
123
		this.samsungSure = samsungSure;
141
		this.samsungSure = samsungSure;
124
	}
142
	}
125
 
143
 
126
	@Override
-
 
127
	public int hashCode() {
144
	public long getMobikwik() {
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;
145
		return mobikwik;
142
	}
146
	}
143
 
147
 
144
	@Override
-
 
145
	public boolean equals(Object obj) {
148
	public void setMobikwik(long mobikwik) {
146
		if (this == obj)
149
		this.mobikwik = mobikwik;
-
 
150
	}
-
 
151
 
-
 
152
	public long getBenow() {
147
			return true;
153
		return benow;
-
 
154
	}
-
 
155
 
-
 
156
	public void setBenow(long benow) {
148
		if (obj == null)
157
		this.benow = benow;
-
 
158
	}
-
 
159
 
-
 
160
	public long getRazorPaySwp() {
149
			return false;
161
		return razorPaySwp;
-
 
162
	}
-
 
163
 
-
 
164
	public void setRazorPaySwp(long razorPaySwp) {
150
		if (getClass() != obj.getClass())
165
		this.razorPaySwp = razorPaySwp;
-
 
166
	}
-
 
167
 
-
 
168
	public long getIdfcCf() {
151
			return false;
169
		return idfcCf;
-
 
170
	}
-
 
171
 
152
		CollectionSummary other = (CollectionSummary) obj;
172
	public void setIdfcCf(long idfcCf) {
153
		if (bajajFinserv != other.bajajFinserv)
173
		this.idfcCf = idfcCf;
-
 
174
	}
-
 
175
 
-
 
176
	public long getHdb() {
154
			return false;
177
		return hdb;
-
 
178
	}
-
 
179
 
155
		if (capitalFirst != other.capitalFirst)
180
	public void setHdb(long hdb) {
156
			return false;
181
		this.hdb = hdb;
-
 
182
	}
-
 
183
 
157
		if (cash != other.cash)
184
	public long getUpiPayment() {
158
			return false;
185
		return upiPayment;
-
 
186
	}
-
 
187
 
-
 
188
	public void setUpiPayment(long upiPayment) {
159
		if (date == null) {
189
		this.upiPayment = upiPayment;
-
 
190
	}
-
 
191
 
160
			if (other.date != null)
192
	public long getAccountTransfer() {
161
				return false;
193
		return accountTransfer;
-
 
194
	}
-
 
195
 
-
 
196
	public void setAccountTransfer(long accountTransfer) {
162
		} else if (!date.equals(other.date))
197
		this.accountTransfer = accountTransfer;
-
 
198
	}
-
 
199
 
-
 
200
	public long getOnline() {
163
			return false;
201
		return online;
-
 
202
	}
-
 
203
 
164
		if (homeCredit != other.homeCredit)
204
	public void setOnline(long online) {
165
			return false;
205
		this.online = online;
-
 
206
	}
-
 
207
 
166
		if (paytm != other.paytm)
208
	public long getTvs() {
167
			return false;
209
		return tvs;
-
 
210
	}
-
 
211
 
168
		if (pinelabs != other.pinelabs)
212
	public void setTvs(long tvs) {
169
			return false;
213
		this.tvs = tvs;
-
 
214
	}
-
 
215
 
170
		if (referenceType != other.referenceType)
216
	public long getCleverpe() {
171
			return false;
217
		return cleverpe;
-
 
218
	}
-
 
219
 
172
		if (samsungSure != other.samsungSure)
220
	public void setCleverpe(long cleverpe) {
173
			return false;
221
		this.cleverpe = cleverpe;
-
 
222
	}
-
 
223
 
174
		if (totalAmount != other.totalAmount)
224
	public long getAmazonPay() {
175
			return false;
225
		return amazonPay;
-
 
226
	}
-
 
227
 
-
 
228
	public void setAmazonPay(long amazonPay) {
176
		if (zestMoney != other.zestMoney)
229
		this.amazonPay = amazonPay;
-
 
230
	}
-
 
231
 
-
 
232
	public long getSamsungUpgrade() {
177
			return false;
233
		return samsungUpgrade;
-
 
234
	}
-
 
235
 
-
 
236
	public void setSamsungUpgrade(long samsungUpgrade) {
-
 
237
		this.samsungUpgrade = samsungUpgrade;
-
 
238
	}
-
 
239
 
-
 
240
	public long getTotalAmount() {
178
		return true;
241
		return totalAmount;
-
 
242
	}
-
 
243
 
-
 
244
	public void setTotalAmount(long totalAmount) {
-
 
245
		this.totalAmount = totalAmount;
179
	}
246
	}
180
 
247
 
181
	@Override
248
	@Override
182
	public String toString() {
249
	public String toString() {
183
		return "CollectionSummary [date=" + date + ", referenceType=" + referenceType + ", cash=" + cash + ", pinelabs="
250
		return "CollectionSummary [date=" + date + ", referenceType=" + referenceType + ", cash=" + cash + ", pinelabs="
184
				+ pinelabs + ", bajajFinserv=" + bajajFinserv + ", homeCredit=" + homeCredit + ", paytm=" + paytm
251
				+ pinelabs + ", bajajFinserv=" + bajajFinserv + ", homeCredit=" + homeCredit + ", paytm=" + paytm
185
				+ ", capitalFirst=" + capitalFirst + ", zestMoney=" + zestMoney + ", totalAmount=" + totalAmount
252
				+ ", capitalFirst=" + capitalFirst + ", zestMoney=" + zestMoney + ", samsungSure=" + samsungSure
-
 
253
				+ ", mobikwik=" + mobikwik + ", benow=" + benow + ", razorPaySwp=" + razorPaySwp
-
 
254
				+ ", idfcCf=" + idfcCf + ", hdb=" + hdb + ", upiPayment=" + upiPayment
-
 
255
				+ ", accountTransfer=" + accountTransfer + ", online=" + online + ", tvs=" + tvs
-
 
256
				+ ", cleverpe=" + cleverpe + ", amazonPay=" + amazonPay + ", samsungUpgrade=" + samsungUpgrade
186
				+ ", samsungSure=" + samsungSure + "]";
257
				+ ", totalAmount=" + totalAmount + "]";
187
	}
258
	}
188
 
259
 
189
}
260
}