Subversion Repositories SmartDukaan

Rev

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

Rev 30158 Rev 31540
Line 1... Line 1...
1
package com.spice.profitmandi.dao.model;
1
package com.spice.profitmandi.dao.model;
2
 
2
 
3
import java.time.LocalDateTime;
3
import java.util.Objects;
4
 
4
 
5
import com.spice.profitmandi.dao.enumuration.dtr.PaymentOptionReferenceType;
5
public class PartnerSecondaryModel {
-
 
6
	private int warehouseId;
-
 
7
	private int fofoId;
-
 
8
	private Long orderCount;
-
 
9
	private Double orderValue;
6
 
10
 
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,
11
	public PartnerSecondaryModel(int warehouseId, int fofoId, Long orderCount, Double orderValue) {
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;
12
		this.warehouseId = warehouseId;
30
		this.homeCredit = homeCredit;
-
 
31
		this.paytm = paytm;
13
		this.fofoId = fofoId;
32
		this.capitalFirst = capitalFirst;
-
 
33
		this.zestMoney = zestMoney;
14
		this.orderCount = orderCount;
34
		this.samsungSure = samsungSure;
15
		this.orderValue = orderValue;
35
		this.totalAmount = totalAmount;
-
 
36
	}
16
	}
37
 
17
 
38
	public LocalDateTime getDate() {
18
	public int getWarehouseId() {
39
		return date;
19
		return warehouseId;
40
	}
20
	}
41
 
21
 
42
	public void setDate(LocalDateTime date) {
22
	public void setWarehouseId(int warehouseId) {
43
		date = date;
23
		this.warehouseId = warehouseId;
44
	}
24
	}
45
 
25
 
46
	public PaymentOptionReferenceType getReferenceType() {
26
	public int getFofoId() {
47
		return referenceType;
27
		return fofoId;
48
	}
28
	}
49
 
29
 
50
	public void setReferenceType(PaymentOptionReferenceType referenceType) {
30
	public void setFofoId(int fofoId) {
51
		this.referenceType = referenceType;
31
		this.fofoId = fofoId;
52
	}
32
	}
53
 
33
 
54
	public long getCash() {
34
	public Long getOrderCount() {
55
		return cash;
35
		return orderCount;
56
	}
36
	}
57
 
37
 
58
	public void setCash(long cash) {
38
	public void setOrderCount(Long orderCount) {
59
		this.cash = cash;
39
		this.orderCount = orderCount;
60
	}
40
	}
61
 
41
 
62
	public long getPinelabs() {
42
	public Double getOrderValue() {
63
		return pinelabs;
43
		return orderValue;
64
	}
44
	}
65
 
45
 
66
	public void setPinelabs(long pinelabs) {
46
	public void setOrderValue(Double orderValue) {
67
		this.pinelabs = pinelabs;
47
		this.orderValue = orderValue;
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
	}
48
	}
125
 
49
 
126
	@Override
50
	@Override
127
	public int hashCode() {
51
	public boolean equals(Object o) {
128
		final int prime = 31;
-
 
129
		int result = 1;
52
		if (this == o) return true;
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));
53
		if (o == null || getClass() != o.getClass()) return false;
135
		result = prime * result + (int) (paytm ^ (paytm >>> 32));
54
		PartnerSecondaryModel that = (PartnerSecondaryModel) o;
136
		result = prime * result + (int) (pinelabs ^ (pinelabs >>> 32));
-
 
137
		result = prime * result + ((referenceType == null) ? 0 : referenceType.hashCode());
55
		return warehouseId == that.warehouseId && fofoId == that.fofoId && Objects.equals(orderCount, that.orderCount) && Objects.equals(orderValue, that.orderValue);
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
	}
56
	}
143
 
57
 
144
	@Override
58
	@Override
145
	public boolean equals(Object obj) {
59
	public int hashCode() {
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;
60
		return Objects.hash(warehouseId, fofoId, orderCount, orderValue);
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
	}
61
	}
180
 
62
 
181
	@Override
63
	@Override
182
	public String toString() {
64
	public String toString() {
183
		return "CollectionSummary [date=" + date + ", referenceType=" + referenceType + ", cash=" + cash + ", pinelabs="
65
		return "PartnerSecondaryModel{" +
184
				+ pinelabs + ", bajajFinserv=" + bajajFinserv + ", homeCredit=" + homeCredit + ", paytm=" + paytm
66
				"warehouseId=" + warehouseId +
-
 
67
				", fofoId=" + fofoId +
185
				+ ", capitalFirst=" + capitalFirst + ", zestMoney=" + zestMoney + ", totalAmount=" + totalAmount
68
				", orderCount=" + orderCount +
186
				+ ", samsungSure=" + samsungSure + "]";
69
				", orderValue=" + orderValue +
-
 
70
				'}';
187
	}
71
	}
188
 
-
 
189
}
72
}