Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | 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;
23
	public int getId() {
24
		return id;
25
	}
26
	public void setId(int id) {
27
		this.id = id;
28
	}
29
	public String getCode() {
30
		return code;
31
	}
32
	public void setCode(String code) {
33
		this.code = code;
34
	}
35
	public String getName() {
36
		return name;
37
	}
38
	public void setName(String name) {
39
		this.name = name;
40
	}
41
	public String getEmail() {
42
		return email;
43
	}
44
	public void setEmail(String email) {
45
		this.email = email;
46
	}
47
	public String getPhone() {
48
		return phone;
49
	}
50
	public void setPhone(String phone) {
51
		this.phone = phone;
52
	}
53
	public int getAmount() {
54
		return amount;
55
	}
56
	public void setAmount(int amount) {
57
		this.amount = amount;
58
	}
59
	public int getRefundableAmount() {
60
		return refundableAmount;
61
	}
62
	public void setRefundableAmount(int refundableAmount) {
63
		this.refundableAmount = refundableAmount;
64
	}
65
	public int getReference() {
66
		return reference;
67
	}
68
	public void setReference(int reference) {
69
		this.reference = reference;
70
	}
71
	public WalletReferenceType getReferenceType() {
72
		return referenceType;
73
	}
74
	public void setReferenceType(WalletReferenceType referenceType) {
75
		this.referenceType = referenceType;
76
	}
77
	public LocalDateTime getTimestamp() {
78
		return timestamp;
79
	}
80
	public void setTimestamp(LocalDateTime timestamp) {
81
		this.timestamp = timestamp;
82
	}
83
	public LocalDateTime getBusinessTimestamp() {
84
		return businessTimestamp;
85
	}
86
	public void setBusinessTimestamp(LocalDateTime businessTimestamp) {
87
		this.businessTimestamp = businessTimestamp;
88
	}
89
	public String getDescription() {
90
		return description;
91
	}
92
	public void setDescription(String description) {
93
		this.description = description;
94
	}
95
	@Override
96
	public String toString() {
97
		return "WalletSummaryReportModel [id=" + id + ", code=" + code + ", name=" + name + ", email=" + email
98
				+ ", phone=" + phone + ", amount=" + amount + ", refundableAmount=" + refundableAmount + ", reference="
99
				+ reference + ", referenceType=" + referenceType + ", timestamp=" + timestamp + ", businessTimestamp="
100
				+ businessTimestamp + ", description=" + description + "]";
101
	}
102
	@Override
103
	public int hashCode() {
104
		final int prime = 31;
105
		int result = 1;
106
		result = prime * result + amount;
107
		result = prime * result + ((businessTimestamp == null) ? 0 : businessTimestamp.hashCode());
108
		result = prime * result + ((code == null) ? 0 : code.hashCode());
109
		result = prime * result + ((description == null) ? 0 : description.hashCode());
110
		result = prime * result + ((email == null) ? 0 : email.hashCode());
111
		result = prime * result + id;
112
		result = prime * result + ((name == null) ? 0 : name.hashCode());
113
		result = prime * result + ((phone == null) ? 0 : phone.hashCode());
114
		result = prime * result + reference;
115
		result = prime * result + ((referenceType == null) ? 0 : referenceType.hashCode());
116
		result = prime * result + refundableAmount;
117
		result = prime * result + ((timestamp == null) ? 0 : timestamp.hashCode());
118
		return result;
119
	}
120
	@Override
121
	public boolean equals(Object obj) {
122
		if (this == obj)
123
			return true;
124
		if (obj == null)
125
			return false;
126
		if (getClass() != obj.getClass())
127
			return false;
128
		WalletSummaryReportModel other = (WalletSummaryReportModel) obj;
129
		if (amount != other.amount)
130
			return false;
131
		if (businessTimestamp == null) {
132
			if (other.businessTimestamp != null)
133
				return false;
134
		} else if (!businessTimestamp.equals(other.businessTimestamp))
135
			return false;
136
		if (code == null) {
137
			if (other.code != null)
138
				return false;
139
		} else if (!code.equals(other.code))
140
			return false;
141
		if (description == null) {
142
			if (other.description != null)
143
				return false;
144
		} else if (!description.equals(other.description))
145
			return false;
146
		if (email == null) {
147
			if (other.email != null)
148
				return false;
149
		} else if (!email.equals(other.email))
150
			return false;
151
		if (id != other.id)
152
			return false;
153
		if (name == null) {
154
			if (other.name != null)
155
				return false;
156
		} else if (!name.equals(other.name))
157
			return false;
158
		if (phone == null) {
159
			if (other.phone != null)
160
				return false;
161
		} else if (!phone.equals(other.phone))
162
			return false;
163
		if (reference != other.reference)
164
			return false;
165
		if (referenceType != other.referenceType)
166
			return false;
167
		if (refundableAmount != other.refundableAmount)
168
			return false;
169
		if (timestamp == null) {
170
			if (other.timestamp != null)
171
				return false;
172
		} else if (!timestamp.equals(other.timestamp))
173
			return false;
174
		return true;
175
	}
176
	public WalletSummaryReportModel(int id, String code, String name, String email, String phone, int amount,
177
			int refundableAmount, int reference, WalletReferenceType referenceType, LocalDateTime timestamp,
178
			LocalDateTime businessTimestamp, String description) {
179
		super();
180
		this.id = id;
181
		this.code = code;
182
		this.name = name;
183
		this.email = email;
184
		this.phone = phone;
185
		this.amount = amount;
186
		this.refundableAmount = refundableAmount;
187
		this.reference = reference;
188
		this.referenceType = referenceType;
189
		this.timestamp = timestamp;
190
		this.businessTimestamp = businessTimestamp;
191
		this.description = description;
192
	}
193
 
194
 
195
 
196
 
197
 
198
}