Subversion Repositories SmartDukaan

Rev

Rev 30158 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
30158 manish 1
package com.spice.profitmandi.dao.model;
2
 
3
import java.time.LocalDateTime;
4
import in.shop2020.model.v1.order.WalletReferenceType;
5
 
6
import com.spice.profitmandi.dao.enumuration.dtr.PaymentOptionReferenceType;
7
 
8
public class WalletSummaryReportModel {
9
 
10
 
11
	private int id;
12
	private String code;
13
	private String name;
14
	private String email;
15
	private String phone;
16
	private int amount;
17
	private int refundableAmount;
18
	private int reference;
19
	private  WalletReferenceType referenceType;
20
	private LocalDateTime timestamp;
21
	private LocalDateTime businessTimestamp;
22
	private String description;
36513 amit 23
	private long runningBalance;
30158 manish 24
	public int getId() {
25
		return id;
26
	}
27
	public void setId(int id) {
28
		this.id = id;
29
	}
30
	public String getCode() {
31
		return code;
32
	}
33
	public void setCode(String code) {
34
		this.code = code;
35
	}
36
	public String getName() {
37
		return name;
38
	}
39
	public void setName(String name) {
40
		this.name = name;
41
	}
42
	public String getEmail() {
43
		return email;
44
	}
45
	public void setEmail(String email) {
46
		this.email = email;
47
	}
48
	public String getPhone() {
49
		return phone;
50
	}
51
	public void setPhone(String phone) {
52
		this.phone = phone;
53
	}
54
	public int getAmount() {
55
		return amount;
56
	}
57
	public void setAmount(int amount) {
58
		this.amount = amount;
59
	}
60
	public int getRefundableAmount() {
61
		return refundableAmount;
62
	}
63
	public void setRefundableAmount(int refundableAmount) {
64
		this.refundableAmount = refundableAmount;
65
	}
66
	public int getReference() {
67
		return reference;
68
	}
69
	public void setReference(int reference) {
70
		this.reference = reference;
71
	}
72
	public WalletReferenceType getReferenceType() {
73
		return referenceType;
74
	}
75
	public void setReferenceType(WalletReferenceType referenceType) {
76
		this.referenceType = referenceType;
77
	}
78
	public LocalDateTime getTimestamp() {
79
		return timestamp;
80
	}
81
	public void setTimestamp(LocalDateTime timestamp) {
82
		this.timestamp = timestamp;
83
	}
84
	public LocalDateTime getBusinessTimestamp() {
85
		return businessTimestamp;
86
	}
87
	public void setBusinessTimestamp(LocalDateTime businessTimestamp) {
88
		this.businessTimestamp = businessTimestamp;
89
	}
90
	public String getDescription() {
91
		return description;
92
	}
93
	public void setDescription(String description) {
94
		this.description = description;
95
	}
36513 amit 96
	public long getRunningBalance() {
97
		return runningBalance;
98
	}
99
	public void setRunningBalance(long runningBalance) {
100
		this.runningBalance = runningBalance;
101
	}
30158 manish 102
	@Override
103
	public String toString() {
104
		return "WalletSummaryReportModel [id=" + id + ", code=" + code + ", name=" + name + ", email=" + email
105
				+ ", phone=" + phone + ", amount=" + amount + ", refundableAmount=" + refundableAmount + ", reference="
106
				+ reference + ", referenceType=" + referenceType + ", timestamp=" + timestamp + ", businessTimestamp="
107
				+ businessTimestamp + ", description=" + description + "]";
108
	}
109
	@Override
110
	public int hashCode() {
111
		final int prime = 31;
112
		int result = 1;
113
		result = prime * result + amount;
114
		result = prime * result + ((businessTimestamp == null) ? 0 : businessTimestamp.hashCode());
115
		result = prime * result + ((code == null) ? 0 : code.hashCode());
116
		result = prime * result + ((description == null) ? 0 : description.hashCode());
117
		result = prime * result + ((email == null) ? 0 : email.hashCode());
118
		result = prime * result + id;
119
		result = prime * result + ((name == null) ? 0 : name.hashCode());
120
		result = prime * result + ((phone == null) ? 0 : phone.hashCode());
121
		result = prime * result + reference;
122
		result = prime * result + ((referenceType == null) ? 0 : referenceType.hashCode());
123
		result = prime * result + refundableAmount;
124
		result = prime * result + ((timestamp == null) ? 0 : timestamp.hashCode());
125
		return result;
126
	}
127
	@Override
128
	public boolean equals(Object obj) {
129
		if (this == obj)
130
			return true;
131
		if (obj == null)
132
			return false;
133
		if (getClass() != obj.getClass())
134
			return false;
135
		WalletSummaryReportModel other = (WalletSummaryReportModel) obj;
136
		if (amount != other.amount)
137
			return false;
138
		if (businessTimestamp == null) {
139
			if (other.businessTimestamp != null)
140
				return false;
141
		} else if (!businessTimestamp.equals(other.businessTimestamp))
142
			return false;
143
		if (code == null) {
144
			if (other.code != null)
145
				return false;
146
		} else if (!code.equals(other.code))
147
			return false;
148
		if (description == null) {
149
			if (other.description != null)
150
				return false;
151
		} else if (!description.equals(other.description))
152
			return false;
153
		if (email == null) {
154
			if (other.email != null)
155
				return false;
156
		} else if (!email.equals(other.email))
157
			return false;
158
		if (id != other.id)
159
			return false;
160
		if (name == null) {
161
			if (other.name != null)
162
				return false;
163
		} else if (!name.equals(other.name))
164
			return false;
165
		if (phone == null) {
166
			if (other.phone != null)
167
				return false;
168
		} else if (!phone.equals(other.phone))
169
			return false;
170
		if (reference != other.reference)
171
			return false;
172
		if (referenceType != other.referenceType)
173
			return false;
174
		if (refundableAmount != other.refundableAmount)
175
			return false;
176
		if (timestamp == null) {
177
			if (other.timestamp != null)
178
				return false;
179
		} else if (!timestamp.equals(other.timestamp))
180
			return false;
181
		return true;
182
	}
183
	public WalletSummaryReportModel(int id, String code, String name, String email, String phone, int amount,
184
			int refundableAmount, int reference, WalletReferenceType referenceType, LocalDateTime timestamp,
36513 amit 185
			LocalDateTime businessTimestamp, String description, long runningBalance) {
30158 manish 186
		super();
187
		this.id = id;
188
		this.code = code;
189
		this.name = name;
190
		this.email = email;
191
		this.phone = phone;
192
		this.amount = amount;
193
		this.refundableAmount = refundableAmount;
194
		this.reference = reference;
195
		this.referenceType = referenceType;
196
		this.timestamp = timestamp;
197
		this.businessTimestamp = businessTimestamp;
198
		this.description = description;
36513 amit 199
		this.runningBalance = runningBalance;
30158 manish 200
	}
201
 
202
 
203
 
204
 
205
 
206
}